Quoting Ohad Levy, from the post of Tue, 05 Apr:
/etc/passwd:
ariel:x:uid:gid::/home/ariel:/bin/rbash
ls -l /bin/rbash
lrwxrwxrwx 1 root root 4 Apr 10 2006 /bin/rbash - bash
maybe I'm missing something.. but what would if the user simply type
/usr/bin/something else?
man rbash
On Mon, Apr 4, 2011 at 12:05 PM, Ariel Biener ar...@post.tau.ac.il wrote:
That's not what you want. Please read about restricted shell.
A working example:
/etc/passwd:
ariel:x:uid:gid::/home/ariel:/bin/rbash
ls -l /bin/rbash
lrwxrwxrwx 1 root root 4 Apr 10 2006 /bin/rbash - bash
Hi all,
I want to create a user that will be able to only run ssh.
I thought of sudo, but I am not sure how to configure it right so he will
not be able to run anything else...
Can you help me with the settings in the /etc/sudoers?
Thanks!
Amichai.
That's not what you want. Please read about restricted shell.
A working example:
/etc/passwd:
ariel:x:uid:gid::/home/ariel:/bin/rbash
ls -l /bin/rbash
lrwxrwxrwx 1 root root 4 Apr 10 2006 /bin/rbash - bash
drwx-t 4 ariel mygroup 4096 Apr 1 22:50 /home/ariel
ls -al ~ariel
-r-xr-xr-x