Permissions on MacOS - change UID and file owenships

Robert Leong -

External resource:

http://www.inteller.net/notes/change-user-id-on-snow-leopard

Excerpts and more:

List all UIDs:

dscl . -list /Users UniqueID

 

Read the uid (given Alice as the user's name, 501 as old and 1234 as the new uid):

# dscl . -read /Users/Alice UniqueID
UniqueID: 501

 

Change uid:

# dscl . -change /Users/Alice UniqueID 501 1234

 

Change files ownership:

# find /Users/Alice -user 501 -print0 | xargs -0 chown -h 1234
Have more questions? Submit a request

0 Comments

Article is closed for comments.