[sudo-users] sudo with shell aliases ?
Micha
codejodler at gmx.ch
Fri May 26 16:00:28 EDT 2006
| alias shut 'shutdown'
You may try alias shut='sudo /sbin/shutdown'
You can put aliases in the user profile, a file in their home
directory, usually something like ~/.profile.
If you have bash, lookup the manpage section INVOCATION.
As Bob already explained, it' a good question if you really
want that stuff to be global. However that should work, too,
if you define the alias in /etc/profile.
More information about the sudo-users
mailing list