vsftp Problems
After trying for the best part of a week to get some kind of reliable ftp server running for me to transfer web pages to my linux server I stumbled across vsftp and all seemed well.
However I now have the problem of not being able to create dirs or upload files as the user I have created. Does anyone have any ideas what needs to be put in the vsftpd.conf (or other) files in order to enable this functionality? |
Is write_enable=YES in your /etc/vsftpd.conf and do your users have permissions on the directory?
|
Yes although now I cannot get onto the server at all:
"500 OOPS: vsftpd: both local and anonymous access disabled!" Think I need to go back to the drawing board about how to create user accounts. Its all so confusing and there are no guides aimed at people who dont know much about this |
Assuming you do not have anon logins your config needs lines:
anonymous_enable=NO local_enable=YES userlist_deny=NO userlist_enable=YES chroot_local_user=YES write_enable=YES You need to put a list of users in /etc/vsftpd.user_list with one user per line. Restart your services after editing Here's a good link for creating no-shell accounts which is a good idea for ftp only users. http://www.tldp.org/LDP/solrhe/Secu...ap29sec295.html |
i dont think restarting xinetd is necessary.
|
I believe you do need to restart after adjusting the the /etc/xinetd.d/vsftpd file. If you change the disable line from "yes" to "no" then a chkconfig --list will show vsftpd as on, HOWEVER... a "netstat -a | grep ftp" doesn't report a daemon listening for ftp until you restart xinetd. Of course you can just give it a "kill -HUP" as opposed to restarting it entirely.
|
All times are GMT -5. The time now is 07:41 PM. |