Re: Creating a User with Access to a Single Command

2011-04-06 Thread Ira Abramov
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

Re: Creating a User with Access to a Single Command

2011-04-05 Thread Ohad Levy
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

Creating a User with Access to a Single Command

2011-04-04 Thread Amichai Rotman
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.

Re: Creating a User with Access to a Single Command

2011-04-04 Thread Ariel Biener
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