image
image
Ticket Options
Question Profile
DATEFeb 27, 2008
TICKET#336380
STATUSClosed
SUBJECTChange User ID and Group ID in Leopard
CATComputers, Operating Systems, Applications or Connected Devices
TYPEOperating System Features, Bugs and Problems
DESCApple
DESC10.5.X (Leopard)
PLATFORMApple Macintosh (Intel)
MODELiMac and a macbook
PROC
RAM
DRIVE
NAMErod
USERNAMEhrmiller
TECHNICALLittle Experience
ISSUESome Troubleshooting
Question Details
TICKET ARCHIVE -> Change User ID and Group ID in Leopard
hrmiller - Feb 27, 2008 - 5:23 pm
image
image
3 home-business machines:
- Sun Ultra5 running Solaris 9, long history (lots of archived customer info, C-source tools) on this machine. primary account is rod, uid 3308, gid 10.
- iMac running Tiger. primary account is rod, uid 3308, gid 10.
- Macbook running Leopard. primary user is rod, uid & gid not 3308 and 10.

After some study of dscl I thought I changed the uid for user rod in the Macbook to 3308. Apparently not.

In the Macbook /Users/rod there is a subdirectory rod (/Users/rod/rod). That subdirectory is the mount point for rod's directory
hierarchy on the sun. Works fine on the iMac where I was able to use
netinfo to change rod's uid and gid to match his originals on the sun.

On the macbook, when I mount the sun's directory hierarchy at /Users/rod/rod, I cannot cd into subdir rod nor can I view the contents of subdir rod. I notice that the owner of rod before the mount is daemon, and the owner after the mount is 3308. So it looks like I changed the UID of the subdir rod rather than of the user rod.

The goal is that on the macbook/leopard, user rod's gid and uid are 3308 and 10, and that I can mount and read/write in the sun directory hierarchy that is mounted at /Users/rod.

Help, please.

Rod
macbri - Feb 27, 2008 - 6:22 pm
image
image
Hi Rod -

Based on the docs for Leopard to change a userID with dscl (and I assume your UID:GID is now 501:501) you would do:

Code:
dscl . -change /Users/rod UniqueID 501 3308
dscl . -change /Users/rod PrimaryGroupID 501 10
chown -R 3308:10 /Users/rod
Is this what you did? Also it appears as though you might have to reboot once this is done...

IF THIS IS YOUR QUESTION AND YOU WISH TO RESPOND, LOGIN HERE FIRST.


Search Engine Optimization by vBSEO 3.3.2