Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

FlameCoder

macrumors newbie
Original poster
Jul 13, 2016
3
0
I want to restrict password change in El Capitan. In 10.8 this was done on the parental control "Others" tab. This option is no longer there in 10.11. Is there a terminal command to restrict managed accounts from changing their passwords?
 

JohnDS

macrumors 65816
Oct 25, 2015
1,183
249
Perhaps you could use the Disallow Apps setting to disallow access to the System Preferences.
 

KALLT

macrumors 603
Sep 23, 2008
5,380
3,415
I’ve had a look at how this works on Mavericks. Enabling that setting creates a property list (plist) file at /Library/Managed Preferences/Username/com.apple.systempreferences.plist. You could try to create/add this file manually and see whether it still works. I have attached it for you. You can also create it yourself with these contents:
Code:
<?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>com.apple.preference.myaccount</key>
    <array>
      <string>ChangePassword</string>
    </array>
  </dict>
</plist>


There is also another plist file there called ‘complete.plist’ which contains all the options again. You might need to update that one too. You can edit this file with a code editor (preferably not a rich-text editor), like Atom. You should add this section, but you need to copy the line that begins with ‘mxc_users’ manually from another entry.
Code:
<dict>
  <key>com.apple.preference.myaccount</key>
  <dict>
    <key>mcxdomain</key>
    <string>always</string>
    <key>source</key>
    <array>
      <string>mcx_user_USERNAME_SOME_UUID</string>
    </array>
    <key>value</key>
    <array>
      <string>ChangePassword</string>
    </array>
  </dict>
</dict>


I do not know whether this works though. My guess is that the setting will be overwritten.
 

Attachments

  • com.apple.systempreferences.plist.zip
    287 bytes · Views: 329
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.