|
#1
| ||||
| ||||
| How do I manage user & groups? Ok so I need to create a new group and add an existing user (myself) to this group. This is how I usually do it on a nix box: groupadd -g 8080 mygroup usermod -G mygroup myuser But I can't find these commands on OS X... I tried looking at System Preference but can't find anything like this, how do I manage users & groups on OS X?
__________________ [SIGPIC][/SIGPIC] Catel - Core 2 Duo 2.0Ghz, 1GB Ram, OSX Tiger.8 AMDemon - Dual Opteron 2.6Ghz, 2GB Ram, FreeBSD 6.1 |
|
#2
| ||||
| ||||
| NetInfo Manager?
__________________ MacBook Air 13" 1.6 GHz, 2 GB RAM, 80 GB HD. Mac OS X 10.5.5 MacBook 13" 1.83 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.5 Hackintosh Core2Duo 2.4 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.5 iPhone 3G 16 GB (v2.1), AppleTV 1G 40 GB (v2.1) Mac user since 1987, Apple Product Professional 2007, 2008. |
|
#3
| ||||
| ||||
| Hey thanks, NetInfo is... different!!
__________________ [SIGPIC][/SIGPIC] Catel - Core 2 Duo 2.0Ghz, 1GB Ram, OSX Tiger.8 AMDemon - Dual Opteron 2.6Ghz, 2GB Ram, FreeBSD 6.1 |
|
#4
| ||||
| ||||
| I guess it's to freak out beginners. ![]()
__________________ MacBook Air 13" 1.6 GHz, 2 GB RAM, 80 GB HD. Mac OS X 10.5.5 MacBook 13" 1.83 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.5 Hackintosh Core2Duo 2.4 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.5 iPhone 3G 16 GB (v2.1), AppleTV 1G 40 GB (v2.1) Mac user since 1987, Apple Product Professional 2007, 2008. |
|
#5
| ||||
| ||||
| Well I don't know, it feels like regedit on M$, but got that nix touch in it....
__________________ [SIGPIC][/SIGPIC] Catel - Core 2 Duo 2.0Ghz, 1GB Ram, OSX Tiger.8 AMDemon - Dual Opteron 2.6Ghz, 2GB Ram, FreeBSD 6.1 |
|
#6
| |||
| |||
| remember that the directory services store all user and group information. The traditional /etc/group etc are only used in single user mode. so, you can use the dscl command to create and update groups from the command line (into the directory). such as: dscl . create /groups/sunnz gid 1000 dscl . create /groups/sunnz passwd '*' dscl . merge /groups/sunnz users user1 user2 above creates a group 'sunnz' with gid 1000 and adds user1 and user2 to it. you can check your work in the netinfo manager with: nidump group . | grep sunnz Netinfo might be more straightforward! ![]() |
|
#7
| ||||
| ||||
| Yea Netinfo seems to be a bit easier... I mean, what's dscl? Kind of counter-intuitive compared to groupadd and stuff.
__________________ [SIGPIC][/SIGPIC] Catel - Core 2 Duo 2.0Ghz, 1GB Ram, OSX Tiger.8 AMDemon - Dual Opteron 2.6Ghz, 2GB Ram, FreeBSD 6.1 |
|
#8
| |||
| |||
| object oriented mumbo jumbo! dscl is a generic interface for managing the data in the repository. I've used AIX, with it's odm, so I'm kinda used to it. but I use netinfo for this stuff...onry if I was automating a bunch of stuff would I use dscl. onesy twosey is too easy though gui. |