Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jailing telnet users to root directory

Status
Not open for further replies.

Spinkick

ISP
Apr 15, 2001
21
0
0
US
Is there a way to Jail telnet users to their chrooted directory? Once the user logs in, I don't want them to be able to get any higher in the directory tree, and make it seem that they are in the highest directory. I can accomplish this for ftp by using the ftpchroot file.
Help would be much appreciated. :)
 
You will need to add /./ to the end of their home directory
path. The chroot syntax keeps the user from going any higher in his/her directory tree.

example (/etc/passwd)

user:x:580:580::/home/user/./:/bin/sh

Is this what you need ?

-Danny






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top