-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uploading sample LaunchAgent for Privileges
Uploading sample LaunchAgent for Privileges.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |