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.
Sorry for bothering again, but do you know how can i halt or reboot my system with my user account. i can do that under root, but not with user. it's a lil not comfy.
On my systems I prefer not to follow this method. I just use "su -c reboot" or "su -c halt"
This will ask for the root password and thats it.
No need to do any configuring. simple.
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Rep:
Keep in mind that the man pages are generic for the tool and assume that all *nixes are the same. They are not. For slackware, the halt/shutdown file is found in /etc/rc.d/rc.6.
eeeh, i guess I'd consider that somewhat of a security risk having users able to reboot or halt the system. A friend of mine did it a lot as an annoyance to me when i did have it set. Angered me severly ;-P
In slackware:
Using root, in Konqueror (file manager) on advanced permissions menu:
set uid for /sbin/shutdown
and add menu items:
for Halt - power down:
command: /sbin/shutdown -h now
for Reboot - power up:
command: /sbin/shutdown -r now
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.