Solved

El capitan screen lock

Posted on 2016-09-06
7
83 Views
Last Modified: 2016-09-07
How can I disable the screen saver password for all users? Users have to restart the mac to log in if another user forgets to log out because the "require password 5 minutes after sleep or screen saver begins" setting in the security and privacy pane in the system preferences.   This is on El capitan
0
Comment
Question by:Roccat
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 9

Expert Comment

by:Tim Lapin
ID: 41786169
From what I've read, about the only way to disable such a feature system-wide is via configuration profiles and the like.  Software such as JAMF will also give you that kind of control.

Other than those options, I think you'll have to consider messing with .plist files.  If I have time, I will investigate further to determine which pref file or equivalent might do the job, assuming it's even possible.
0
 
LVL 20

Assisted Solution

by:netcmh
netcmh earned 125 total points
ID: 41786525
You can use the following AppleScript code:

tell application "System Events" to set security preferences' require password to wake to false
0
 
LVL 29

Accepted Solution

by:
serialband earned 250 total points
ID: 41787831
You'll need to add osascript, if you're running from the command line.  You'll also need to be root, so you'll need sudo.
Just ssh to all your systems and send the following command line to each system.
sudo osascript -e 'tell application "System Events" to set require password to wake of security preferences to false'
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 9

Assisted Solution

by:Tim Lapin
Tim Lapin earned 125 total points
ID: 41787884
I tried a test and disabled the password lock on my mac.  I did notice that the preferences file for the screensaver (com.apple.screensaver.plist) in my user library has the following code snippet that asks for a password upon waking from the screen saver:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>askForPassword</key>
	<integer>0</integer>
	<key>askForPasswordDelay</key>
	<real>5</real>
	<key>tokenRemovalAction</key>
	<integer>0</integer>
</dict>
</plist>

Open in new window


The second line shows a 0 (zero) entry.  That means no password requirement.   It had a 1 before I disabled the password check.

The fourth line shows a 5.  It refers to a 5 second delay before locking the screen and asking for a password.

The system level version has no such code.  

It is possible that the command from serialband inserts that snippet.  Try his command first and check.  If that does not work, you can try to insert the above snippet in the system level version and see what it does.

Note:  I have not tried editing this particular system plist file but I have edited others without problems.  Please remember that editing .plist files on the fly can be riskier than issuing commands via Terminal.
0
 

Author Comment

by:Roccat
ID: 41788474
Thank you! I noticed that our device management software (lanrev) supports configuration profiles and we utilized them
0
 

Author Closing Comment

by:Roccat
ID: 41788475
Thank you!!
0
 
LVL 20

Expert Comment

by:netcmh
ID: 41788503
Thank you for the grade. Good luck.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With the major release of Apple's 7th addition to the Mac OS X family, Mac OS X 10.6 Snow Leopard, there are a lot of enhancements which have arrived with this new OS X upgrade. With the number of enhancements and refinements I can provide deta…
If you are using Mac OS X and have a large number of login items set up in accounts, under system preferences, you may find that your computer is sluggish and unresponsive during startup until everything is done launching. Another problem that a…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question