Solved

El capitan screen lock

Posted on 2016-09-06
7
69 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 28

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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

If you other experts are anything like me you are always looking into and testing out new features. While I was doing some research one day I ran across an app that I installed on my Mac and used as a security system. Mac OS X: SecureHome uses your …
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now