550 create directory operation failed in vsftpd
Hi, all
I have established vsftpd in my rhel6 64 bit linux box and want to allow only anonymous login not local user. When i successfully login and try to make a directory (mkdir prabhat). it says "550 Create directory operation failed". I have also change permission of /var/ftp - chmod o+w /vat/ftp - and also allow selinux - setsebool -P ftp_home_dir=1 My vsftpd version is "vsftpd-2.2.2-6.el6.x86_64" and here is my vsftpd conf file: - - anonymous_enable=YES - local_enable=NO (I have disabled local enable) - write_enable-YES - #local umask=022 (I have commented local umask) - anon_upload_enable=YES - anon_mkdir_write_enable=YES - dirmessage_enable=YES - listen=YES - pam_service_name=vsftpd - userlist_enable=YES - userlist_disable=YES - tcp_warppers=YES |
how are you trying to create the directory??
can you tell me the steps? |
for anon user to have the rights to write/create subdirs you need to
chmod 777 /var/ftp meaning that every file/dir below "/var/ftp" can be crated by any user. |
Quote:
ftp <ip addr> ftp > mkdir prabhat 550 Creating directory operations failed |
Quote:
still dosen't work same message appear again |
Hi,
By default vsftpd does not allow writing into the anon_root directory. If you want to be able to upload files and create directories as anonymous user, you should create a subdir, e.g. /var/ftp/pub and do what you want into that directory. Of course it must be owned by the ftp user Regards |
Quote:
|
Hi,
Quote:
Code:
mkdir /var/ftp/pub Code:
chcon -t public_content_rw_t /var/ftp/pub |
If you are logging in default directory pub
then this is what you have to do Code:
#chmod 755 /var/ftp/pub Code:
#ftp serverip |
Quote:
It works now i can create directory into /var/ftp/pub by anonymous user, but i can't remove the directory that i created it's says "550 Permission Denied" |
Hi,
Quote:
Quote:
Regards |
Quote:
|
Thanks bathory , this worked for me too.
|
All times are GMT -5. The time now is 12:44 PM. |