1833818 Members
2474 Online
110063 Solutions
New Discussion

Captive user account

 
SOLVED
Go to solution
Leonard Gallatin
Occasional Contributor

Captive user account

I need to create a captive user account.
I'm looking for any information on how to create this account. The user must not be able to move from their home directory.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Captive user account

Just create the user in the usual way using SAM if you like but make the shell /usr/bin/rsh. This is the restricted version of the POSIX sh and will not allow a cd. Man sh_posix for details and look for rsh.
If it ain't broke, I can fix that.
Michael Tully
Honored Contributor

Re: Captive user account

Make the users shell profile as /usr/bin/rksh or /usr/bin/rsh

This will restrict the user to their own home directory.

HTH
Michael
Anyone for a Mutiny ?
Bill Hassell
Honored Contributor
Solution

Re: Captive user account

Just a note: this is called a chroot jail. They cannot move up (cd is disabled). Commands like ls and ll are not permitted. The restricted shells (rsh, rksh, rcsh) are so restricted that it may be simpler to replace the shell with a simple menu program. Check the man pages for rsh and rksh.


Bill Hassell, sysadmin