Re: [CentOS] Add /sbin to sudo PATH

2010-01-22 Thread Jay Leafey
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 Thanks Sam I use an alias to handle that. I pu

Re: [CentOS] Add /sbin to sudo PATH

2010-01-22 Thread Stephen Harris
On Fri, Jan 22, 2010 at 01:19:43PM +0100, Samuel Contesse wrote: > 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. Sudo is meant to follow the user's PATH unless it has been c

Re: [CentOS] Add /sbin to sudo PATH

2010-01-22 Thread david
It's right, adding path into .bash_profil is so easy... --Original Message-- From: Gaël Honorez Sender: centos-boun...@centos.org To: CentOS mailing list ReplyTo: CentOS mailing list Subject: Re: [CentOS] Add /sbin to sudo PATH Sent: Jan 22, 2010 8:44 PM Except adding /sbin to the

Re: [CentOS] Add /sbin to sudo PATH

2010-01-22 Thread Gaël Honorez
Except adding /sbin to the PATH in ~/.bash_profile (still better than in .bashrc), I don't think you have so many solutions. 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... > >

Re: [CentOS] Add /sbin to sudo PATH

2010-01-22 Thread Benjamin Franz
Samuel Contesse wrote: > >> 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 >> Put a symlink to chkconfig in /usr/local/bin ? -- Benjamin Franz _

Re: [CentOS] Add /sbin to sudo PATH

2010-01-22 Thread Samuel Contesse
Sent: Friday, January 22, 2010 12:10 PM To: CentOS mailing list Subject: Re: [CentOS] 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 $

Re: [CentOS] Add /sbin to sudo PATH

2010-01-22 Thread John R. Dennison
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: > > $ sud

[CentOS] Add /sbin to sudo PATH

2010-01-22 Thread Samuel Contesse
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 Thanks Sam ___ CentOS mai