Hi,
I want to remove the current login user as admin and I tried this command and it seems not to working.
#!/bin/bash /usr/sbin/dseditgroup -o edit -d "$currentUser" -t user admin |
is anyone can help me with this?
Thank you
Hi,
I want to remove the current login user as admin and I tried this command and it seems not to working.
#!/bin/bash /usr/sbin/dseditgroup -o edit -d "$currentUser" -t user admin |
is anyone can help me with this?
Thank you
Best answer by MacJunior
#!/bin/sh
loggedInUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }')
dseditgroup -o edit -d $loggedInUser -t user admin
Give it a shot
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.