Operating System - HP-UX
1825642 Members
4259 Online
109684 Solutions
New Discussion

home directory restriction

 
SOLVED
Go to solution
chetana07
Frequent Advisor

home directory restriction

How to restrict a user to his home directory,who is using telnet to login?He should not be able to go to parent directory nor to child directory.
5 REPLIES 5
Dennis Handly
Acclaimed Contributor
Solution

Re: home directory restriction

Setting the user's shell to rksh or rsh will not let the user use cd and other restrictions.
Steven E. Protter
Exalted Contributor

Re: home directory restriction

Shalom,

The methodology is called chroot

Better to be used with ssh though.

http://h21007.www2.hp.com/portal/download/files/unprot/hpux/MSLSecurityManagementTools.ppt

http://forums12.itrc.hp.com/service/forums/questionanswer.do;HP-FORUMS-S-WPA-IDX=HKzZMHbxnb7QRbzY42Tlngkyjj8YsRzc2XJLGZvX5nH6pX3NHnMs!-1057370677!-1313371355?threadId=1114600

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
wci
Frequent Advisor

Re: home directory restriction


Change the shell to /usr/bin/rsh in /etc/passwd
on hp-ux for the specific user to restrict to rsh which will not allow to change directories.
Sajjad Sahir
Honored Contributor

Re: home directory restriction

just change users shell in /etc/passwd
u put restricted shell there
i mean rsh
rsh has a lot of features
once rsh shell is there he has a lot of limitation to use commands
chetana07
Frequent Advisor

Re: home directory restriction

thanks for the reply