1835266 Members
2356 Online
110078 Solutions
New Discussion

Block commands in rsh

 
Yan Wong
Frequent Advisor

Block commands in rsh

Hi Folks,

I give an user account with a restricted shell. And I just want this user account to run ls and scp commands in restricted sub-directory.

How do I do that?

Thanks in advance
Yan
2 REPLIES 2
Balaji N
Honored Contributor

Re: Block commands in rsh

read the section rsh Restrictions in the sh-posix man page.

actually, u need to create a directory and copy the scp and ls commands and point the path variable to this directory.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Frank Slootweg
Honored Contributor

Re: Block commands in rsh

See the RCEN A4161307 "Using chroot(1M) to create a secure login account" document mentioned in this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x77cf7680e012d71190050090279cd0f9,00.html