[SLUG] /sbin not on executable path?

2010-11-05 Thread Voytek Eymont
I just noticed that on my centos system, /sbin doesn't seem to be 'on executable' path, I need to prefix with '/sbin/': [r...@centos voytek]# service bash: service: command not found [r...@centos voytek]# /sbin/service Usage: service option | --status-all | [ service_name [ command |

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

2010-11-05 Thread Zenaan Harkness
I just noticed that on my centos system, /sbin doesn't seem to be 'on executable' path, I need to prefix with '/sbin/': ... what do I need to fix ? edit ~/.bashrc At end of file add: PATH=/sbin:$PATH -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and

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

2010-11-05 Thread Bernie Pannell
On Sat, Nov 6, 2010 at 3:40 PM, Voytek Eymont li...@sbt.net.au wrote: I just noticed that on my centos system, /sbin doesn't seem to be 'on executable' path, I need to prefix with '/sbin/': [r...@centos voytek]# service bash: service: command not found How did you get to your root shell

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

2010-11-05 Thread Voytek Eymont
On Sat, November 6, 2010 4:26 pm, Bernie Pannell wrote: 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