LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 03-25-2005, 01:37 PM   #1
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Rep: Reputation: 17
containing users with ProFTPd


Distro slackware 10.0
Using ProFTPd v1.2.10

I have a couple of users I need to keep from roaming around my entire system once they log into my FTP server. There are 3 users that belong to the same group. here is the directory structure.

/home/group/user1
/home/group/user2
/home/group/user3

I want each user to have access to the group directory but not go any farther than than that. I want them jailed to /home/group. I have added these lines to my /etc/proftpd.conf file.

Code:
DefaultRoot /home/group user1
DefaultRoot /home/group user2
DefaultRoot /home/group user3
I've also tried this.
Code:
DefaultChdir /home/group group
This does drop everyone in the group group into /home/group when the log in but doesn't keep them here.

After making those changes and restarting the server each user can still leave the group folder and go up to /home and even / which I DONOT like. Any help would be appreciated.

Last edited by bullium; 03-25-2005 at 03:23 PM.
 
Old 03-25-2005, 03:27 PM   #2
awdac
LQ Newbie
 
Registered: Mar 2005
Posts: 21

Rep: Reputation: 15
try:
Code:
DefaultRoot /home/group group
 
Old 03-25-2005, 03:36 PM   #3
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Original Poster
Rep: Reputation: 17
That seems to have done it . I guess you can't specify individual users, has to be groups? Now that I've read the FAQ on proftpd.org for the 15th time, I see that it never said to use the username it said to use a group. Hope someone else can learn from my mistake.

Last edited by bullium; 03-25-2005 at 03:53 PM.
 
Old 03-25-2005, 03:55 PM   #4
awdac
LQ Newbie
 
Registered: Mar 2005
Posts: 21

Rep: Reputation: 15
Quote:
Originally posted by bullium
That seems to have done it . I guess you can't specify individual users, has to be groups?
I don't use that feature, so I don't know for sure, but I think you have to set up more virtuals to handle the specifics of a user because the directives only accept group definitions according to the docs. Some of the configuration examples on their site appear to do something similar to what you're asking though. You could always just put DefaultRoot ~ to make them all go to their home directories only...
 
Old 03-25-2005, 04:00 PM   #5
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Original Poster
Rep: Reputation: 17
Quote:
Originally posted by awdac
I don't use that feature, so I don't know for sure, but I think you have to set up more virtuals to handle the specifics of a user because the directives only accept group definitions according to the docs. Some of the configuration examples on their site appear to do something similar to what you're asking though. You could always just put DefaultRoot ~ to make them all go to their home directories only...
I know but the way I explained it earlier is just what I needed and now I have it working perfectly thanks for your help.
 
  


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
proftpd and users emptystrings Linux - Newbie 3 11-07-2004 09:33 PM
WSFTP users to ProFTPD edellacca Linux - Enterprise 1 08-13-2004 10:50 AM
users proftpd strider17 Linux - Newbie 2 02-05-2004 07:21 PM
how do you setup users on ProFTPD? ShawnD Linux - Software 22 08-01-2002 10:33 AM
Jailing SFTP Users to Home directory Jason_25 Linux - Networking 3 01-06-2002 09:32 PM


All times are GMT -5. The time now is 07:55 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration