Operating System - Linux
1828773 Members
2735 Online
109985 Solutions
New Discussion

Re: rsh: RESTRICTED SHELL

 
Indrajit Bhagat
Regular Advisor

rsh: RESTRICTED SHELL

HI, ALL
HOW CAN WE RESTRICT A USER USING THE ANY COMMAND.HOW CAN WE ALLOW USER TO USE ANY COMMAND. AND HOW CAN WE SEE THAT A PARTICAULAR USER HAS A FOLLOWING PERMISSION TO EXECUTE THE THIS NUMBER OF COMMAND
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: rsh: RESTRICTED SHELL

Hi:

Have a look at the 'sh-posix(1)' manpages under the section titled "rsh Restrictions".

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: rsh: RESTRICTED SHELL

Hi (again):

Hmmm, so what wasn't useful in the answer I provided?

The restricted shell environment presumes that the commands you want a user to be able to execute are available in his/her PATH. In particular, a user cannot specify a command with '/' at its beginning, 'cd' to a directory; nor can they set their PATH variable.

As for seeing that a user has the permission to execute a paricular command, that is governed by the ownership and permissions of the executable and by the ability of the user to search the directory containing the command!

Regards!

...JRF...
Ivan Ferreira
Honored Contributor

Re: rsh: RESTRICTED SHELL

I agree with James about the use of Restricted Shell. Also, if you check this link:

http://forums1.itrc.hp.com/service/forums/helptips.do?#34

You can see that points from:

1-3: The answer didn't really help answer my question, but thanks for your assistance!

At least thanks for the answer. Would be nice if you don't assign 0 points to the answers even if you consider that is not usefull, just to thank the effort.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?