?
Solved

El capitan screen lock

Posted on 2016-09-06
7
Medium Priority
?
96 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 21

Assisted Solution

by:netcmh
netcmh earned 500 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 30

Accepted Solution

by:
serialband earned 1000 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 9

Assisted Solution

by:Tim Lapin
Tim Lapin earned 500 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 21

Expert Comment

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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 …
The error "There was an error performing the update" occurred on a Mac OS X client workstation running  Symantec AntiVirus for Mac (http://www.symantec.com/business/products/purchasing.jsp?pcid=pcat_security&pvid=825_1) - the Enterprise product vers…
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 …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

762 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