Re: Add /sbin to sudo PATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Thanks for the quick answer.

sudo -i simulate the initial shell, actually this is not what I'm
looking for. 

On Debian systems, this is the default behaviour.

Sam

-----Original Message-----
From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On
Behalf Of John R. Dennison
Sent: Friday, January 22, 2010 12:10 PM
To: CentOS mailing list
Subject: Re:  Add /sbin to sudo PATH

On Fri, Jan 22, 2010 at 11:54:37AM +0100, Samuel Contesse wrote:
> Hello,
> 
> Does anyone have an idee how to add /sbin to the sudo $PATH
environment?
> Adding /sbin to .bashrc $PATH isn't really what I want...
> 
> I'd like sudoers to be able to run:
> 
> $ sudo chkconfig
> 
> And not:
> 
> $ sudo /sbin/chkconfig

	"man sudo"; pay particular attention to the "-i" option.




							John

-- 
We cannot do everything at once, but we can do something at once.

-- Calvin Coolidge (1872-1933), 30th president of the United States
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux