Re: [CentOS] sudo path

2007-07-21 Thread Eduardo Dela Rosa
Sorry for my typo error - should have been: Modify your ~./bash_profile and add /sbin to your PATH. cheers! On 7/22/07, Eduardo Dela Rosa <[EMAIL PROTECTED]> wrote: Modify your ~/.bash_profile and /sbin to your path, i.e., PATH=/sbin:/usr/sbin:$PATH:$HOME/bin On 7/22/07, centos <[EMAIL PR

Re: [CentOS] sudo path

2007-07-21 Thread Eduardo Dela Rosa
Modify your ~/.bash_profile and /sbin to your path, i.e., PATH=/sbin:/usr/sbin:$PATH:$HOME/bin On 7/22/07, centos <[EMAIL PROTECTED]> wrote: Hello Any time I am running sudo, I should have full path to the command, for example sudo /sbin/ifconfig Is there any way to set the path for sudo ?

Re: [CentOS] sudo path

2007-07-21 Thread John R Pierce
Brad Oaks wrote: And while you're at it, you might as well supply the full path to su. indeed, many traditional Unix (such as Solaris) admins tend to type the full path to most all admin commands, so you're sure you're running the correct stuff.

Re: [CentOS] sudo path

2007-07-21 Thread centos
but su - will change the user to root. any other way ? I don't want to change the user to root and work, want to stay with the same user, but having my PATH apply while I am using sudo sudo man page says we can user -s to use SHELL environment, so I can alias sudo to sudo -s but still I should

Re: [CentOS] sudo path

2007-07-21 Thread Brad Oaks
And while you're at it, you might as well supply the full path to su. Quite a while ago I was taught to give the full path to su. This instruction was given with a warning that it's more secure in case a malicious user was able to get a command named 'su' into your path ahead of the binary you're

Re: [CentOS] sudo path

2007-07-21 Thread Johnny Hughes
centos wrote: > Hello > > Any time I am running sudo, I should have full path to the command, > for example sudo /sbin/ifconfig > > Is there any way to set the path for sudo ? use this command to get that (instead of just sudo): sudo su - signature.asc Description: OpenPGP digital signature

[CentOS] sudo path

2007-07-21 Thread centos
Hello Any time I am running sudo, I should have full path to the command, for example sudo /sbin/ifconfig Is there any way to set the path for sudo ? Thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos