Hello,
You can use the following also
Code:
sudo dscl. create / groups / gid temp 1000
sudo because I must have administrative rights. Here, I created the group norris with the gid 1000(if I did not state the gid, it does not group). To be sure that the gid 1000is not, check in the file "/ etc / groups". Be sure the new gid does not exist in this file.
Code:
sudo dscl. merge / groups / users temp user
Here, I give an additional group temp . It is now part of the group user. This can be verified with the command id.
Code:
my-user: ~ $ id uid = temp 510 (temp) gid = 123 (chuck) groups = 123 (chuck), 1000 (user)
This is a brand new MacBook Pro running Mac OS X 10.5.8, and I have nothing installed to run these commands.
Bookmarks