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.
|
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.
| ||||
|
feedback
|
|
| |||
|
feedback
|
|
Adding a user:
Removing a user: (from the group not the system)
Reading the membership of the admin group:
| ||||
|
feedback
|
|
You're correct, these commands are not included in OSX. Although there is a port of adduser for Mac, so you can add a user and change their groups from the command line. Command info here. | |||||
feedback
|
|
To add an example, this is how you can modify someones homedirectory:
You can see also properties for an object using the read command:
| |||
|
feedback
|