in reply to running setuid for ssh ?
If you are prepared to let them run ssh using sudo or by setting the suid bit then why not just give them the key? You won't be letting them do anything they couldn't through the other methods.
ssh -l userX machine
You will also need to consider security, I would set up an account for this single purpose, write a script with menu options for the permitted functions. Ensure that no command gives a command shell or that control-C doesn't drop you there. Set that script as the shell in /etc/passwd.
sshd will also have to be configured to only permit the script. Look for ForceCommand in the ssh docs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: running setuid for ssh ?
by convenientstore (Pilgrim) on Jan 21, 2008 at 04:41 UTC | |
by Anonymous Monk on Jan 21, 2008 at 22:01 UTC | |
by andyford (Curate) on Jan 22, 2008 at 18:48 UTC |