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 10-17-2004, 05:21 PM   #1
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
proFTPD advanced configuration


Hi all,

I was wondering something about proftpd's possibilities. Googled around, but didn't find it.

Here's what i want:

The DefaultRoot is set to (ie.) /myftproot but not for the usergroup MySpecialGroup:

Code:
DefaultRoot /myftproot !MySpecialGroup
Now, i have another usergroup, who i want to have jailed inside another directory. Lets Say LimitedGroup has to be jailed in /limitedRoot
thus:
Code:
DefaultRoot /limitedRoot LimitedGroup
However, this does not seem to work if i put in the proftpd.comf:
Code:
DefaultRoot /myftproot !MySpecialGroup
DefaultRoot /limitedRoot LimitedGroup
Is there anyway to make this work? And so making my server more specific to the different usergroups?

TIA!
 
Old 10-19-2004, 06:14 AM   #2
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Fiugured it out

After trying for some time, i accidently figured it out...
So, maybe this is usefulle to anyone else:

If you want to achieve the settings as i mentioned earlier, here's the config:
Code:
DefaultRoot /myftproot !MySpecialGroup
DefaultRoot /otherroot MySpecialGroup //note the ! being absent.
Now, i wanted to have a limitedgroup also, but this didnt work:
Code:
DefaultRoot /myftproot !MySpecialGroup
DefaultRoot /otherroot MySpecialGroup //note the ! being absent.
DefaultRoot /LimitedRoot LimitedGroup
You MUST add !limitedgroup to the first defaultroot it "could" belong to...:

Working conf:

Code:
DefaultRoot /myftproot !MySpecialGroup !LimitedGroup
DefaultRoot /otherroot MySpecialGroup //note the ! being absent.
DefaultRoot /LimitedRoot LimitedGroup

Happy proftpd'ing....
 
Old 10-19-2004, 07:32 AM   #3
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
Your post explains exactly what I'm trying to do.

Thank you. Thank you. Thank you.

I read through proftpd's docs but just couldn't grasp what needed to be done. I also was not sure if I could use more than one DefaultRoot directive in there.

You should try and send your post as an addition to their documentation to augment the DefaultRoot section.
 
Old 04-25-2008, 04:58 PM   #4
varney
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Rep: Reputation: 0
Smile

There is really no need to add this to the proftpd documentation, since what you are trying to do is already documented; the whole effect of the DefaultRoot directive has been misunderstood.

If you look closely at your example:
Code:
DefaultRoot /myftproot !MySpecialGroup
DefaultRoot /otherroot MySpecialGroup //note the ! being absent
you have to understand that you already exclaimed the MySpecialGroup (!MySpecialGroup), so it goes without saying you have to exclaim any groups that you don't want be chrooted - since DefaultRoot is the default root for any user or group on the system unless you [B]explicitly/B] mention it!

 
  


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 configuration Permaximus Linux - Networking 7 12-14-2004 02:52 AM
PROFTPD advanced Configuration fritz001 Slackware 2 11-05-2004 03:05 PM
proftpd configuration lok1 Linux - Software 1 12-04-2003 11:41 PM
proFTPd configuration shakeeb Linux - Software 1 11-23-2003 08:43 AM
ProFTPd Configuration Help needamiracle Linux - Software 2 09-28-2002 11:00 AM


All times are GMT -5. The time now is 02:57 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