[SOLVED] 550 create directory operation failed in vsftpd
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Click here to see the post LQ members have rated as the most helpful post in this thread.
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
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
I have change permission to all user (chmod 777 ftp, chmod 777 /ftp/pub) and also created a directory anonupload into pub then after change anonupload permission to all where i also change owner of dir to ftp (chown ftp:ftp anonupload/) then i loginto ftp try to create dir (mkdir) the message appear same.
I have change permission to all user (chmod 777 ftp, chmod 777 /ftp/pub)
By default in RHEL, the ftp user (it's the user used for anonymous logins) home directory is /var/ftp. So you have to create the pub under /var/ftp and make sure its owned by ftp:
Code:
mkdir /var/ftp/pub
chown ftp /var/ftp/pub
If you still cannot write into /var/ftp/pub, i.e. you cannot upload a file or create a directory, then check SELinux settings. I'm not familiar with it, but from the ftpd_selinux manpage, I guess you need to use:
By default in RHEL, the ftp user (it's the user used for anonymous logins) home directory is /var/ftp. So you have to create the pub under /var/ftp and make sure its owned by ftp:
Code:
mkdir /var/ftp/pub
chown ftp /var/ftp/pub
If you still cannot write into /var/ftp/pub, i.e. you cannot upload a file or create a directory, then check SELinux settings. I'm not familiar with it, but from the ftpd_selinux manpage, I guess you need to use:
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"
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"
By default vsftpd does not allow anonymous users to delete files/directories, because this way an anonymous user could delete something uploaded by another anonymous user. From the vsftpd.conf manpage:
Quote:
anon_other_write_enable
If set to YES, anonymous users will be permitted to perform write operations other than upload and create directory, such as deletion and renaming. This is generally not recommended but included for completeness.
Default: NO
If you are absolutely sure you want this, then set the "anon_other_write_enable" to YES.
By default vsftpd does not allow anonymous users to delete files/directories, because this way an anonymous user could delete something uploaded by another anonymous user. From the vsftpd.conf manpage:
If you are absolutely sure you want this, then set the "anon_other_write_enable" to YES.
Regards
thanks bathory now i can remove, rename file and directory by anonymous user in ftp. Thanks a lot ur help appreciated me
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.