Macos livejournal7/31/2023 To make that user useful, you might want to add them to the admin group.ĭscl / -append /Groups/admin GroupMembership portingunixĪnd now back to figuring how to get a bootable installation of Damn Small Linux on my usb memory stick. (Despite the name NFSHomeDirectory, this is the local path to the home directory.)ĭscl / -create /Users/portingunix NFSHomeDirectory /Local/Users/portingunixĭscl / -passwd /Users/portingunix PASSWORD That is basically adduser for mac.Ĭreate a new entry in the local (/) domain under the category /users.Ĭreate and set the shell property to bash.ĭscl / -create /Users/portingunix UserShell /bin/bashĭscl / -create /Users/portingunix RealName "Porting Unix Applications To Mac OS X"ĭscl / -create /Users/portingunix UniqueID 503Ĭreate and set the user’s group ID property.ĭscl / -create /Users/portingunix PrimaryGroupID 1000Ĭreate and set the user home directory. Ta-daa! dscl -directory service command line. Man adduser not found, apropos adduser - nothing appropriate. So - it took me a long time to find out an equivalent for adduser in Mac OS X. (you already have 0) as I'm used to that scheme. To keep UIDs in order, I usually start with 501 and then increase them 1 by 1. Useradd -d /export/home/shortname -m -u 501-s /bin/zsh -c "Full Username" shortnameĪfter that passwd shortname and the new user will get the password. Punk_appleI'm a fan of creating users using command line, after I figured out it is so much easier to use adduser in Solaris than to figure how to do it with gui.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |