LinuxQuestions.org
Review your favorite Linux distribution.
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 05-12-2004, 07:22 PM   #1
Unleashed2k
LQ Newbie
 
Registered: May 2004
Posts: 3

Rep: Reputation: 0
Member Directorys for PROFTPD


Hello, I searched all over. If I didnt search good enough sorry.

I have a gamehost company and I need to restrict users to only there folder Example:

<user> <directory>
Server1 /home/server1
Server2 /home/server2
Server3 /home/alfserver
Server4 /home/pvtserver1

I currently have Webmin and proFTPD installed. Also I have root access and SSH. Thankyou for your time into reading this.
 
Old 05-12-2004, 08:32 PM   #2
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Firstoff, Welcome to the forums!!

I really don't feel like replying to this, I was just feeling like lurking at the moment -- I'm worn out and sweaty from walking half a mile for excersize, but nobody else has replied so here it goes, man.

I'll be brief but try and be simple, if you have questions about my brief post ask a question and i'll get back to ya, k?

Here's an example of my proftpd.conf (which for me is located in /etc/proftpd.conf -- use locate if you cant find)

Under the entry SystemLog I have an entry set for the

DefaultRoot parameter.

The line looks like this.

# Use this to excude users from the chroot
DefaultRoot ~ !adm


This seems to have set it up so every user (and i mean EVERY ftp user, no exceptions) is limited to their home directory.

E.g. Jon_K's home directory is /home/jon_k -- jon_k in ftp cannot get into the previous directory (/home) or even lower (/) -- it ONLY has access to its home directory and beyond.

In fact, if I'm in /home/jon_k and try to go up a directory -- it just takes me back to /home/jon_k --- it's because it's tricked into thinking that /home/jon_k literally -IS- root or /

This will prevent people from browsing into other user accounts or browsing the systems root -- / -- directory.


The good thing about this is that it does this to every FTP user so you don't have to fck around while setting up users.

Badside? What if you want an FTP user to have access to the "real root" or /? The ftp server won't allow it because it's tricked into thinking the home directory of the user is the real root.

Everything has it's advantages and disadvantages.

Well, this wasn't breif was it? It also isn't worded to well but give me a break it's 85 degrees in this room and I'm out of breath, heh. I'm also going to lay down and try to go get some sleep, I'm worn out today. (Also got fiberglass on my mouse arm today so resting my arm on the desk isn't comfortable) So any reply from me will be tomarrow.

Good luck, hope this works out for you.

sincere regards,
jon ;-)

P.S. you made a good choice to go with proftpd -- this is why I went for it -- the ability to sandbox people into their own little sheltered "world" per se and also because of the ease of use setting up anonymous ftp

P.S.S. How about you give me some free fast hosting? haha, never helps to try ;-) if you'd be so generous as to, email me pcmanjon@swbell.net

Post back to tell me/us how it works out!!

Last edited by jon_k; 05-12-2004 at 08:53 PM.
 
  


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
RPM Directorys scripts Linux - Software 1 01-08-2005 12:36 PM
LQ member progress status from member to senior member............. emailssent LQ Suggestions & Feedback 3 10-11-2004 01:31 PM
I can't make files in directorys Rangerjim Linux - Newbie 2 08-03-2004 03:28 PM
copy directorys Luc Linux - Newbie 4 11-05-2002 02:12 AM
Protecting directorys antken Linux - Security 3 07-30-2002 09:01 AM

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

All times are GMT -5. The time now is 02:29 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
Open Source Consulting | Domain Registration