The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Caging shell access?
Author:  
Date:   13-04-00 16:13

With certain FTP daemons you can "cage" the user to his home dir, f.i. with proFTPd. Is it possible to achieve the same for shell users? I'm finding it somewhat of a security hole that everyone can stroll around in other user's home directories and read their files. I have tried several options concerning permissions but in the end all fail because the web server will seize to serve files.

Reply To This Message
 
 RE: Caging shell access?
Author: Da Man 
Date:   14-04-00 08:51

#proftpd.conf

DefaultChdir ~
DefaultRoot ~

With this, user will be able to access only his home directory, no others.

Example for webusers only:

DefaultChdir ~/public_html
DefaultRoot ~/public_html

Reply To This Message
 
 RE: Caging shell access?
Author: Dan Langille 
Date:   14-04-00 22:33

The above appears to be for proftpd.conf. I thought the original poster was looking for help with shell accounts?

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org