>
> If they're special, you can wrap them, e.g.:
>
> /usr/local/bin/foobar:
>
>   #!/bin/sh
>   sudo /usr/local/realbin/foobar $*
>
> Better yet, if you're already modifying their environment with profile
changes (which it sounds like you are), just setup some shell aliases. I've
done this for sudo commands for some users before. For example:
dhcp48:~ shawn$ alias foo="ls -l /etc/services"
dhcp48:~ shawn$ foo
-rw-r--r--  1 root  wheel  677959 Sep 23  2007 /etc/services

sudo also supports aliases, so you can control things there, so yeah, they
still have to type 'sudo', but it could be like 'sudo restartfoo' instead of
'sudo /sbin/service foo restart'

man your shell for alias info (it's a shell builtin) or 'man sudoers' for
info on sudo aliases.

-Shawn
_______________________________________________
gnhlug-discuss mailing list
[email protected]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to