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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-27-2003, 11:58 PM
|
#1
|
|
Member
Registered: Aug 2003
Location: Argentina
Distribution: Arch 0.7
Posts: 41
Rep:
|
"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.
|
|
|
|
08-28-2003, 08:06 AM
|
#2
|
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
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.
|
|
|
|
08-28-2003, 08:12 AM
|
#3
|
|
Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
Try adding the user to the "wheel" group.
|
|
|
|
08-28-2003, 10:34 PM
|
#4
|
|
Member
Registered: Aug 2003
Location: Argentina
Distribution: Arch 0.7
Posts: 41
Original Poster
Rep:
|
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.
|
|
|
|
08-28-2003, 10:40 PM
|
#5
|
|
Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
Why not su -?
|
|
|
|
08-29-2003, 01:58 AM
|
#6
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
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
|
|
|
|
08-29-2003, 01:59 AM
|
#7
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
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
|
|
|
|
08-29-2003, 01:59 AM
|
#8
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
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
|
|
|
|
08-29-2003, 02:01 AM
|
#9
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
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
|
|
|
|
08-30-2003, 03:32 AM
|
#10
|
|
Member
Registered: Aug 2003
Location: Argentina
Distribution: Arch 0.7
Posts: 41
Original Poster
Rep:
|
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!
|
|
|
|
10-17-2006, 11:03 PM
|
#12
|
|
Member
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478
Rep:
|
ctrl-atl-delete

|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:12 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|