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
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
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
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...
>
>
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
_
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 $
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
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
8 matches
Mail list logo