LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-27-2003, 11:58 PM   #1
sud_crow
Member
 
Registered: Aug 2003
Distribution: Arch Linux
Posts: 41

Rep: Reputation: 15
Question "shutdown" and "halt" symlinks: poweroff, reboot.


I cant get poweroff or reboot working when i login as normal user, neither does shutdown or halt .

Ive tryed everything, from chmod (changing file permissions) to moduser (modifying group) and chown (changing owner). None worked, i get this:
Quote:
[crow@lfs ~]$ poweroff
poweroff: must be superuser.
or:

Quote:
[crow@lfs ~]$ /sbin/shutdown
shutdown: you must be root to do that!
so, if someone knows how to get round this, i will be gratefull...
until then, i will have to su, and then poweroff.... ;(

Last edited by sud_crow; 08-27-2003 at 11:59 PM.
 
Old 08-28-2003, 08:06 AM   #2
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
I found out that the three finger salute works as a normal user. It just issues a command similar to "shutdown -r now", and away you go.
 
Old 08-28-2003, 08:12 AM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Try adding the user to the "wheel" group.
 
Old 08-28-2003, 10:34 PM   #4
sud_crow
Member
 
Registered: Aug 2003
Distribution: Arch Linux
Posts: 41

Original Poster
Rep: Reputation: 15
Yes i know about the three magic keys, thanks anyway!

This is my /etc/group file:
dont have any "wheel" group...


root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:crow
crpw:x:100:
crow:x:101:crow
apagar:x:102:crow

although the "apagar" group you see there its the group i made and seted every file (halt, reboot....) to it.

Last edited by sud_crow; 08-28-2003 at 10:45 PM.
 
Old 08-28-2003, 10:40 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Why not su -?
 
Old 08-29-2003, 01:58 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by peeples
I found out that the three finger salute works as a normal user. It just issues a command similar to "shutdown -r now", and away you go.
This is (normally) defined in /etc/inittab, you don't have to have the 3 finger do that function, in fact, it can be used to call whatever you'd like...

Cool
 
Old 08-29-2003, 01:59 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by fancypiper
Try adding the user to the "wheel" group.
LFS is exactly that, Linux From Scratch. The Wheel group is what some of the distro's have setup to be a super user group type thing, where users can execute certain normal use things such as shut down...

Cool
 
Old 08-29-2003, 01:59 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by fancypiper
Why not su -?
He does, if you read his first post, that's the only thing he can do currently

Cool
 
Old 08-29-2003, 02:01 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by sud_crow
Yes i know about the three magic keys, thanks anyway!

This is my /etc/group file:
dont have any "wheel" group...


root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:crow
crpw:x:100:
crow:x:101:crow
apagar:x:102:crow

although the "apagar" group you see there its the group i made and seted every file (halt, reboot....) to it.
You'll actually wanna look into SUDO. That is the reason that tool is there, to give a user permission to do things normally only capable by root (the superuser). So change all your permissions back, get things back in order, and then look into using Sudo:
http://www.courtesan.com/sudo/

Cool
 
Old 08-30-2003, 03:32 AM   #10
sud_crow
Member
 
Registered: Aug 2003
Distribution: Arch Linux
Posts: 41

Original Poster
Rep: Reputation: 15
All right, thnx everyone.

I will try SUDO i guess, altough i didnt thought it would be necesary, mainly because in MDK i dont think im using it (but hey! that why i use LFS, to know what the heck is going on), we'll see!

anyway if someone cames up with any other solution...its welcome!
 
Old 10-17-2006, 10:51 PM   #11
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Rep: Reputation: 17
answer to all questions :)

Should be applicable to all distros and/or desktop environments -

http://www.ma.utexas.edu/users/stirl.../shutdown.html
 
Old 10-17-2006, 11:03 PM   #12
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
ctrl-atl-delete

 
  


Reply



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
What's the difference between "shutdown -h now" and "halt"? shadkong Slackware 2 04-07-2005 12:43 AM
Can't run "halt" or "reboot" as user, can somebody help? ro_nicu Slackware 4 11-01-2004 07:57 AM
"poweroff" vs "shutdown -h now" when in X.... Megamieuwsel Linux - General 4 09-12-2004 04:47 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
Removing "shutdown" and "reboot" in logout window nearfar Red Hat 1 10-07-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:44 PM.

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