Setting the UID in Mac OS X

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Setting the UID in Mac OS X
# 1  
Old 06-07-2004
Question Setting the UID in Mac OS X

Hello,

Does anyone know the best way to create a user in Mac OS X with a specific UID?

One (ugly) possibility seems to be to create the user, and then use netinfomanager to fix the UID, and then to run chown on all the user's files, but is there a more elegant way?

Thanks,
Noah
# 2  
Old 06-07-2004
There was a set of scripts that worked much the way useradd works on linux...

They actually took the values you spec'd and entered them into netinfo for you.

go here:
http://www.osxgnu.org/
and look for the OSX user utils.

Once installed, and figured out, they should be what you are looking for... the author actually responded to an email of mine, in a timely manner, some 6 to 8 months ago.

One thing to look out for is that the useradd script doesn't actually create the user folders. just creates the account (if I recall correctly.)
That's all I know...
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Setting UID and GID for shared folder using NFS method in Linux system

Hi everyone, have a good day to you. I am trying to use NFS to share a folder between 2 linux systems. Let's say the server which is sharing the folder is server A and the client which need to access this shared folder is server B. In server B, i am having a Joe user which UID and GID is 500.... (1 Reply)
Discussion started by: michael_hoang
1 Replies
Login or Register to Ask a Question