Re: determining sudo access

On Wed, 2011-01-19 at 14:34 -0800, Donald Russell wrote:
In /etc/profile.d/ I'd like to modify the PATH env variable to
include /sbin /usr/sbin and /usr/local/sbin but only if the user has
sudo access.

Even if that person does have sudo access, there are probably times when
they should use the command in /bin rather than /sbin, et cetera. There
are, or used to be, various commands that had different versions in

If you mean for that path to change depending on whether they had used
the sudo command, that'd be a different thing, and would probably work
without problems.

[tim@localhost ~]$ uname -r

Don't send private replies to my address, the mailbox is ignored. I
read messages from the public lists.

users mailing list
To unsubscribe or change subscription options: