Posted on 08-31-2009 04:37 AM
Hi-
I need a way to script the removal of a local account's admin rights. The way that came to mind is to use
dscl . -delete /Groups/admin GroupMembership <<username>>
Thanks
j
---
Jared F. Nichols
Desktop Engineer, Infrastructure & Operations
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436
Posted on 08-31-2009 04:57 AM
After some poking around, I found that it looks like this is the right way to do it. Here's the reason I asked...
We're going to be using Random Password Manager (RPM) to spin the root account passwords. I also want to remove all visible administrative users from the machine. So thus, the deployment of a machine with no admin privs looks like this:
I'm probably going to make a script for our deploy techs to handle the dscl command. Seeing how they'll be logged in as root (briefly) I don't want them messing anything up, especially with dscl. If anyone's interested, I'll post it to the list.
j
---
Jared F. Nichols
Desktop Engineer, Infrastructure & Operations
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436