LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-24-2003, 03:08 AM   #1
~ForgottenFlux~
LQ Newbie
 
Registered: Aug 2003
Location: Torrance, CA
Distribution: RedHat 9.0
Posts: 2

Rep: Reputation: 0
Restricting FTP Users to their home dir in vsftpd


i have a working vstpd server up, but i would like to know how to rstrict users who login using an FTP client to only see their home directory. i.e. they cannot even view anything above /home/user. this is for obvious reasons...heh.

also, if at all possible, can you restrict users to FTP logins period? like not let them telnet or ssh to the server. i think i remember reading something about chsh'ing that user to a fake shell that closes itself as soon as they logon. how exactly do i do that?
 
Old 08-24-2003, 05:19 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
You should NEVER create real system users. You can almost always go with virtual users. vsftpd does support virtual users so take a look at vsftpd with virtual users. Next time please consider using the SEARCH function!

Last edited by markus1982; 08-24-2003 at 05:21 AM.
 
Old 09-03-2003, 07:54 PM   #3
beatlelane
Member
 
Registered: Jun 2003
Location: Manila
Distribution: Bayanihan+RH9+FC1
Posts: 68

Rep: Reputation: 15
Re: Restricting FTP Users to their home dir in vsftpd

Quote:
Originally posted by ~ForgottenFlux~
i have a working vstpd server up, but i would like to know how to rstrict users who login using an FTP client to only see their home directory. i.e. they cannot even view anything above /home/user. this is for obvious reasons...heh.

also, if at all possible, can you restrict users to FTP logins period? like not let them telnet or ssh to the server. i think i remember reading something about chsh'ing that user to a fake shell that closes itself as soon as they logon. how exactly do i do that?
hope this will help...

you can add an entry to configuration file of vsftpd (vsftpd.conf on rh9)

chroot_local_user=YES

or you can use virtual users as they suggests for more security...actually, i am a newbie too and have to read more about this virtual solution

Last edited by beatlelane; 09-03-2003 at 08:00 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
Restricting users to their home folder supervillan Linux - Newbie 2 04-08-2009 11:47 AM
Restricting FTP access in vsftpd.conf jomy Linux - Networking 0 11-05-2005 02:09 AM
FTP Users Go to There Home Dir FS2003 Linux - Networking 1 07-11-2003 01:28 PM
Vsftpd revisited - Restricting users further (Less confusing this time) Korff Linux - Networking 2 06-03-2003 09:13 PM
vsftpd: restricting users to home dirs groovin Linux - Security 6 11-25-2002 04:20 PM


All times are GMT -5. The time now is 10:16 PM.

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