On Feb 3, 2006, at 7:38 PM, Paul Lussier wrote:
Others have already provided working answers, so I won't bother reiterating :)
And thanks to all for several great answers.
A not-so-obvious thing, but one which might invoke a 'Duh!' would be to wrap up your commands into a shell script, then run the single shell script under sudo.
Um. Duh. Very good!
A nother not-so-obvious thing would be to use ssh-key-based commands. Set up key entries in root's authorized_keys file (or your own for that matter if you need to do things as root) which are limited to certain commands. This is *really* useful if you need to allow a certain person to ssh into a box to execute a very limited set of commands as root. Set up different keys for different commands, then when ssh'ing, you can specify which key to use, which in turn dictates which command to run on the remote side.
That's good. The client is pretty flexible on what we do here, and you've given me some good ideas on how to set it up. Thanks!
_______________________________________________ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss