ssh login - execute command - exit

Posted by renton on Server Fault See other posts from Server Fault or by renton
Published on 2010-06-09T12:43:26Z Indexed on 2010/06/09 12:53 UTC
Read the original article Hit count: 164

Filed under:
|
|

hi folks,

is there a way to just execute a command (or script) on a user (ssh) login and then exit? some kind of replacing the default shell with a custom script.

i want a user only be able to restart a service, but not to have regular shell-access

thanks

© Server Fault or respective owner

Related posts about linux

Related posts about ssh