firstly thanks all for your replies....
--- Philip S Tellis philip.tellis@iname.com wrote:
On Fri, 24 Aug 2001, Mike_Bradz wrote:
is it possible to restrict the user to run only
specific commands
the least possible.
You want to use a restricted shell. bash is a restricted shell if you rename it to rbash (ya, it's that simple) or call it with the -r flag.
rbash works only for the cd command. i can still use other commands . i created a symlink bash file called rbash and changed the shell of the user to rbash. now he logs in with rbash and gets restricted to cd command.
but he can do a "cat /etc/passwd" and see all user logins which i dont want him to. I just want him to run one executable that i create.
also can some one refresh my memory on the command that causes a command execution to be paused for a specified time.like say i have 2 commands running in a shell script, in between them i need to pause for a few seconds before the next command starts.
thanks once again, mike.
__________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/