LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-28-2005, 10:12 PM   #1
blainehilton
Member
 
Registered: Dec 2002
Location: Portage, IN, USA
Distribution: Fedora
Posts: 34

Rep: Reputation: 15
FTP Server Config Issue


I have just installed the vsftpd server that comes with Fedora Core. It is working. However what I would like to do is limit it so that a user can log in and access only their directory. For instance I have user "test" and they should have access to /home/test/, but not to /home/, and /, even just directory listings.

I have looked through the man page for the vsftpd.conf file and do not see any option that will help.

Is this setup possible?

Thanks in advance
 
Old 06-28-2005, 11:09 PM   #2
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
Two access files are used by vsftpd. Individual users can be denied access by placing their username in /etc/vsftpd.ftpusers. A second file, /etc/vsftpd.user_list, is only examined if userlist_enable=YES is set in /etc/vsftpd/vsftpd.conf. It can be used either to list users which will be allowed access or users which will be denied access, depending on whether the option userlist_deny=NO is set(default is YES). In order to gain access to the ftp daemon, a users must satisfy the requirements of both access files.

Look at tcp_wrappers for the issue of locking down ftp users to particular directories.
 
Old 06-29-2005, 07:08 AM   #3
blainehilton
Member
 
Registered: Dec 2002
Location: Portage, IN, USA
Distribution: Fedora
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for your reply. The tcp_wrappers did not work, however when I did a search for it I found the web site http://www.vsftpdrocks.org/faq/ and the first thing there was the chroot_local_user setting which was what I was looking for.
 
Old 07-05-2005, 07:13 PM   #4
jhumeston
Member
 
Registered: Mar 2004
Posts: 50

Rep: Reputation: 15
you can also modify the /etc/passwd file and put a /./ to indicate the root of their account, for example:

test:x:500:100::/home/./test:/bin/bash
 
  


Reply



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
ftp server suse 9.3 issue svar SUSE / openSUSE 4 12-04-2005 03:14 PM
FTP Server via Debian log in issue - Please help! murfman89 Linux - Networking 1 12-02-2005 11:16 PM
ftp server issue Kumado Linux - Networking 4 09-15-2005 11:25 PM
Slackware 10 ftp server config Maze the Kid Linux - Software 2 04-04-2005 07:12 AM
About Proftpd ftp server config tommyliu Linux - Newbie 2 06-13-2004 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration