Vsftp
Good Afternoon Everyone. I am a newbie to the linux world.
I have setup vsftp on a debian box. I can get one local user with to upload files but when i tried to download as a different users I get 550 Failed to open file.
i would think it is a user rights problem, but I can't seen to get by this.
Below are the instruction I followed for setup.
2) Configuration for passworded logins only
Now to configure by editting /etc/vsftpd/vsftpd/.conf. I suggest that you read all the documentation no matter what (man vsftpd.conf), then use this sample code as a guideline. Still, here's a configuration file that allows local users and disallows anonymous access (that means you must enter a password):
# /etc/vsftpd/vsftpd.conf - destuxor - 3/20/2005 - local logins only
local_enable=YES
write_enable=YES
anonymous_enable=NO
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
idle_session_timeout=600
data_connection_timeout=120
ascii_upload_enable=NO
ascii_download_enable=NO
nopriv_user=downloader
dirmessage_enable=YES
ftpd_banner=Your Banner Goes Here
chroot_list_enable=NO
chroot_local_user=YES
background=YES
listen=YES
ls_recurse_enable=NO
4) Adding user accounts (only do this if you've done (1))
So now that it's configured it's time to add the appropriate user accounts. We're going to create two user accounts with the same home directory. One user will be able to read and write, the other will only be able to read. Both will require passwords. Open a command prompt and get root:
$ mkdir /home/shared
$ useradd -d /home/shared -s /bin/bash -g ftp downloader
$ useradd -d /home/shared -s /bin/bash -g ftp uploader
$ chown uploader:ftp -R /home/shared
$ chmod 750 -R /home/shared
$ passwd downloader
$ passwd uploader
$ rc-update add vsftpd default
any ideas wiould be appreciated
Thanks
Don
|