Skip to content

Instantly share code, notes, and snippets.

@namp10010
Created September 29, 2021 07:35
Show Gist options
  • Save namp10010/a4774655e90a12ab5e1e26e9e63b9fe5 to your computer and use it in GitHub Desktop.
Save namp10010/a4774655e90a12ab5e1e26e9e63b9fe5 to your computer and use it in GitHub Desktop.
SAP PrivilegesCLI
#!/bin/zsh
# the PrivilegesCLI (verson 1.5.2) is located under
# /Applications/Privileges.app/Contents/Resources/PrivilegesCLI
# running it without any arguments would show the following hint
# Usage: PrivilegesCLI <arg>
#
# Arguments: --add Adds the current user to the admin group
# --remove Removes the current user from the admin group
# --status Displays the current user's privileges
# make a symlink
ln -s /Applications/Privileges.app/Contents/Resources/PrivilegesCLI /usr/local/bin/privileges
# enable admin
privileges --add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment