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
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
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