Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] /sbin not on executable path?


On Sat, Nov 6, 2010 at 3:40 PM, Voytek Eymont <lists@xxxxxxxxxx> wrote:
>
> I just noticed that on my centos system, /sbin doesn't seem to be 'on
> executable' path, I need to prefix with '/sbin/':
>
> [root@centos voytek]# service
> bash: service: command not found

How did you get to your root shell session?  If you "su" it doesn't
load in root's .bash_profile & setup the normal PATH for root.

Try "su -" (su space dash) instead, which does load root's profile &
should setup the PATH to include /sbin in your PATH.

HTH

-- 
Regards,
Bernie.