[SOLVED] Permissions to halt/reboot won't work

Here is my sudoers file:
## sudoers file.
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
## See the sudoers man page for the details on how to write a sudoers file.
## Host alias specification
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias WEBSERVERS = www1, www2, www3
## User alias specification
## Groups of users. These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias ADMINS = millert, dowdy, mikef
## Cmnd alias specification
## Groups of commands. Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
# /usr/bin/pkill, /usr/bin/top
## Defaults specification
## You may wish to keep some of the following environment variables
## when running commands via sudo.
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
## Run X applications through sudo; HOME is used to find the
## .Xauthority file. Note that other programs use HOME to find
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
## Uncomment to enable special input methods. Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!/sbin/reboot !log_output
## Runas alias specification
## User privilege specification
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
# Allowing users in optical group to mount devices
# %optical ALL=(ALL) NOPASSWD: /bin/mount
# Allowing users in power group to suspend to RAM and halt
%power ALL=(ALL) NOPASSWD: /sbin/halt
%power ALL=(ALL) NOPASSWD: /sbin/reboot
%power ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
In any of the three cases above I recieve a message saying that I must to be root.
I'm on each of the following groups with my user:
lp wheel games network video audio optical storage power users
What am I missing?
Last edited by JMO (2011-03-25 20:06:32)

It's possible to execute a command as the user who owns the file (see SUID (chmod +s)), which would give you (and any other user!) the required permission to shut down the computer. Then you just need to add an appropriate executable flag to allow you to execute the file.
If it would save you some time: nothing you change about /etc/sudoers will have the effect you desire. Those are only settings for the sudo-command. If you're not using sudo, those settings will not have any effect.

Similar Messages

  • Partially [SOLVED] SD reader and touchpad won't work in AAO D260

    Hi people, I recently bought my new netbook with the shiny W7. Funny because the first thing I did is plugin in my Arch pen drive and wipe the entire HDD. I installed Arch easily and I could make work almost all of the hardware except the SD card reader and the touchpad.
    Actually, the touchpad does work but the synaptic features don't (two-finger scrolling, middle-click emulation, etc.). I've followed the instructions from the wiki but for some reason, it won't work.
    The SD card reader seems to be up, but when I insert a card in it, dmesg shows me this:
    usb 1-5: new high speed USB device using ehci_hcd and address 3
    hub 1-0:1.0: unable to enumerate USB device on port 5
    And there is no new block (sd*) apart from sda which is my HDD.
    If you want to know, this is the output of lspci:
    00:00.0 Host bridge: Intel Corporation Pineview DMI Bridge
    00:02.0 VGA compatible controller: Intel Corporation Pineview Integrated Graphics Controller
    00:02.1 Display controller: Intel Corporation Pineview Integrated Graphics Controller
    00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
    00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
    00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
    00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
    00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
    00:1f.0 ISA bridge: Intel Corporation Tigerpoint LPC Controller (rev 02)
    00:1f.2 SATA controller: Intel Corporation 82801GR/GH (ICH7 Family) SATA AHCI Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
    01:00.0 Ethernet controller: Atheros Communications AR8152 v1.1 Fast Ethernet (rev c1)
    02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
    Ah, my Arch is 64bits but I don't think it makes any difference in these problems.
    Thanks in advance!
    Last edited by sironitomas (2011-01-31 01:29:45)

    whitethorn wrote:
    I think the problem you have with the touchpad is the same one I have.  I have an acer aspire one 721, the touchpad is a new alps touchpad. I haven't been able to get mine working yet. I've haven't spent much time on getting it to run.
    Have a look here maybe it'll help.
    https://bbs.archlinux.org/viewtopic.php?pid=250490
    My touchpad doesn't get identified as an alps touchpad.  It get identified as a PS/2 Generic Mouse
    Currently I'm trying to figure out why hibernate and suspend aren't working.  I'll follow your thread maybe someone has a clue.
    It must be the same touchpad. If you want to compare, below is the output of "hwinfo --mouse"
    33: USB 00.0: 10503 USB Mouse
    [Created at usb.122]
    Unique ID: FKGF.gRjmE_XIt35
    Parent ID: pBe4.v+N+B0xY+P6
    SysFS ID: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0
    SysFS BusID: 2-1:1.0
    Hardware Class: mouse
    Model: "KYE Optical Mouse"
    Hotplug: USB
    Vendor: usb 0x0458 "KYE Systems"
    Device: usb 0x003a "Optical Mouse"
    Revision: "1.00"
    Compatible to: int 0x0210 0x0013
    Driver: "usbhid"
    Driver Modules: "usbhid"
    Device File: /dev/input/mice (/dev/input/mouse1)
    Device Files: /dev/input/mice, /dev/input/mouse1, /dev/input/event10, /dev/char/13:74, /dev/input/by-id/usb-Genius_Optical_Mouse-event-mouse, /dev/input/by-path/pci-0000:00:1d.0-usb-0:1:1.0-event-mouse, /dev/char/13:33, /dev/input/by-id/usb-Genius_Optical_Mouse-mouse, /dev/input/by-path/pci-0000:00:1d.0-usb-0:1:1.0-mouse, /dev/char/13:63
    Device Number: char 13:63 (char 13:33)
    Speed: 1.5 Mbps
    Module Alias: "usb:v0458p003Ad0100dc00dsc00dp00ic03isc01ip02"
    Driver Info #0:
    Buttons: 3
    Wheels: 1
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
    Config Status: cfg=new, avail=yes, need=no, active=unknown
    Attached to: #26 (Hub)
    35: PS/2 00.0: 10500 PS/2 Mouse
    [Created at input.183]
    Unique ID: AH6Q.oV6xZUCQFf1
    Hardware Class: mouse
    Model: "ImPS/2 Generic Wheel Mouse"
    Vendor: 0x0002
    Device: 0x0005 "ImPS/2 Generic Wheel Mouse"
    Compatible to: int 0x0210 0x0013
    Device File: /dev/input/mice (/dev/input/mouse0)
    Device Files: /dev/input/mice, /dev/input/mouse0, /dev/input/event6, /dev/char/13:70, /dev/input/by-path/platform-i8042-serio-1-event-mouse, /dev/char/13:32, /dev/input/by-path/platform-i8042-serio-1-mouse, /dev/char/13:63
    Device Number: char 13:63 (char 13:32)
    Driver Info #0:
    Buttons: 3
    Wheels: 1
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
    Config Status: cfg=new, avail=yes, need=no, active=unknown
    Could you get the SD card reader working? Here is the data from "hwinfo --redasd" as well. It seems the manufacter is MPX.
    01: IDE 00.0: 10600 Disk
    [Created at block.245]
    Unique ID: 3OOL.uvOtdmgvZE3
    SysFS ID: /class/block/sda
    SysFS BusID: 0:0:0:0
    SysFS Device Link: /devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0
    Hardware Class: disk
    Model: "Hitachi HTS54502"
    Vendor: "Hitachi"
    Device: "HTS54502"
    Revision: "PB2O"
    Driver: "ahci", "sd"
    Driver Modules: "ahci"
    Device File: /dev/sda
    Device Files: /dev/sda, /dev/block/8:0, /dev/disk/by-id/ata-Hitachi_HTS545025B9A300_100604PBN2033SDWG3HT, /dev/disk/by-id/scsi-SATA_Hitachi_HTS5450100604PBN2033SDWG3HT, /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0, /dev/disk/by-id/wwn-0x5000cca5f4da9280
    Device Number: block 8:0-8:15
    BIOS id: 0x80
    Drive status: no medium
    Config Status: cfg=new, avail=yes, need=no, active=unknown
    02: SCSI 500.0: 10600 Disk
    [Created at block.245]
    Unique ID: uI_Q.rzrXVB8WAiE
    SysFS ID: /class/block/sdb
    SysFS BusID: 5:0:0:0
    SysFS Device Link: /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host5/target5:0:0/5:0:0:0
    Hardware Class: disk
    Model: "MPX Memory Slot - 1"
    Vendor: "MPX"
    Device: "Memory Slot - 1"
    Revision: "0.00"
    Driver: "usb-storage", "sd"
    Driver Modules: "usb_storage"
    Device File: /dev/sdb
    Device Files: /dev/sdb, /dev/block/8:16, /dev/disk/by-id/usb-MPX_Memory_Slot_-_1_MP600-0:0, /dev/disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0
    Device Number: block 8:16-8:31
    BIOS id: 0x81
    Drive status: no medium
    Config Status: cfg=new, avail=yes, need=no, active=unknown
    03: SCSI 500.1: 10600 Disk
    [Created at block.245]
    Unique ID: LUEV.6sZ8Ft89QY2
    SysFS ID: /class/block/sdc
    SysFS BusID: 5:0:0:1
    SysFS Device Link: /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host5/target5:0:0/5:0:0:1
    Hardware Class: disk
    Model: "MPX Memory Slot - 2"
    Vendor: "MPX"
    Device: "Memory Slot - 2"
    Revision: "0.00"
    Driver: "usb-storage", "sd"
    Driver Modules: "usb_storage"
    Device File: /dev/sdc
    Device Files: /dev/sdc, /dev/block/8:32, /dev/disk/by-id/usb-MPX_Memory_Slot_-_2_MP600-0:1, /dev/disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:1
    Device Number: block 8:32-8:47
    BIOS id: 0x82
    Drive status: no medium
    Config Status: cfg=new, avail=yes, need=no, active=unknown
    Let me know if you have some info.

  • Reboot won't work on netbook

    Halt, suspend to disk and suspend to ram all work fine, but I can't get this machine to reboot - it goes through the usual halt procedure, but afterwards does not power off the hardware. Instead it powers off the screen, but I hear the fans going and the LEDs stay on. It's very odd. I have no problems just halting and powering back up, but I was wondering if anyone had experienced this, or knew what could be causing it?
    Happy to post any relevant outputs. Thanks for any help anyone can offer.

    Just rebooting from tty1, using sudo reboot. I don't use gnome/kde etc, just dwm.
    Occasionally the system does reboot, although most of the time it 'stalls' as described above.
    And yes, having just tested, this happens when using sudo and while logged in as root. My usual account cannot reboot.
    Last edited by saft (2010-12-29 17:09:28)

  • Macbook frozen reboot won't work. Firefox won't quit . Opened iMac to search answers froze on opening what is going on????

    My Macbook crashed when Firefox opened at start.I Did a restart same thing but even less responsive ended up with grey screen. have tried rebooting from DVD and using disk utility as was not sure of problem. MacBook is completely unresponsive now. Turned on old iMac to search for a Mac fix it shop and iMac crashes instantly upon opening as Firefox opens automatically. IMac had not been used for 5 months at least. Can't be a coincidence, nothing like this has happened before. I only other new thing is I changed providers the same day computer crashed... For first hour or so it was just slow. Thought just bugs needed ironing out. I had just bought an external HD to back up to. This is my work computer..my life is in there and I can't access it HELP!!! Please I am using a friends Ipad to post question on!

    We're sorry to hear that Firefox is crashing when you open it. Please do the following to give us crash IDs that will help us understand more about the crash.
    #'''(OS X 10.6 or previous)''' Click the '''Finder''' icon in the dock. Your home folder will be selected. In the right side of the window, click the Library folder to open it. Then open the "Application Support" folder, the "Firefox" folder, the "Crash Reports" folder and finally the "submitted" folder.<br>'''(OS X 10.7 or above)''' Click the '''Finder''' icon in the dock. On the menu bar, click the '''Go''' menu, hold down the '''option''' or '''alt''' key and select '''Library'''. A window will open containing your Library folder. Then open the "Application Support" folder, the "Firefox" folder, the "Crash Reports" folder and finally the "submitted" folder.
    #Open the 5 most recent files with a text editor and copy the IDs.
    #Paste each ID with '''bp-''' into the reply window on the forums.
    Thanks in advance!
    You can find more information and troubleshooting steps in the [[Firefox crashes]] article. and [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes]]

  • My phone 5s did the new update and will not come back on. I already tried hard reboot still won't work. Been over a hour now. Please someone help I need my phone.

    My phone 5s 16gb gold did the new update and will not come back on. I already tried hard reboot still won't work. Been over a hour now. Please someone help I need my phone.   This phone is not even 6 months old been in case no scratches. This is driving me crazy.

    Connect your phone to a computer and restore your software using iTunes.

  • My 4th Gen iPod Touch won't open up the apps I've downloaded. I've tried uninstalling and then reinstalling the app and it seems to only be a temporary fix. The reset and reboot didn't work either. Help would be appreciated.

    My 4th Gen iPod Touch won't open up the apps I've downloaded. I've tried uninstalling and then reinstalling the app and it seems to only be a temporary fix. The reset and reboot didn't work either. Help would be appreciated.
    In more specific terms. The apps that came on the iPod like the weather and maps and whatnot have been working flawlessly. It's just when I download an app and then disconnect from wifi it's almost like I'm on a timer until the app stops working. It acts like it wants to open, the screen flashes black then resets to the home pages. I've tried all of the basic fixes, rebooting, reseting, uninstalling then reinstalling. But like in my...long...question, the reinstalling option only seems to be a temporary fix. I just recently downloaded the 5.1.1 udate (I think that's what it was) does that have anything to do with it, or am I just derpy when it comes to iPods?

    Try the other suggestions here:
    iOS: Troubleshooting applications purchased from the App Store
    Then try a restore.

  • I updated my iPod to the ios6 Software and ever since I rebooted iMessage won't work. How do I fix this?

    It won't work. It was working at first when I updated but then after like 2 hours it wouldn't work. I rebooted it and THEN it wouldn't work. I would sign in to set it up, pick an email I wanted to use, but then it would take me back to the sign in screen with no explination. I'm getting really annoyed. I NEEED IMESSAGE. HELP

    See:
    iMessage won't work after iOS 6 upgrade: Apple Support Communities
    iOS: Troubleshooting FaceTime and iMessage activation

  • In Windows 7 Itunes loads and runs fine. When I close it down and try to get back in it just sits there. It won't work until I reboot the computer.

    I am running WIndows7. I boot up load itunes and it runs fine.. all aspects. 
    When I close it down and try to get back in later it just sits there. It won't work until I reboot the computer.
    I have updated and reloaded several times. Nothing

    Let's see whether this file APSDaemon.exe is the problem here.
    Close your iTunes.
    Press Ctrl-Alt-Del key and choose Task Manager. In the "Processes" Tab, select the file APSDaemon.exe and click End Prosses button, then close the task manager window.
    Now open itunes and see if it is working?
    If that works, make sure you do this below to prevent same problem after restarting windows:
    Go to. START button, type in
    MSCONFIG
    Hit ENTER
    Click STARTUP Tab, Uncheck "Apple Push", click OK.
    Restart Windows.

  • My iPad2 side switch is acting up, it will only allow me to have either sound or rotate. If I unmute the rotate won't work, if I mute the rotate works. How can I get the iPad to unmute and rotate? I have restored, downloaded updates and rebooted.

    My iPad2 side switch is acting up, it will only allow me to have either sound or rotate. If I unmute the rotate won't work, if I mute the rotate works. How can I get the iPad to unmute and rotate? I have restored, downloaded updates and rebooted.

    You should be able to control the function that the side switch isn't controlling via the left-hand end of the taskbar : http://support.apple.com/kb/HT4085 - is the icon that appears there (notification mute or rotation lock) indicating that that function is 'off' ?

  • My iPad 3 iOS 8.3 suddenly stopped playing sound on its speakers while on Spotify. Volume max. Side switch not on mute. Tried rebooting thrice. Sounds won't work on other apps. Works with earpods.

    My iPad 3 iOS 8.3 suddenly stopped playing sound on its speakers while I was listening on Spotify. Volume was maxxed out. Side switch not on mute. Tried rebooting thrice. Sounds won't work on other apps (Soundcloud, NPR, Clash of Clans). There are sounds when I attached my earpods. I tried the switch to mono solution on the other threads, didn't help either.
    My iPad is generally muted because of classes, but when I un-mute it it works fine. It just stopped after one song, and now I can't get it to work. Any thoughts? Thanks.

    Hi!
    I've the same issue after updating to iOS 8.3. on iPad 3.
    sound is working properly only with headphones attached.
    when I tap on AirPlay button it says "Docking connector" while it should "iPad"
    when i play with sound settings and try to change e.g. some alert sounds, sound is played and volume slider in control center magically appears.
    any other app can't play sound.
    is there any fix for that?
    Thanks

  • I dropped my iphone 4 into the water and then i tried the rice method. The rice solved the water issue but now the screen won't work. what should i do?

    I  dropped my iphone 4 into the water and then i tried the rice method. The rice solved the water issue but now the screen won't work. what should i do?

    I guess your definition of "solved" is different from most...
    Make an appointment at the genius bar of your local Apple Store and get an out of warranty replacement.

  • Hotspot won't work until reboot

    I have an LG G2 on android 4.4.2.... and my hotspot won't work until I reboot the phone.  This is extremely annoying, as the only time I need the hotspot, I need it NOW, not in a few minutes.   How to fix this?

        Snn5,
    Gotcha! Having a software update failure is definitely not normal. We need to get that software installed, and we need it to go smoothly for you. This may require a Factory Reset. Please back up your phone's information first as a factory reset will erase the entire phone and then follow these steps -> http://vz.to/1lGsddB  Let us know if the hotspot is still misbehaving after the reset is done.
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • Mavericks won't work with my cannon printer/scanner Cannon MP560 what can I do to solve this?

    mavericks won't work with my cannon  Cannon MP560 printer/scanner what can I do to solve this?

    Try restarting the device first..
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, then swipe the slider to power off.
    Then press and hold the Sleep/Wake button until the Apple logo appears.
    If that doesn't help, try here > iOS: Troubleshooting Messages

  • I plugged IPOD in to sync ( first time in over a year) it auto started with the "Do Not Disconnect", but did not sync.  Now the IPOD is stuck in that mode, won't shut off, won't sync, won't work.  is there a way to reboot it?

    I plugged IPOD in to sync ( first time in over a year) it auto started with the "Do Not Disconnect", but did not sync.  Now the IPOD is stuck in that mode, won't shut off, won't sync, won't work.  is there a way to reboot it?

    It has already been 6 days from your post, my apology for responding so late, but it is my habit to help only the leftovers, which the other contributors missed.
    Toggle the hold switch make sure there is no red showing.
    To reboot an iPod. (Or RESET in Apple iPod jargon)
    Press Menu and Center button for about 10 secs till the Apple logo comes ON , this would not erase any data from your iPod.
    I would advice you to leave the iPod charging for about 4 hours, if it has been discharged for 1 year or more, and also Apple recommends that you charge the iPod at least once a month, to prevent a discharged battery leakage, which may corrrode the circuitry in the iPod.
    Hopefully you don't get the dreaded RED X on the iPod screen.
    Good Luck!

  • Javascript or applet dropdown menus won't work in IE6, How can I solve this

    I've made some dropdownmenu's of javascript and one of java applets. But they don't work in IE6. If IE6 is installed they won't work either. My friend has IE5.5 and he has no problems with the menus. How can you make them work.
    And how can you change the z-index of a javascipt/applet? How do you make a dropdownmenu that's put in the topframe slide over the mainframe?

    Perhaps someone could help me with the following question:
    I have a menu that cascades out of the Applet box. My question is:
    How do I close the menu without clicking on the Applet box? - i.e. if the user clicks on the HTML area of the WEB-PAGE, or simply waits a second or 2, the menu should collapse?
    I notice that this is actually the default behavior for the AWT classes - but then you can't set background colors etc. I need the same kind of behavior, but using Swing classes.
    Would appreciate any assistance or advice...

Maybe you are looking for