- This topic has 5 replies, 2 voices, and was last updated 13 years, 4 months ago by
scifiman.
-
AuthorPosts
-
December 6, 2011 at 5:17 pm #381466
scifiman
ParticipantAll, I’ve used the createUser.pkg included with InstaDMG before with great success.
However now I need to create a user with no password. I looked through the script as well as the hash function and see there are several checks to avoid a blank password.
I even tried commenting those out to see if it would work but no such luck.
Could someone give me a pointer to creating a user without a password? Either by modifying the package or by another means.Thanks!
December 6, 2011 at 5:25 pm #381467Allister Banks
ParticipantHey there,
The folks at osxdeployment(myself included) have collaborated on common commands they run at firstboot. In one stanza a custom ‘guest’ user is created, which wouldn’t have a password. That might get you going in the right direction.
[url]http://osxdeployment.com/wiki/Firstboot_Script_Commands[/url]
Allister
December 6, 2011 at 5:51 pm #381468scifiman
ParticipantCool. If I didn’t want it to have guest properties than I would just set that to be false, correct?
Are there any other properties that are guest specific that I would want to omit.
I’m working this into the createUser package now to try it out.This script uses:
[code]dscl . -create $userPath $attribute $data[/code]
but the current createUser uses
[code]dscl -f /var/db/dslocal/nodes/Default localonly -create $userPath $attribute $data[/code]I’ve used dscl some but am by no means a master. Could you tell me the difference in the way it is addressing the local nodes and why it matters?
December 6, 2011 at 6:12 pm #381469Allister Banks
Participant-f is for when you’re modifying an unbooted volume, the dot(“.”) notation is meant to be running on a live system.
feel free to join us in IRC (##osx-server) if you want more interactive assistance!
Allister
December 6, 2011 at 9:21 pm #381471scifiman
ParticipantWould love to join you on IRC but Colloquy doesn’t seem to be working. Alternative clients?
Also, ran the user creation part of the script on a Lion machine. It created an account and I can login, however it can’t find the home directory.
I DID copy (ditto actually) /System/Library/User Template/English.lproj to /Users/myUser and changed the ownership (chown -R), but no luck.
Also, in System Preferences -> Accounts, I can right click on the created user and choose “Advanced Options”, but nothing happens. On a different, known good user, I do get the options.
So I’m not sure the user was created correctly.December 6, 2011 at 9:26 pm #381472scifiman
ParticipantSeems to be our network blocking IRC 🙁
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed