LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2005, 07:15 PM   #1
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 958

Rep: Reputation: 35
letting users halt the system


how do i alow normal users to be able to use the halt and reboot comands?

currently i have to SU to swich the computer off and its anoying, i also dont wnat to let otehr users acsess # but they need to be able to turn the machine off when they are done with it.
and punching the power button untill the machine dies isnt good for the Hard disk!

i woudl like to be able to halt form a user account either form the KDE logout box (like i have seen on some systrems running gnome) or from the command line.

i am using slackware 10.2 with KDE
 
Old 10-14-2005, 07:34 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 50
I don't know about Slackware, but on my FC4 there is a package called "usermode" or "userhelper" or "consolehelper" or something like that that allows users to poweroff, halt, or reboot.
 
Old 10-14-2005, 07:42 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
You can also create an /etc/shutdown.allow file with a list of users allowed to shut down the system. The shutdown command run from the terminal will honor this file.
 
Old 10-15-2005, 01:55 AM   #4
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
If you want it from the command line then you can press ctrl+alt+del. And for that you have to create /etc/shutdown.allow as btmiller has suggested. Make a entry in /etc/inittab file also, similar to the lines below,
ca::ctrlaltdel:/sbin/shutdown -a -t3 -r now
-a flag tells shutdown to look for the /etc/shutdown.allow file.

-Prasanta
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to halt a system with private ip from a system in other net work seabark99 Linux - Networking 3 03-20-2005 08:36 AM
regular users using halt TimmyP Debian 4 11-08-2004 03:06 AM
All users can halt system Equin Linux - Security 2 10-17-2004 01:15 PM
halt or poweroff permission for users salahuddin_66 Slackware 6 04-23-2004 04:13 AM
letting non-root users mount devices davey Linux - General 3 12-10-2003 06:09 AM


All times are GMT -5. The time now is 11:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration