On Fri, 24 Aug 2001, Mike bradz wrote:
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.
Right. You'll have to do a chroot then. Copy all binaries that you need (along with any libraries/config files needed) to /home/temp. You may have to reconstruct the directory structure under here. Then, chroot to /home/temp (in .bash_profile) and set the PATH as it is normally (/bin:/usr/bin). Just make sure that there are directories /home/temp/bin and /home/temp/usr/bin. Make sure these directories are owned by root and not writable.
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.
sleep