Operating System - HP-UX
1833053 Members
2392 Online
110049 Solutions
New Discussion

How to limit one user access ?

 
depriester frank
Occasional Contributor

How to limit one user access ?

Hi all,

I would like to create a unix account able to only see and be in his home directory (cd .. not allowed, cd something not allowed), and allow him views on some specific directories.

How can I do that ?

ThanX for your help
fdepri
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: How to limit one user access ?

The easy approach is to set him up with rsh - restricted shell. Man sh_posix and look under the "rsh restrictions" section for details.
If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: How to limit one user access ?

This will be helpful (TKB #KBRC00008600):

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063248395
Life is a promise, fulfill it!
Ian Kidd_1
Trusted Contributor

Re: How to limit one user access ?

when creating this user, assign him the restricted shell (e.g. /usr/bin/rsh). He will not be able to cd to another directory, getting an error message like:

rsh: cd: The operation is not allowed in a restricted shell.

If you need him to access specific directories, create softlinks to the directories and put them in his home directory.
If at first you don't succeed, go to the ITRC