Re: determining sudo access

2011-01-20 Thread Donald Russell
On Wed, Jan 19, 2011 at 15:07, Tim wrote: > On Wed, 2011-01-19 at 14:34 -0800, Donald Russell wrote: > > In /etc/profile.d/local.sh 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 ha

Re: determining sudo access

2011-01-19 Thread Tim
On Wed, 2011-01-19 at 14:34 -0800, Donald Russell wrote: > In /etc/profile.d/local.sh 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 shou

determining sudo access

2011-01-19 Thread Donald Russell
In /etc/profile.d/local.sh 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. I can use sudo -l but that prompts for the user password unless the user is configured for NOPASSWD in sudo. Is there a reasonably convenient w