Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-31-2004, 08:51 PM   #1
LQ Newbie
Registered: Oct 2004
Distribution: Slackware, Mandrake
Posts: 27

Rep: Reputation: 15
Question Can't run "halt" or "reboot" as user, can somebody help?

i can not run the "halt" and "reboot" commands as a normal user, even if I changed the permisions for them, once from the KDE menu, after thet manually, from console. while the reboot command is not a very big issue, the halt one is, because the computer is used at home, the other users do not know how to use a linux machine and i don't like it to be allways on. If somebody knows a way to solve it, PLEASE HELP!!!!!!!!!!!!!
Old 10-31-2004, 09:06 PM   #2
Registered: Jun 2003
Distribution: Slackware 9.1 / Debian Sid
Posts: 57

Rep: Reputation: 15
The /sbin directory where halt and reboot are located are probably not in your path, try typing
Old 10-31-2004, 09:36 PM   #3
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,257

Rep: Reputation: 48
You could also add /sbin to your path.
Old 11-01-2004, 08:24 AM   #4
LQ Newbie
Registered: Oct 2004
Distribution: Slackware, Mandrake
Posts: 27

Original Poster
Rep: Reputation: 15
can the oath be added by just adding it to the .login or .bash file? I ask this just because it does not run even if i use the /sbin/halt command. it says only root can run it. Should I change the file atributes for halt file in /sbin directory? or it is enought to make a simlink to it in /home/sbin directory.
Old 11-01-2004, 08:57 AM   #5
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 780

Rep: Reputation: 66
The answer is here:

Cheers, Leon.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-18-2006 12:03 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 04:28 PM
Removing "shutdown" and "reboot" in logout window nearfar Red Hat 1 10-07-2003 12:33 PM
Ordinary user can execute the "halt" command ederts Linux - Newbie 7 05-24-2001 12:18 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration