[SOLVED] sudo pm-suspend requires password [SOLVED]

Can anyone tell me why sudo pm-suspend still requires a password even though I have set the following in 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
# User alias specification
# Cmnd alias specification
# Defaults specification
# Defaults specification
# Reset environment by default
Defaults env_reset
# Set default EDITOR to vim, and do not allow visudo to use EDITOR/VISUAL.
Defaults editor=/usr/bin/nano, !env_editor
Defaults:ALL timestamp_timeout=0
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
%power ALL=(ALL) NOPASSWD:/sbin/shutdown -h now
%power ALL=(ALL) NOPASSWD:/sbin/reboot
%power ALL=(ALL) NOPASSWD:/usr/sbin/pm-suspend
%power ALL=(ALL) NOPASSWD:/usr/sbin/pm-hibernate
%power ALL=(ALL) NOPASSWD:/usr/sbin/pm-powersave
# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
And here are a list of the groups for my user
adm disk wheel locate games network video audio optical floppy storage power users kporter
Thanks ahead of time!
Last edited by kportertx (2010-07-15 06:00:15)

# 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
# User alias specification
# Cmnd alias specification
Cmnd_Alias NETBOOK_CMDS = /usr/local/sbin/backlight, /usr/local/sbin/backlight_reset, /usr/local/sbin/wireless_toggle, /usr/local/sbin/cpufreq_toggle, /usr/sbin/pm-suspend
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
meyithi ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
%users ALL=(ALL) NOPASSWD: NETBOOK_CMDS
You definitely need the space, if you're not using visudo to edit sudoers it won't pick up the errors.

Similar Messages

  • Can't find "Require Password" checkbox when creating network on MBP

    I'm trying to create a network as I've often done on a MacBook Pro.
    When I bring up the window to create the network, there is no "Require Password" checkbox.
    Does anyone know how to require a password please? I'm trying to create a little network for just my MBP, AppleTV and iPhone so that I run presentations via Airplay in a conference room, and I don't want everyone in the room logging onto my Mac. Thanks in advance.
    MBP Retina 13" late 2013. Yosemite 10.10.2

    OK I've managed to solve this problem but there's no rhyme or reason why what I did had any effect. I dug out the old printer and noticed that it was getting a 10.x IP address whereas the 710 was getting a 168.x IP address... that should have been my first clue, but I wasn't thinking. Nevertheless, I had no idea why it was getting that sort of IP address.
    So, I went through the manual set up (again) on the printer, and instead of searching for the SSID, I typed it in manually. Now it gets a 10.x IP address and it's showing up on my network.
    In the end, there is something screwy with the way the network software on the printer is handling its network search feature. Definitely an Epson thing, not Apple.

  • With some (not all) sites that require passwords, how do I get Firefox to resume saving passwords when the site is not in the exception list?

    For some banking sites that require passwords, I am 99.3% sure I at some time said "never remember passwords." Now I want to change my mind. When I go to Options/Options/Security/Remember.../Exceptions, the sites are not listed, but I still am not asked the question 'Want to remember....'

    Thanks for your help and your quick reply, cor-el!
    I did install the view passwords bookmarklet; it worked properly. I installed the saved-password-editor, and I think I entered all fields correctly, although (1) I was not sure of the meaning of the field 'submit prefix' and used the 'guess from current page' button, and (2) I winged it using the default on both the username field name and the password field name because the guess button simply said 'fill this form based on a likely login form on the current page.' [Does the button pick up that name?]
    After fumbling a while, everything got to working! So, THANKS! Although I'm still not sure what the 'view passwords' bookmarklet does for me, since I do know the needed passwords.
    I'm going to leave this open for one more day, since as a first-time user I don't know whether messages are added (such as explanations to my above minor issues) after I acknowledge the problem solved. I'll do that tomorrow.

  • Required password for itunes keeps pop up on my ipad constantly nonstop. So i put in password and then it keeps appear the confirm purchased pop up. I clicked on cancel a thousand times but it keeps popup right after i clicked cancel.

    Required password for itunes keeps pop up on my kid's ipad constantly nonstop. So i put in password and then it keeps appear the confirm purchased pop up. I clicked on cancel a thousand times but it keeps popup right after i clicked cancel. Tried so hard to deleted the game and sign out the itune because the popup appeared right the way, but nothing works, i also tried to reset the ipad 5 times but the itune sign in requied keep pop up that i can't do anything else, after sign in, the in-app purchased confirm pop up again over and over and over right after i clicked canceled and the game is already deleted from my ipad. I have had too much problems since i updated an ipad, i have to reset an ipad many times every time i download an app. Help please.

    I am having similar problems with iPad 3 freezing.  It was fine before upgrade to IOS 8.  Ready to throw it out!!  No one has any answers other than the norm.  Quite often have to hold power and home key down, which doesn't solve the problem.  It just unfreezes the situation you are in.  Wish this would be solved with the IOS 8!!  Should have never upgraded, but never had a problem with Apple software before.  Getting to feel like I am back with Windows.

  • Finder requires password deleting files

    Hey guys, finder requires password when I try to delete my files. I have read some of the suggestions on how to fix this online. That includes
    1. Open up Terminal and type in 'sudo chown yourusernamehere .Trash' and the other one is
    2. Click on the Get Info on the hardrive and change the username to read and write
    and apparently, none of these worked for me. I'm not sure if I'm doing it wrongly or what but yeaah, but problem is not fixed yet. Help!

    1. Triple-click the line below to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu.* An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • Require password w/out turning off screen?

    Hello,
    I'm wondering if there is a solution to my issue. I am hoping to run a slide show on my laptop and would like to lock out users from turning it off/making changes. Is there a way to do a screen lock w/out shutting the screen off? I know I can require password when returning from suspend. But i do not wish to put the device into a suspend mode, but rather a "sleep with open eyes" type of thing.
    Thanks,
    M

    Back up all data.
    In the Finder, select Go ▹ Go to Folder... from the menu bar, copy the text on the line below into the box that opens, and press return:
    ~/Library/Preferences/ByHost
    From the folder that opens, move the following file to the Desktop:
    com.apple.screensaver.*.plist
    Here * stands for a long string of letters, numbers, and dashes.
    Log out and log back in. Reset your Screen Saver preferences, including the timeout. If you're able to do that, delete the file you moved to the Desktop. Otherwise, you can put it back where it was.

  • Each time iTunes(v 11.0.2.26) launches, it requires password for my AppleID

    Each time iTunes(v 11.0.2.26) launches, it requires password for my AppleID

    If I were you I would try to troubleshoot your connection with itunes ON the system. But for starters it is very unlikely one program like itunes blocks your connection, so I would try to disable your antivirus/firewall during download and reinstall of itunes. May be your firewalll kicks in some panic mode. Judging by your name you have very strong firewall

  • I have changed my icloud email in my iphone but in macbook still using old email. I tried to delete the old email in macbook but it requires password and it does not accept the old password for the old email anymore. How do I remove this old email?

    I have changed my icloud email in my iphone but in macbook still using old email. I tried to delete the old email in macbook but it requires password and it does not accept the old password for the old email anymore. How do I remove this old email?

    Hello farahani hairon nizar,
    If your Apple ID was changed from your old account, you may have to change it back to your old account to be able to sign out and then change it back after that is done. Take a look at the article below for more information. 
    If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/en-us/HT203828
    Regards,
    -Norm G.  

  • System No Longer Requires Password to Wake from Sleep

    Greetings all! My Mini has recently stopped asking me to supply a password when waking it from sleep. It goes into sleep with no problem, complete with the pulsing white LED. But when I wake the system (using either the keyboard or the power button), the system just wakes up without requesting authentication. In addition, if I leave the system idle for 15 or 20 minutes, the screen saver kicks in. Trouble is, settings in both "Energy Saver" and "Desktop & Screen Saver" are set to never sleep the display. (And it doesn't require a password to wake the display there either.)
    I've tried unchecking and rechecking the "Require password..." option in "Security", I've tried rebooting, I've tried repairing priveleges. Nothing works. I do have a KVM switch hooked up to the system, but I don't think that's the culprit, as the system has required a password in the past with the KVM switch connected. In addition, I've had this problem occasionally in the past, and it usually comes up after I've installed a system update from Apple. In the past, it's just seemed to go away on its own, but I'd obviously like to fix it myself instead of letting it work itself out.
    Anyone have any suggestions on perhaps trashing certain prefs files or anything else? Thanks!
    Mac Mini 1.42GHz PPC Mac OS X (10.4.7)
    Mac Mini 1.42GHz Mac OS X (10.4.7)

    It's the same here on a recently bought MacBook Pro. Searching this forum produced quite a lot threads about this topic. But none of the solutions posted did work on my machine.
    I'd like to file a formal bug report with Apple, but I did not find any bug tracking system. Is the feedback program the only way to let Apple know there is a problem?? I'd prefer if I got some feedback on my problem report...
    Christoph
    MacBook Pro   Mac OS X (10.4.8)  

  • Require password to wake from sleep is broken

    Recently, the security setting "Require password to wake this computer from sleep or screen saver" stopped working for me. Seems like it was around 10.4.6.
    Now, whenever my mac is asleep or in SS, just moving the mouse gets me back to log in.
    I have automatic login disabled.
    I suspect that something is running on the mac that is making the mechanism think that the machine is still active or something, but I don't know how to go about figuring that out.

    I tto am having seeing this problem again just now, and agree that the culprit must be some dark process...
    I have seen this behaviour come and go in the past, tried all the suggested 'fixes', and have to say that I see no correlation between the two.
    I was obliged to perform a 'clean system install' several days ago (never before have I needed to do that on OS X - the machine was and is on 10.4.8) - only this problem arrived after that. My Powerbook Ti-DVI has, both before and since the OS re-installation, had extraordinary difficulty with restarts, let alone sleep, and MirrorAgent is most often the cause (iDisk synchronisation)...
    cannot say whether that might be related.

  • Have been advised by my email provider (recently blocked account requiring password reset) that they will only reset the password after a proven anti viru and malware scan has been done on ipad and iphone. Is this necessary and if so what do i use

    Have been advised by my email provider (recently blocked account requiring password reset) that they will only reset the password after a proven anti virus and malware scan has been done on ipad and iphone. Is this necessary and if so what do i use

    As KP has pointed out, there actually aren't any anti-virus programs in the App Store. There are a few that allow you to scan e-mail or stuff like that, and a few that provide you with information about malware and new threats for other systems. But none are available that can scan your iOS device for malware, because the security restrictions in iOS do not permit any apps to have that kind of access to anything. Which means that you also cannot be infected with a virus (unless you have jailbroken your device).
    If your account got compromised, that had nothing whatsoever to do with your iPad. Someone simply hacked it remotely. Happens all the time. It's really amazing that, in this day and age, e-mail providers are so ignorant of technology and how their own systems get compromised that they would try to require you to run software that does not exist!

  • Require password settings on mobile devices remediation failed

    Hello,
    I'm having an issue with 2012R2 Cfg Mgr and Intune.
    I have a managed Android 4.1 device.
    I'm trying to enforce "Require password setting on mobile devices" with a baseline config.
    Config Manager is reporting on my device "Remediation failed" 0x87D1FDE8.
    Is there anything I've done incorrectly? Perhaps not supported?
    Cheers.

    I've got password policy to apply just fine on android, verify that you actually waited long enough for the device to process policy - see
    this guide explaining the steps i took. Initially you might see the Remediation Failed message but wait at least a day to see how that pans out, alternatively change your CB deployment to just monitor instead of remediate and troubleshoot it that way
    Step by Step Configuration Manager Guides >
    2012 Guides |
    2007 Guides | I'm on Twitter > ncbrady

  • Change "require password to wake this computer from sleep or screensaver"

    Does anyone know how to change the checkbox in sys prefs > security > require password to wake this computer from sleep or screensaver via cli?
    I would like to always have this enabled, but individual users can shut this off...
    Thanks

    Code an AppleScript using the SystemsEvents>SecuritySuite>SecurityPreferencesObject>RequirePasswordtoWake then use the cli 'open' to run it?

  • Unexpected behaviour with "require password" and screen saver

    In 10.6.x, I checked "Require password after sleep or screen saver begins" and after the invoking the screen saver (via a hot corner) moving the mouse or typing on the keyboard brought up a password dialog.
    In Lion, this is what happens with the same settings:

    That got posted somehow before I finished. Here is what happens:
    The log in screen is displayed.
    I select an account and log in.
    The log in screen is displayed again.
    I am logged in, but have obviously been logged out in the meantime.
    This looks like a bug to me.

  • Why does my guest use require password?

    password????

    This issue is sometimes or always the result of transferring the Guest account from another system in Migration or Setup Assistant. See the discussions linked below.
    Mavericks guest user password
    Guest account requires password - Disabling/reenabling doesn't work

Maybe you are looking for

  • How to Call Crystal Viewer in a Web Appl such as VS 2005

    Post Author: RHerbert CA Forum: .NET I am new to web development and I was wondering if anyone knows of a document somewhere that explains the steps o how to incorporate Crystal Viewer inside to app to call crystal reports.  I found on on doing this

  • My control center is not colorful in iphone 4 ios7

    I have iphone 4 and when i open control center so it's not transparent and my cousine has iphone 4 his control center is colorful ......why ?

  • RSA ECB jvm 1.4.2

    This is a topic rewritten because i add the code tag :( Hi, im trying to do a simple PKCS7 RSA encryption, i only need that a String can be encripted using RSA and padding with PKCS7 but, i cant. I read a lot of topic in this forum, but no one aparen

  • Usage of wb_rt_api_exec.execute_in_background

    In wb_rt_api_exec_example.txt, the basic steps to run a map are: 1 - initialize session roles 2 - wb_rt_api_exec.open 3 - override SYSTEM params 4 - override CUSTOM params 5 - wb_rt_api_exec.execute 6 - wb_rt_api_exec.close If I wanted to use wb_rt_a

  • Authorization Restrictions for user

    Hi User has Sales Rep role and supposed to see only customers in the countries he is assigned to In this cas CN/HK But he can see customers in the US. Where can we see the restrictions and how to control this. We have ACE concpet also enable for our