vsftpd, "550, permission denied" while upload
Posted: 2012/02/23 10:15:26
Hello everyone,
I am trying to setup a FTP server. For this I installed vsftpd.
My vsftpd.conf looks like this:
[code]
anon_world_readable_only=NO
anonymous_enable=YES
chroot_local_user=YES
guest_enable=YES
guest_username=ftp
hide_ids=NO
listen=YES
local_enable=YES
max_clients=100
max_per_ip=2
nopriv_user=ftp
pam_service_name=ftp
pasv_max_port=65535
pasv_min_port=64000
session_support=NO
use_localtime=YES
user_config_dir=/etc/vsftpd/users
xferlog_enable=YES
async_abor_enable=YES
connect_from_port_20=YES
dirlist_enable=YES
download_enable=YES
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem
[/code]
The config File for my only, located under: /etc/vsftpd/users looks like:
[code]dirlist_enable=YES
download_enable=YES
local_root=/var/ftp/virtual_users/ftpi
write_enable=YES[/code]
Also I am sure that die .pem file exists. The directory of the virtual user is: /var/ftp/virtual_users/ftpi/, while the permissions look like:
[code]drwxr-xr-x. 2 ftpi ftpi 4.0K Feb 23 00:21 ftpi[/code]
And the user has "x" rights for the upper dirs.
But when try to upload a file (as user ftpi), I get "550 permission denied". I already checked selinux and iptables, everything fine (doesn't even work when I shut these services down).
And, at least, the passwd entry for the user ftpi
[code]ftpi:x:504:505:ras mirror:/var/ftp/virtual_users/ftpi:/sbin/nologin[/code]
I can't figure out where the permission problem is coming from, may you have an idea?
Cheers,
Mario
I am trying to setup a FTP server. For this I installed vsftpd.
My vsftpd.conf looks like this:
[code]
anon_world_readable_only=NO
anonymous_enable=YES
chroot_local_user=YES
guest_enable=YES
guest_username=ftp
hide_ids=NO
listen=YES
local_enable=YES
max_clients=100
max_per_ip=2
nopriv_user=ftp
pam_service_name=ftp
pasv_max_port=65535
pasv_min_port=64000
session_support=NO
use_localtime=YES
user_config_dir=/etc/vsftpd/users
xferlog_enable=YES
async_abor_enable=YES
connect_from_port_20=YES
dirlist_enable=YES
download_enable=YES
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem
[/code]
The config File for my only, located under: /etc/vsftpd/users looks like:
[code]dirlist_enable=YES
download_enable=YES
local_root=/var/ftp/virtual_users/ftpi
write_enable=YES[/code]
Also I am sure that die .pem file exists. The directory of the virtual user is: /var/ftp/virtual_users/ftpi/, while the permissions look like:
[code]drwxr-xr-x. 2 ftpi ftpi 4.0K Feb 23 00:21 ftpi[/code]
And the user has "x" rights for the upper dirs.
But when try to upload a file (as user ftpi), I get "550 permission denied". I already checked selinux and iptables, everything fine (doesn't even work when I shut these services down).
And, at least, the passwd entry for the user ftpi
[code]ftpi:x:504:505:ras mirror:/var/ftp/virtual_users/ftpi:/sbin/nologin[/code]
I can't figure out where the permission problem is coming from, may you have an idea?
Cheers,
Mario