Re: Keep users from executing system commands



On Fri, 30 Nov 2007 05:45:18 +0100, s. keeling wrote:

["Followup-To:" header set to comp.os.linux.misc.] John Hasler
<john@xxxxxxxxxx>:
NiteRider writes:
What can I do to ensure that he cannot execute system commands like
this?

Give him a restricted shell and adjust his PATH.

Just curious. Does "export PATH=$PATH:$blah" work in rsh? I've never
used/needed it, so I've no idea of what it can do. man ...

No it doesn't. And you don't need to re-export PATH to extend it in any
unrestricted (bourne-esque) shell either (:
.