LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-27-2003, 04:48 PM   #1
jsbush
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Rep: Reputation: 15
FTP only users for vsftpd.


Heres what I want to do.

Creat users that can only use there user name for ftp
I want there home directory to be /mnt/store/user

*user being what every user name I create

Any idea's how to do this? I've been researching user management for a few days now and no luck so far.



Thanks.
 
Old 10-27-2003, 05:02 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Steps that could be used to accomplish this task:

1. Create the user.
2. Make their home directory /mnt/store/user
3. Give them a false or invalid shell by making their default shell /bin/false and adding that as their shell in /etc/passwd
4. Add /bin/false to /etc/shells file.
5. chroot them to /mnt/store/user if you do not want them to access any other directory on your system.

This will jail them to the FTP home directory specified, not giving them any type of shell access if you have telnet, ssh or any other type of login accessible.

Hope that helps.
 
Old 10-27-2003, 06:13 PM   #3
jsbush
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks, helps a lot. I had read about doing /bin/false but didn't understand the concept, now I do.

How do you change the attributs, or permissions for a user and direcotry? When I change my home directory for a user to /mnt/store/ftp/username I have read only attributs. If i change it to /home/username I have read write remove attributs.


Thanks again.

Last edited by jsbush; 10-27-2003 at 09:47 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup FTP users only users on LInux Fedora Soujiro Linux - Newbie 8 09-13-2010 07:34 AM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
One shared folder for multiple ftp users -- vsftpd rover Linux - Networking 0 06-17-2004 06:07 AM
Ftp users accessing other folder in VSFTPD VJD Linux - Networking 6 01-13-2004 06:16 AM
Restricting FTP Users to their home dir in vsftpd ~ForgottenFlux~ Linux - Software 2 09-03-2003 07:54 PM


All times are GMT -5. The time now is 11:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration