Ackles
asked on
Disable Mobile Account on Mac OSX from command line
Hi,
I have few mac's where Mobile Account is enabled, I need a command so I can send it via Terminal to disable the Mobile account.
We have AD in the background.
Regards,
A
I have few mac's where Mobile Account is enabled, I need a command so I can send it via Terminal to disable the Mobile account.
We have AD in the background.
Regards,
A
ASKER
In system preferences when u go to user, then AD, there is check box to enable Mobile accounts.
I just want that to be unchecked.
I just want that to be unchecked.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Mountain Lion
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for correcting my suggestion EdTechy. I forgot the ad portion at the end when typing from memory. :)
All the previous references by me to dsconfig, should be dsconfigad.
All the previous references by me to dsconfig, should be dsconfigad.
I had to look it up again when man dsconfig didn't return results. :)
ASKER
Serialband,
Thanks a lot, but EdTechy had it right.
Still you helped me.
Cheers,
A
Thanks a lot, but EdTechy had it right.
Still you helped me.
Cheers,
A
That's fine. At least you solved your problem, and that's what matters. I did make a mistake in my command. Next time I'll type that into a Mac and get it right. You'd think I would after typing it in so much before, but c'est la vie. Besides, I got enough points already to view the answers from all the other topics I'm interested in.
ASKER
Thanks again for your help!
sudo dsconfig -leave
Did you mean that you wish to delete the account from the local list of logins? You can use dscl to do that.
sudo dscl . delete /users/USERNAME
You'll probably also want to delete the home folder that's been created there.
rm -r /Users/USERNAME