LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk
User Name
Password
Zenwalk This forum is for the discussion of Zenwalk Linux.

Notices


Reply
  Search this Thread
Old 03-15-2012, 02:11 PM   #1
slipstream5
LQ Newbie
 
Registered: Mar 2012
Location: Canada
Distribution: Ubuntu, Korora, SalixOs,
Posts: 26

Rep: Reputation: Disabled
Any way to reboot or shutdown Zenwalk without sudo terminal?


I'm sure I missed something, but so far I can only reboot or shutdown from root terminal. Can I do so as normal user?
 
Old 03-15-2012, 04:58 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Does ZenWalk support shutdown.allow? If not, then adding a custom line to the sudoers file should allow (specific or any) users to shutdown the system.

From the Shutdown Man Page (CentOS 5)
Code:
ACCESS CONTROL
       shutdown  can  be  called from init(8) when the magic keys CTRL-ALT-DEL are pressed, by creating an appropriate entry in /etc/inittab.
       This means that everyone who has physical access to the console keyboard can shut the system down. To prevent this, shutdown can check
       to  see if an authorized user is logged in on one of the virtual consoles. If shutdown is called with the -a argument (add this to the
       invocation of shutdown in /etc/inittab), it checks to see if the file /etc/shutdown.allow is present.   It  then  compares  the  login
       names  in  that file with the list of people that are logged in on a virtual console (from /var/run/utmp). Only if one of those autho-
       rized users or root is logged in, it will proceed. Otherwise it will write the message

       shutdown: no authorized users logged in

       to the (physical) system console. The format of /etc/shutdown.allow is one user name per line. Empty lines and comment lines (prefixed
       by a #) are allowed. Currently there is a limit of 32 users in this file.

       Note that if /etc/shutdown.allow is not present, the -a argument is ignored.
 
Old 03-15-2012, 09:25 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Without more to go on...

Sometimes you have to log out and then you can shutdown. (assumes gui)

Sometimes there are user rights that allow shutdown in gui.
 
Old 03-24-2012, 01:34 AM   #4
slipstream5
LQ Newbie
 
Registered: Mar 2012
Location: Canada
Distribution: Ubuntu, Korora, SalixOs,
Posts: 26

Original Poster
Rep: Reputation: Disabled
Never got a chance to try the posted solutions because I upgraded my system with gslapt instead of netpkg and got locked out of x (init 4 couldn't start). It looked pretty bad so I ended up re-installing Zenwalk 7. I sucessfully updated this time and now I can reboot as normal user AND the clock is correct (before it would keep reverting to the wrong time).

So I guess I'll mark it as solved!
 
  


Reply

Tags
howto, root, shutdown, users, zenwalk



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
[SOLVED] Reboot/shutdown command without sudo eveningsky339 Debian 4 03-11-2011 08:34 AM
Unable to shutdown/reboot server, no shutdown process running dctw Linux - Server 5 03-31-2010 05:46 AM
[FYI] "last -f <old wtmp> -x reboot shutdown" incorrect for last reboot and shutdown catkin Linux - General 1 03-25-2010 11:52 PM
Zenwalk reboots after shutdown adriv Zenwalk 2 10-20-2007 04:53 PM
Gnome Terminal Scrolls on reboot/shutdown gpetme Linux - Software 1 10-07-2004 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk

All times are GMT -5. The time now is 04:44 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
Open Source Consulting | Domain Registration