Created
September 29, 2021 07:35
-
-
Save namp10010/a4774655e90a12ab5e1e26e9e63b9fe5 to your computer and use it in GitHub Desktop.
SAP PrivilegesCLI
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
#!/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