Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vsftp configuration

Status
Not open for further replies.

dustervoice

Technical User
Apr 2, 2009
56
GB
Im new to ubuntu server. ive installed vsftpd via the command line. now i want to edit my config file to block anonymous login and have vsftpd get logins via a username and password. how do i do that in the file? also what directory is shared by default for ftp?
 
the config file is reasonably well comented
/etc/vsftpd/vsftpd.conf

ensure you have the following set (do not coment out or you will enable anonymous access)
anonymous_enable=no

by default registered users will have full access to the file system (depending on the file permissions) the same as if they had logged on localy. the current working directory will be the users home directory when they connect.

it is possible to chroot users to their home directory if req.


 
well im quite new to linux. so im a bit confused. but i see in the config file where is says anonymous_enable=yes. i will change that to no. I see that the /home/ftp folder is the share folder for the ftp. but what i want to do now is create a group then create some users and put those users in the group and have them only read from the /home/ftp folder. i dont want to install the gui since i want to break away from windows way of doing things.
 
well this is my goal i want to create 6 users. 3 to be able to write to the folder and the other 3 to read/excute. i would like for these users only to access the ftp folder nothing else.
 
have a look at
ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-2.0.4/FAQ

it should get you started.
QaTQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Ok im a windows admin and whats confusing to me is this ftp allows all local users to log into thier own home folder. what i wanted to do is set up just one folder and have them all connect to only that specific folder.
 
then create user accounts specific for ftp service and set their home dir to the new ftp root.

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
useradd -u 508 -s /sbin/nologin -d /var/ftp/pub/john john
passwd john


This will add john with uid 508 and not allow login to the server. It will allow john to ftp and authenticate and if
the /var/ftp/pub directory is writable by john, allows transfer of files to and from the server.

You may want to use a different directory than the one I tested with.



A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

35 years Bell, AT&T, Lucent, Avaya
Tier 3 for 25 years and counting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top