About powering off the computer, look here:
http://www.linuxquestions.org/questi...3/#post3418902 There are also other groups that your regular user should be part of to be able to do "normal" things like plugging in the USB mass storage, mound CD-s etc: http://docs.slackware.com/slackbook:users http://alien.slackbook.org/dokuwiki/...lackware:fixes |
Quote:
|
Adding your primary user account to the "wheel" group should give you enough permissions to do reboot and shutdown sequences.
|
Quote:
Do these things only happen to me? :) |
Quote:
And I could even see if I were getting the message "only root can do that"- but I get "command not found"...until I log in as root. Is that weird or what??? |
Quote:
Code:
myuser ALL=NOPASSWD: /usr/sbin/pm-suspend The only thing more powerful than root access is physical access.. |
Quote:
Quote:
I suspect, like most of my computer habits and taboos, it's probably something ingrained from my Windows daze/days. |
Quote:
Still there is a RedHat/Fedora/freedesktop.org way to do this as a user (from the guys who brought you systemd). On Slackware 13.37 and earlier you do Code:
dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown Code:
ck-launch-session; dbus-send -–system –-print-reply -–dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop |
Thanks, JTSN,
Well...at least I know it's normal then- and not that I've configured something wrong. I feel better now! Seems easier just to switch to root, than to do all that other stuff- but sheesh! Ya'd think that they wouldn't make it so hard just to turn something off! (As you say though, I can see why- maybe like someone has a server running- and an employee is doing maintenance, and the owner doesn't want him to be able to just turn it off one day if the guy is mad or something, eh?) Darn! If you can't count on Slackware for stability, what can ya count on?! Continuing my Slack adventures: I just LSed into /sbin.... Wow, there's a ton of cool stuff in there! I even know what some of it is for! (Can you tell? I'm coming along nicely. 2 weeks ago, I would have started X and opened a file browser to look in /sbin...noiw I LSed from the console! Woo-hoo!) _____ Re: Shutting down: O-K.....just tried "sudo /sbin/poweroff" (a la Loomx) and it worked! (/sbin/shutdown" returned an error saying that it must include a time argument, and to try "now"- but for some reason, even with "now" I'd get the same message!) If I use the XFCE desktop, I can shutdown through there via the GUI thingy..... Seems like a lot of trouble just to turn the darn computer off! (But I'll get used to it) ______ Yet ANOTHER question: I noticed that some of the same files in /sbin are also in /bin- only the /sbin versions seem to be symbolic links, while the /bin versions seem to be executable (?)- could anyone briefly explain what the purpose of that is? (I tried out a few of the interesting-sounding things in those directories....and I will Google some, to find out what they are!) And...why is it that you have to type the full path to use some...and yet others can be run just by typing their name? Sheesh! The more I think I'm beginning to get a handle on this stuff...the more it seems I don't know! |
Quote:
http://linuxtroubleshoot.blogspot.co...s-sbin-vs.html Symbolic links are used for efficiency. There is no need to store the same file in 2 places. If you need type the full path as a standard user (and you're running a login shell), it means that the command is not in your path, which, in turn, means that probably it's not meant to be run as that particular user. For example, a lot of administrative commands are inaccessible to standard users as they are mean to be run as root. |
Quote:
BTW: You don't have to type stuff like that every time, you just learn how to script things and how to use shell aliases. |
Quote:
The `ALL' means you can run it from any host. |
Quote:
Code:
shutdown -h now |
Quote:
Code:
echo $PATH Note the difference? /sbin is in the execution path for root but not a normal user. EDIT: Experiment with the commands as a regular user and as root. Try becoming root with the command "su" and as "su -" (hyphen). which <program> whereis <program> type <program> alias You want to learn more about the commands above and tried the man pages but nothing was found? Try the type command (type type). |
Hmmmm..... Since installing Slack on my newly-acquired used laptop, I haven't been having any problems with LILO. Wonder iffin' the previous problems could have had something to do with my 'puter?
Quote:
|
All times are GMT -5. The time now is 03:56 AM. |