Saturday 3 March 2018

osx snow leopard - Is there a usermod equivalent in terminal for OS X 10.6.1


Can anyone tell me how to modify a user and add them to a group in terminal on SL (10.6.1)?


It seems that usermod is not used by Mac.



Answer



dscl is the usual way to modify any stuff from Directory Services (whether local or remote) from the command line. See the dscl manpage for all the info (or the local one if you are not running 10.6). Google turns up many examples of how to use it (including many from macosxhints.com).


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...