You are not logged in.

#1 2010-12-22 14:45:46

Bonner
Member
From: Derbyshire, England
Registered: 2008-09-09
Posts: 45
Website

No shutdown or reboot commands in the terminal. [SOLVED]

I just did a fresh install of Arch this morning, the commands were working earlier but now if I issue them I just get the 'command not found' error. Google gives me nothing of note and the only other post I could find on the forum relating to it (https://bbs.archlinux.org/viewtopic.php?id=48286) doesn't seem to do anything for me. Anyone got any ideas?

Last edited by Bonner (2010-12-22 15:18:26)

Offline

#2 2010-12-22 14:51:02

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: No shutdown or reboot commands in the terminal. [SOLVED]

did you remove any package from the system or anything?

Try to do a system update and see if it rectifies it.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-12-22 14:52:32

Bonner
Member
From: Derbyshire, England
Registered: 2008-09-09
Posts: 45
Website

Re: No shutdown or reboot commands in the terminal. [SOLVED]

Inxsible wrote:

did you remove any package from the system or anything?

Try to do a system update and see if it rectifies it.

No, I can't remember removing anything and there's nothing to do when I issue a system update.

Offline

#4 2010-12-22 15:10:33

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: No shutdown or reboot commands in the terminal. [SOLVED]

Is /sbin in your path?


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#5 2010-12-22 15:19:08

Bonner
Member
From: Derbyshire, England
Registered: 2008-09-09
Posts: 45
Website

Re: No shutdown or reboot commands in the terminal. [SOLVED]

skanky wrote:

Is /sbin in your path?

Bingo! You got it. For some reason it wasn't there, i've added it and now the commands work. Cheers man!

Offline

#6 2010-12-22 15:51:36

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: No shutdown or reboot commands in the terminal. [SOLVED]

No worries.
It *should* be being set in /etc/profile -so I'd check that that's being processed at login, and it's in the PATH setting there, and you don't overwrite PATH in in one of the subsequent settings files.

Of course, if you're not using bash, then check the relevant other files. smile


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#7 2010-12-22 19:33:24

Socialsymbol
Member
Registered: 2010-06-29
Posts: 18

Re: No shutdown or reboot commands in the terminal. [SOLVED]

skanky wrote:

Is /sbin in your path?

I have this same problem. In what file would I specify this path?

Offline

#8 2010-12-26 02:58:42

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: No shutdown or reboot commands in the terminal. [SOLVED]

On my system, this is done in /etc/profile.

# /etc/profile

#Set our umask
umask 022

# Set our default path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
        test -r $profile && . $profile
    done
    unset profile
fi

# Source global bash config
if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
    . /etc/bash.bashrc
fi

# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP

# Man is much better than us at figuring this out
unset MANPATH

Offline

Board footer

Powered by FluxBB