I cannot seem to figure out the createuser script/package. It creates a user, but it creates it on the machine that I am using to create the image, not in the image! Here is my script, which I use packagemaker to wrap into a pkg:
[code]
#!/bin/bash
dscl . -create Users/infores
dscl . -create Users/infores home /Users/infores
dscl . -create Users/infores name infores
dscl . -create Users/infores realname “Information Resources”
dscl . -create Users/infores shell /bin/bash
dscl . -create Users/infores uid 501
dscl . -create Users/infores gid 501
dscl . -passwd Users/infores “password”
dseditgroup -o edit -a infores -t user -n /Local/Default admin
ditto -rsrcFork “/System/Library/User Template/English.lproj/” “/Users/infores”
chown -R infores:admin /Users/infores
exit 0
[/code]
Please help!
Comments are closed