- To: lists@xxxxxxxxxx
- Subject: Re: [SLUG] /sbin not on executable path?
- From: Bernie Pannell <berniep@xxxxxxxxx>
- Date: Sat, 6 Nov 2010 16:26:32 +1100
- Cc: slug@xxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=/G3SNsQpGtykxDpCsL9lXnLdItTYig06Kd3m+T4KViw=; b=SeV8KvS4el6ev0HRM7E6p9qWFTYtjIxKHh/2rilXG6e2npH9YCCDHeQB/yrn6foOIa ZoTnQQvxS/TvmM9tSTNCo8h+dBdOxXb8U+AwhcaSzZh5qr2qonKXBMAlpLfZISRCpfTS P8sEot1IV1WBzc8zydwuDHNRqthMe+tlGWooc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=BYAPnnQfh+koTGYZJnZ7tygihUctTfUYCBaUAAk3SXcR2EacN/8OheE9KOnyFANQmR YQEs2C+fgAPkhoxQOuMMU3/2PjRlBbJYVHcyK4095yLX0RsCNzX6CSrfAysZl6llD8gR ibwTZ8vYLW4Wr+idfZd1NhfC4SMN/qyY6N6y4=
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.