We use AD in our enviornment, but we have many local users with admin rights. Now that our use of Casper has become more robust. We want to take the local admin users and turn them into standard users. Any suggestions as to the best way to do this?
Changing local admin accounts to standard admin accounts
Best answer by mm2270
Sorry for not explaining that. It has to be either run as root, or you need to provide an admin account name and password in the command. Type 'man dseditgroup' in Terminal to see some of the parameters. Specifically these:
-u username authenticate with admin username
-P password authentication password
I would suggest not putting a plain admin user account name/password into any scripts and instead use sudo while testing. So in your case, try:
sudo /usr/sbin/dseditgroup -o edit -d Test admin
and enter your admin account on the Mac when prompted.
Since you'll likely be running this via Casper, the root access will be taken care of by the service account the Mac is managed with when its executed, i.e, no need to use sudo or enter an admin name/password in your script.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
