SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed Slackware 11 recently (moved from Mandriva). Indeed I was fascinated by the speed increase and the ability to configure just about everything and the absence of fancy image loads during boot and so on. However, I stubled on some problems.
First, I am unable (as a user) to "shutdown -h now" or "halt" because I am not root user. How do I correct this?
Second, I swith over to root (either by logging in or "su") and issued a shutdown command. The procedure went fine, yes but it stopped at "power off". I should have powered down, but instead, kept consuming power. I press the computers power button but didn't work. So I kept it in for about 5 secs to force-power off. How do I fix this?
Second, I swith over to root (either by logging in or "su") and issued a shutdown command. The procedure went fine, yes but it stopped at "power off". I should have powered down, but instead, kept consuming power. I press the computers power button but didn't work. So I kept it in for about 5 secs to force-power off. How do I fix this?
No solution, but the same problem here.
My guess is that it's a bug.
I'm having the same issue with Ubuntu (on another machine), it's a known bug there.
Don't have a solution for number 1. It doesn't bother me to have to run "halt" as a root user so I havent' looked into it. I'm sure you can set up some kind of "sudo" to enable it for a user. Note that you can reboot w/o being root by simply pressing Ctrl-Alt-Del anytime.
For problem #2 - try enabling APM by running "modprobe apm" as root and see if the system will power off automatically when you issue "halt". If that works you'll want to make sure the module is loaded during startup in /etc/rc.d/rc.modules
For problem #2 - try enabling APM by running "modprobe apm" as root and see if the system will power off automatically when you issue "halt". If that works you'll want to make sure the module is loaded during startup in /etc/rc.d/rc.modules
That dit it!
Thanks.
@Bimbalhada,
What you can do is this: Start Control Centre (now I'm going to guess a bit, because my Slack is in Dutch, so it can be a bit different) --> Systemcontrol --> Login screen --> Shutdown.
There you can allow other users to shutdown.
The command "modprobe" solved the problem yes, but I didn't alter the rc.modules because I upgraded the kernel to 2.6 (and got a kernel panic because my root is reiserfs, but I solved it already) and the computer now powers off correctly without modprob'ing. Still I have the shutdown problem which was not solved by control panel. Somewhat I'll figure that out, but it's not a real problem anyway. Thanks for the help.
Assuming you know how to use vi, that should take care of it, and anybody who issues a /sbin/any of those three command should be able to shutdown, halt, or reboot.
Although I haven't actually done this, I assume it would work.
The other route, which I actually use is to use the KDE Login Manager, KDM. It allows me to log off no matter what person I am. And no, you don't have to use KDE & KDM. I use KDM to login, but then run fluxbox as my window manager.
Second, I swith over to root (either by logging in or "su") and issued a shutdown command. The procedure went fine, yes but it stopped at "power off". I should have powered down, but instead, kept consuming power. I press the computers power button but didn't work. So I kept it in for about 5 secs to force-power off. How do I fix this?
The "bareacpi.i" kernel solved this problem on all computers here.
msantinho has a better solution than mine. That way other users, such as the user who runs the apache webserver or other such things cannot shutdown the computer, only those who login can shut it down.
For problem #2 - try enabling APM by running "modprobe apm" as root and see if the system will power off automatically when you issue "halt". If that works you'll want to make sure the module is loaded during startup in /etc/rc.d/rc.modules
That dit it!
Thanks.
@Bimbalhada,
What you can do is this: Start Control Centre (now I'm going to guess a bit, because my Slack is in Dutch, so it can be a bit different) --> Systemcontrol --> Login screen --> Shutdown.
There you can allow other users to shutdown.
But, on another machine where I installed Slackware, unfortunately, this doesn't work.
It's not a laptop, just a desktop, with a 2.6.18 kernel on a SATA-disk.
EDIT:
When I boot, log in (init 4) and choose for shutting down, it works.
Anyone an idea what is wrong?
Nothing wrong with that ... in fact, that's one of the better ways to achieve what you want, which is to be able to shutdown as regular user.
Usually shutdown problems happen on laptops that poorly support ACPI, in which case using APM instead, will solve the problem.
Well, it would be more convenient if commanding halt would do the job.
I think you misunderstood me (my fault, I should have been more clear).
To get this straight:
Shutting down doesn't turn off the pc (all is stopped & unmounted, the led's go out), but to actually turn off power, I have to push the power button.
It's NOT a permissions-matter, as root it doesn't shut down properly either.
The strange thing is, when logging in (in kdm that is!), you can choose for Session (which desktopmanager you want) or System. In the latter menu choose for shutdown. That works!
How come it doesn't shut down in a normal way (when you click K-Menu --> Shutdown, etc., neither when you try it via command line (halt or shutdown -r)?
OK, been experimenting a bit:
Boot --> don't log in but choose for shutdown --> pc shuts down properly.
Boot --> log in to Fluxbox --> open xterm and type halt (as root) --> pc shuts down properly.
Boot --> log in to Xfce --> open xterm and type halt (as root) --> pc shuts down properly.
Boot --> log in to KDE --> open konsole and type halt (as root) --> pc does NOT shut down properly.
So I guess it's a KDE-thing.
But what?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.