Operating System - HP-UX
1833151 Members
3379 Online
110051 Solutions
New Discussion

Restricted access to the User

 
jaivinder
Frequent Advisor

Restricted access to the User

Hi Gurus,

I want a user to access only its home directory. I want to restrict the user to access the other directories.Please help.

Thanks in advance.
4 REPLIES 4
Jeeshan
Honored Contributor

Re: Restricted access to the User

Hi Jaivinder

>>I want a user to access only its home directory

for this you can use restricted shell for this user.

a warrior never quits
Kapil Jha
Honored Contributor

Re: Restricted access to the User

http://www.unix.org.ua/orelly/networking/puis/ch08_01.htm
will help u
BR,
Kapil
I am in this small bowl, I wane see the real world......
Sajjad Sahir
Honored Contributor

Re: Restricted access to the User


Restricted user access is made possible with the help of a special command shell known as the restrictes shell(rsh). It provides the same functionalit as a normal posix shell except the following restrictions.
a user can't chage directories
a user can't set or change the environment vairables SHELL,PATH,OR ENV
a command cannot be issued with that starts /.
I/O redirection is disabled
in /etc/passwd file u can put like these
/usr/sbin/rsh

eg: sajjad:gSuQCVbpU9.QQ:108:20:,,,:/home/sajjad:/usr/bin/rsh

thanks and regards

Sajjad Sahir
Sharma Sanjeev
Respected Contributor

Re: Restricted access to the User

Hi jai

You can use restrict shell rsh (/usr/bin/rsh)
Modify the user SAM >> Accounts forUsers & Groups >> Action >> Modify and change startup Program with /usr/bin/rsh

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE