Skip to content

Commit

Permalink
Uploading sample LaunchAgent for Privileges
Browse files Browse the repository at this point in the history
Uploading sample LaunchAgent for Privileges.
  • Loading branch information
rtrouton committed Jul 3, 2018
1 parent 1372e88 commit d67542a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sample_launchagent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Privileges.app LaunchAgent

This sample LaunchAgent for **Privileges.app** can be used to automatically remove admin rights on login. To do this, it uses the `PrivilegesCLI` command line tool to run the following command:

`/Applications/Privileges.app/Contents/Resources/PrivilegesCLI --remove`

Running this command removes the logged-in user from the admin group.





Support
===================================
This project is 'as-is' with no support, no changes being made. You are welcome to make changes to improve it but we are not available for questions or support of any kind.
17 changes: 17 additions & 0 deletions sample_launchagent/corp.sap.privileges.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?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>Label</key>
<string>corp.sap.privileges</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/Privileges.app/Contents/Resources/PrivilegesCLI</string>
<string>--remove</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>LimitLoadToSessionType</key>
<string>Aqua</string>
</dict>
</plist>

0 comments on commit d67542a

Please sign in to comment.