Using the GUI
As an admin, startup NetInfo Manager (Applications/Utilities/),
select users, obs72, manually change uid and gid. Repeat change for
groups.
cd /Users
sudo chown -R obs72 obs72
sudo chgrp -R obs72 obs72
logout and back in. all is good.
Don't know how to do this on the command line, without using NetInfo
Manager. We might want to get Apple Remote Desktop 3 so these types
of things can be done more easily without a drive out here.
-- Main.BrianWTaylor - 22 Apr 2006
Using the Command Line
Getting a Listing of the Group and User IDs
First to get a listing of the current Group and User ids, you use the nireport command to read the
database.
saturn:~ taylor$ nireport . /groups gid name
Which provides a listing of the group ids and name associated with the gid.
saturn:~ taylor$ nireport . /users uid name
same as the gids but with the user id and associated name.
Changing the UID and GID
Get the current IDs with the command id
taylor% id uid=504(taylor) gid=504(taylor) groups=504(taylor), 81(appserveradm), 79(appserverusr), 80(admin)
Now Change the group and user id with the following commands:
[saturn:~] taylor% /usr/bin/sudo dscl . -create /users/taylor uid 4049 [saturn:~] taylor% /usr/bin/sudo dscl . -create /users/taylor gid 4490
Log out an log back in again and recheck your IDs.
Last login: Thu May 11 09:22:07 2006 from prusiks.lowell. Welcome to Darwin! [saturn:~] taylor% id uid=4049(taylor) gid=4490 groups=4490, 81(appserveradm), 79(appserverusr), 80(admin)
After the ids are changed you still need to run a chwon on the users directory with
[saturn:/Users] taylor% sudo chown -R taylor:taylor /Users/taylor
-- Main.BrianWTaylor - 11 May 2006