1844205 Members
2131 Online
110229 Solutions
New Discussion

User Permission

 
vselvaraj
Advisor

User Permission

Dear All,

In HP-UX 11.00, We need to create a user with home directory at /home. There should be permission only to go to his user directory and he should not be able to go to any other directory (even in read only permission)

Is it possible.. Please explain.

Example.

When logged in his home directory is /home/aaa
(user name aaa)
if he is giving the command to change directory to root, it should not accept it.
For any case user "aaa" should not cross his home directory.

Thanks in Advance
V.Selvaraj
3 REPLIES 3
Andreas Voss
Honored Contributor

Re: User Permission

Hi,

change the login shell for that user to restricted shell:
chsh /bin/rsh
This will change the shell part within /etc/passwd for the specified user.
With restricted shell the user cannot change to other directories, see man sh

Regards
John Palmer
Honored Contributor

Re: User Permission

Lasse Knudsen
Esteemed Contributor

Re: User Permission

Hi,

I think it is *very* difficult to control using permissions (chmod or the like). However I would suggest that you look at the man pages for the restricted shells (rsh or rksh) - Change the users shell to one of those. They have some restrictions, but it is might not what you want.
In a world without fences - who needs Gates ?