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?

Similar Messages

  • Since upgrading to LionEvery time I wake the computer from sleep mode I have to wait several minutes until the computer connects to the Internet

    Since upgrading to LionEvery time I wake the computer from sleep mode I have to wait several minutes until the computer connects to the Internet

    I have found that Lion is slower to connect to WiFi when awakening than were previous Mac OS X versions.  However, the WiFi connection usually takes less than 15 seconds unless a Time Machine backup was interrupted when my computer was put to sleep.  When this happens and the computer awakens, the Time Machine backup attempts to continue prior to the WiFi connection having been made.  Until the Time Machine backup fails due to its inability to connect to my Time Capsule because of no WiFi connection, or I stop it manually, the WiFi connection will not occur.  So if Time Machine backups are on, you may be experiencing this bug which I have reported to Apple.

  • Unix command to require password to wake computer from sleep or screensaver

    Yo folks,
    Just as the subject says, is there a Unix command we can send that turns on the option to require password when the computer wakes from sleep or screensaver...which is the first option in System Preferences --> Security?
    I looked through the systemsetup commands and didn't find anything.
    Thanks!

    Run the following AppleScript:
    set items_1 to items -18 thru -2 of (do shell script "ifconfig en0 ether")
    set items_2 to ""
    repeat with this_item in items_1
    if this_item is greater than ":" then
    set items_2 to items_2 & this_item
    end if
    end repeat
    set the_path to "defaults read ByHost/com.apple.screensaver." & items_2
    set old_string to do shell script the_path
    set new_string to (items 1 thru 6 of old_string) & "askForPassword = 1;" & (items 27 thru -1 of old_string) as string
    do shell script "defaults write ByHost/com.apple.screensaver." & items_2 & " '" & new_string & "'"
    The necessary plist key is part of an array, and is in a file which has the computer's Ethernet address in its file name, so the script needs to handle both tasks. This change will not show up in the GUI until the account logs out and back in.
    (24015)

  • "Connecting to the network is taking longer than usual" message after I wake my computer from sleep

    Connecting wirelessly after waking computer from sleep yields the message "connecting to the network is taking longer than usual".  This only occurs after sleep, it also does not allow it to autoconnect like when starting the computer up.  All
    drivers seem to be up to date and happens at more than one wireless location, home and school.  I have a windows 7 opperating system.

    I just had the same problem with my HP Pavilion dv6 laptop.
    I was able to resolve the problem by uninstalling my Intel Centrino Wireless Network adapter (but I did not delete the driver).  I did this by right-clicking My Computer, Manage, Device Manager, expanded the Network Adapters group, and right-click the
    Wireless Network Adapter and click Uninstall.  I recommend that you reboot once this is done.
    My laptop now connects to Wifi immediately after waking the laptop from sleep.
    This is what finally resolved my problem. Sony Vaio with 64bit Windows 7. Wireless would sometimes take up to 3 minutes after Windows started to connect. After following these instructions, I first removed all wireless networks, then from the System Control
    Panel I deleted (along with the driver) the Wireless Adapter. I then installed a fresh driver directly from the maker (not OEM). 
    I now connect to Wifi immediately after booting or waking from hibernation.
    Thank you
     Emmitt<abbr
    class="affil" style="border:0px;font-style:inherit;font-family:inherit;margin:0px;outline:0px;padding:0px;display:inline-block;vertical-align:top;color:#000000;"></abbr> 

  • Phone wakes the computer from sleep - ??

    Anyone ever seen something like this? It's just started to happen recently, and I haven't reconfigured my desk or the office...
    Whenever the phone rings and my laptop is sleeping, the laptop wakes up! The two devices aren't plugged into the same powerstrip, or even the same plug for that matter. And this has never happened before.
    Just thought it was curious.

    If you use a wireless router try changing the channel. You can download the iStumbler utility (www.versiontracker.com or www.macupdate.com) and use it to determine what channels are currently free of overlap with any other wireless devices. Alternatively, you may be able to change the telephone's channel. In any case separating the channels may reduce interference. You can also try turning on the Interference Robustness option of the Airport card.

  • 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.

  • Require password after wake or screensaver?

    If my screen saver starts or my computer goes to sleep, I would like my computer to require password login upon wake? I've searched around various screen saver and power saver options, but I am not seeing this option. Can this be done?

    Hi Norm,
    System Preferences>Security, first one on the bottom half, check Require password to wake this computer from sleep or screen saver.

  • Wake computer from sleep & sync iDisk?

    I'm wanting to wake my computer from sleep & sync my iDisk at a set time in the day. Does anyone know if it would be possible, & if so how?
    I thought if it could be done with AppleScript (wake & sync the iDisk) I could set iCal to run the script at a set time while sleeping which would wake the computer & run the script.

    Your script will not run while the machine is idle, so you have to have some other process effect the wake up. This can be scheduled through System Preferences -> Energy Saver, or through the command line pmset, but you can't just have your AppleScript running in the background and expect the machine to wake on its own.
    So you need to get a script to run your backup, and some other process (e.g. iCal) to start that script at the appropriate time.

  • Mouse wakes computer from sleep

    Any time I close the lid on my MacBook Pro, and accidentally hit my mouse, it wakes the computer from sleep. How can I stop this? There is no "mouse" wake option in Energy Saver, so where can I turn it off?

    Check under *Keyboard & Mouse* in preferences. Mine is a wireless bluetooth mighty mouse and it's under Bluetooth I don't have a USB mouse but from this article there may not be a switch for turning the wake up off.
    How to use your PowerBook G4, MacBook Pro or MacBook with the display closed

  • Mouse waking computer from sleep

    I'm using a wireless USB Logitech mouse with my MacBook. Moving the mouse wakes the computer from sleep and I would like to disable this function. Is there a way to change the setting so the computer requires a keystroke to wake it?
    Thanks.

    I'd rather not buy a new mouse if I don't have to. I found this link http://www.macyourself.com/2008/08/28/prevent-accidental-wake-ups-when-an-apple- laptops-lid-is-opened/ that shows how to disable the lid wake function in terminal. Is there a mouse wake disable code in terminal?

  • How do I stop aluminium wireless keyboard from waking computer from sleep?

    Hi
    My aluminium wireless keyboard wakes my computer from sleep, at random occasions. Sometimes after five minutes, other times up to four hours. Sometimes not at all. My iMac wakes up (annoyingly during the night, waking me up as well) and screen says "Connection Lost", showing the greyed out keyboard-logo. It's not lying either—keyboard doesn't work, for about 30 sec until the stupid thing finds it again and all is back to normal.
    *What can I do to stop this irrational behavior?*
    Could this be a bluetooth hardware-malfunction?
    (Background: My iMac has been acting this way, as far as I can recall, throughout all of the 10.6.X-upgrades—from time to time. Reason I am posting this now is that I haven't had this problem for a couple of months now, but it came back out of nowhere the other night, about a week ago. And I haven't been doing anything out of the ordinary, that I haven't done at least a couple of times during this period where it all worked fine.)
    Additional information: I don't know if this has anything to do with the problem at hand, but when using the bluetooth for something other than just keyboard+mouse, say syncing my Nokia phone, the mouse always goes haywire and acts all laggy, trickling across the screen as I try to move it.

    Yes, that sounded indeed like a daft question, but as it seems changing the batteries did actually solve the puzzle. I am baffled by this, as the batteries claimed to be at 40% and shouldn't need to be changed. But I changed them after reading your reply, and the problem stopped. Now, one week and a couple of days later, the problem still has not reoccurred.
    For one reason or another, once batteries drop under a certain level of power, the keyboard connection will start acting up. I feel a bit silly, should have checked that bit myself before posting my question, but I'm glad this solved my problem. Thank you ajduguid.

  • I am using a USB keyboard and everytime I wake the iMac from sleep the keyboard will not respond unless I unplug and replug the keyboard. I am using a mid-2010 iMac with OSX 10.6. Any help would be appreciated.

    I am currently using a USB keyboard (PC Model) and everytime I wake the computer from sleep the keyboard no longer responds unless I unplug and replug it. The USB mouse I am using works fine with no issues and I have already gone through the prompt to identify the keyboard in the settings. If anyone know of a setting I can use to permenantly enable the keyboard so I no longer have to unplug and replug it that would be appreciated.
    Thank you.

    Your 2010 MBP would be able to handle Yosemite, but I would strongly suggest that you get the current problem sorted out before trying to upgrade to Yosemite. I'd also recommend another backup that isn't created by Time Machine if you are thinking of upgrading. SuperDuper and CarbonCopyCloner can make bootable clones of hard drives. If you clone your existing system to a fresh external drive, you would be able to boot from that drive and recover quickly in the event that your Yosemite upgrade didn't work out. Time Machine backups are not 100% reliable.
    It's possible that, if your internal HD is the one that shipped with your MBP in 2010, it may be failing. If it keeps needing repairs, that is probably a sign that it is approaching the end of its useful life.
    Have you run Disk Utility's Repair tool on the external drive as well?
    I mentioned the hub because some people have reported here that attaching their USB 3 drives through a USB 2 hub solved some disconnection problems. A good-quality powered USB 2 hub won't cost much.
    My most recent brush with random disconnections involved a nice new OWC drive enclosure. I used the cable that came with the drive, but the drive kept disconnecting. Using a different cable solved the problem. You wouldn't expect that what appeared to be a high quality cable would be a problem straight out of the box, but it was.

  • Require password to wake computer...

    I have set this option in the Security section of the computer prefs. It seems that at random times it refuses to take the password in order for it to wake from sleep or screensaver. Only way around is to force reboot, safe mode boot, and then reboot back into the user. If I boot directly into the user, I get the blank finder where only the Spotlight Icon appears. I have tried to change my users password and it still happens. Repaired permissions as well as checked on the HD.
    Is there any sort of fix for this? It is rather annoying. I have advised everyone to save before getting up so they do not loose work, but there has to be something odd going on.
    Thanks

    Sorry, I'm out of ideas. Hopefully, others will chime in here. In the meantime................
    If you have AppleCare, get your $$$ worth & contact them for assistance. Or you can also check around on the Knowledge Base website for any password troubleshooting Articles: http://search.info.apple.com/

  • "Require password to wake computer" background color

    Is there any way to change to color of the background when you awake from sleep and are presented with a login screen? I'm kinda tired of black, an image would be great. Anyone know of a way to do this?

    Dick M wrote:
    Still don't know what you're getting at? When I wake my machine from sleep it goes to the desktop I've set. Go to System Preferences (Apple Logo upper left hand corner) and Desktop Screensaver then Desktop. Is it set to black in solid colors?
    He has it set to ask for a password-a dialog box comes up prompting for a password, with a black background. When you enter it and press enter, your normal desktop appears.
    There's no way to change that color, AFAIK.

  • I have a password problem. After importing data and settings from one MacBook Pro to a new one, I have to put my iCloud password in when re-starting, but the password from the old computer in when waking the computer from sleep.

    I have a password problem. After importing data and settings from one MacBook Pro to a new one, I have to put my iCloud password in when re-starting the new computer, but the password from the old computer in when waking the computer from sleep. I want to use my iCloud password on both computers consistently. How can I fix this?

    The only other place to change a password for the computer login is in Users & Groups preferences. But I don't really know enough here to fix your problem. You can try fixing the keychain:
    iCloud- Frequently asked questions about iCloud Keychain
    Tutorial: Resolving Keychain Issues
    If you can't access your keychain, or forget your password If you can't get into your keychain file because you've forgotten your password or the keychain file appears to be corrupt, there are a couple of options.
    First, if you've forgotten your password, you can use the "Keychain First Aid" utility to make the keychain password the same as the login password. This can be accomplished via the following process:
      1. Open Keychain Access (located in Applications/Utilities)
      2. Go to the "Keychain Access" menu and select "Preferences"
      3. Click the "First Aid" tab
      4. Make sure the "Synchronize login keychain password" box is checked
      5. Close the Preferences window
      6. Go to the "Keychain Access" menu and select "Keychain First Aid"
      7. Enter your username and password
      8. Click the "Repair" button
    The second option is to completely delete your keychain then recreate it. This routine is useful if your keychain appears to be corrupt or otherwise inaccessible. This can be accomplished as follows:
      1. Launch Keychain Access (located in Applications/Utilities)
      2. Click "Show Keychains" in the lower-left corner of the window.
      3. Select the problematic keychain from the left-hand pane.
      4. Navigate to the "File" menu and select "Delete Keychain '(name of keychain)'"
      5. Check all options for deletion and press "OK"
      6. Create a new keychain by going to the "File" menu, then "New" and selecting
          "New Keychain"
      7. You can now make this keychain your default if you desire by selecting it, then
          going to the "File" menu and selecting "Make '(name of keychain)' Default"
    Login as root and perform repair In some cases, problems with keychains can only be resolved when logged in as the root user.
    First, you want to enable the root user:
      1. OS X Mountain Lion: Enable and disable the root user
      2. OS X Lion: Enable and disable the root user
      3. Mac OS X 10.6: Enabling the root user
      4. Enabling and using the "root" user in Mac OS X
    After enabling the root user, and logging in under this account, again open Keychain Access. First attempt repairs using Keychain First Aid, and failing that, delete then recreate the keychain as described above while logged in as root.
    Persistently asked for stored passwords If you are persistently asked for passwords in various applications that you have specified should be remembered in a keychain, your "login" keychain may not be active for one reason or another.
    Navigate to ~/Library/Keychains/ (this is the Library folder inside your user's home folder). Find the file named "login.keychain" and double-click it.
    Failing that, select the "login" keychain within the Keychain Access application and make sure it is the default keychain by going to the "File" menu and selecting "Make 'Login' Default"
    Turn off Keychain synchronization in applications having problems If specific applications are experiencing issues when accessing password-protected material, the Keychain may be to blame.
    The above comes from an article published on MacFixit.com.

Maybe you are looking for