[CentOS] Add /sbin to sudo PATH

John R. Dennison jrd at gerdesas.com
Fri Jan 22 11:10:28 UTC 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20100122/5a15476b/attachment.bin 


More information about the CentOS mailing list