Ask a Question related to Sun Solaris, Design and Development.
-
al dav #1
rksh
hi
i would like to use rksh for some of my users, but dont have a clue how it
works, the man page is little help
can anyone tell me how / where you set what commands the users are allowed
to run while in the restricted shell
thanks
al
al dav Guest
-
Tony Walton #2
Re: rksh
al dav wrote:
Which part of it don't you understand?> hi
>
> i would like to use rksh for some of my users, but dont have a clue how it
> works, the man page is little help
>
> can anyone tell me how / where you set what commands the users are allowed
> to run while in the restricted shell
>
As the manpage says, in a restricted shell you can't:
change directory
set the value of SHELL, ENV, or PATH
specify path or command names containing /
These restrictions apply after .profile (and $ENV, if specified) have
run. So you're restricted to those commands available in the $PATH as
specified in .profile and $ENV (and /etc/profile, of course).
You can't specify a command by absolute path so you can't run
/usr/local/bin/foo/secret-thing unless /usr/local/bin/foo is in your PATH
You can't change your PATH (so you can't go
PATH=$PATH:/usr/local/bin/foo
secret-thing
And you can't cd, so (assuming the current directory is in the PATH,
which is probably a Very Bad Idea anyway), you can't
cd /usr/local/bin/foo
secret-thing
--
Tony
Tony Walton Guest



Reply With Quote

