1825768 Members
2081 Online
109687 Solutions
New Discussion

Re: chroot jail

 
KPS
Super Advisor

chroot jail

Hi,

I have a user that I would like to only have access to a certain subdirectory on a given system and no other directories. This user will only be able to logon and navigate in this sub-directory.

It was suggested to me that maybe a chroot jail may work for our needs here if reasonable. I'm trying to find a good doc on how this works and how to setup and implement. I'm having trouble locating any materials on this. Can someone point me to the right place or offer any syntax suggestions?

Tks,
-Ken
4 REPLIES 4
Simon Hargrave
Honored Contributor

Re: chroot jail

If you want to limit them to one directory, then you can set their shell to restricted shell, /usr/bin/rsh.
Victor BERRIDGE
Honored Contributor

Re: chroot jail

Hi,
Are you talking about an ftp server?

What about a restricted shell rsh or rksh ?

All the best
Victor
Sundar_7
Honored Contributor

Re: chroot jail

Hi Ken,

Using restricted shell is one option. But using rsh will limit the user's capablities.

If you would like a user to be chrooted without any other restriction then the process is bit too lengthy.

Refer this doc

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063210548

Sundar
Learn What to do ,How to do and more importantly When to do ?
Michael Selvesteen_2
Trusted Contributor

Re: chroot jail

Ken,

You may try HP secure shell chroot environment. For more information refer following location
http://docs.hp.com/hpux/onlinedocs/T1471-90011/T1471-90011.html

--
M