1830194 Members
17540 Online
109999 Solutions
New Discussion

Restrited Shell

 
Isaac_4
Frequent Advisor

Restrited Shell

Hi

I need made the following:
Create a group with some users with:
1. Ftp restricted (i did and work fine)
2. the same users , need allow login in the system and run some scripts that are stores in /etc/excuterm.sh , and need to that users dont move from your local home directory..

Any idea to made this work

Thk alot !!!
The time is gold
2 REPLIES 2
Ivan Krastev
Honored Contributor

Re: Restrited Shell

You can use restricted shell to avoit users from changing path.
Another option is to specify what commands you want to be executed + key authentication.
See doc id emr_na-c00813280-1 - 'HPUX Secure Shell - Restricting a User to a Specific Command Using Public Key Authentication'.

Europe:
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00813280-1
Americas/ Asia Pacific:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00813280-1

regards,
ivan
Dave La Mar
Honored Contributor

Re: Restrited Shell

Isaac -
Try doing a forum search on this as it has been discussed much.
There are a number of options. One way we restrict is id by adding a wrapper script to the profile that allows the user the option to get to one directory structure only or exit.
Once in the directory structure a cd will not be honored outside that structure.
You will need to add some traps to catch ^C, etc.

Best of luck on this.

Regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."