Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

El capitan screen lock

Posted on 2016-09-06
7
Medium Priority
?
99 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
Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

 
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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
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, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

604 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