Re: add users remotely
Re: add users remotely
- Subject: Re: add users remotely
- From: Rick Davis <email@hidden>
- Date: Fri, 26 Jan 2007 08:52:35 -0500
On Jan 25, 2007, at 11:30 PM, Rishi wrote:
Rishi,
Take a look at the first step in these instructions http://
applehelp.org/authenticatedprinting.html and I think you can
accomplish what you want with ARD and UNIX commands.
Let me know if you need it broken down into specifics for your
situation.
Rick Davis
Hi Rick
Thanks for responding. I looked at the site and it has information
about printing. I looked at niutil to see if it can be of any help,
but I'm not sure how.
What I need is really a command line option to create a user
'student' and set the password as 'student' so that it can be
executed in ARD as a UNIX command on 12 iMac's.
Basically make the system admin's job easier.
On a regular linux system we used to use commands called adduser or
useradd and pass certain parameters to get the job done. How does
one do that on a Mac?
Note: I need a command that can do everything that's needed,
without being prompted to enter stuff like password etc.
Rishi
Hi Rishi,
Generally speaking when we have more than a handful of Mac's
networked we use network based home directories, so all account
information resides in a server based directory (LDAP) and new users
are created using Workgroup Manager. Local user accounts on Macs
still reside in the local NetInfo Database. niutil is the command
line for NetInfo Manager. See man niutil in the terminal application
for a list of available commands.
From the above mentioned page:
This command would create the new user named "student"
niutil -create / /users/student
These commands would create the appropriate properties for the user
student:
niutil -createprop / /users/student uid 700
niutil -createprop / /users/student realname "Print Admin"
niutil -createprop / /users/student home "/Users/student"
niutil -createprop / /users/student shell "/dev/null"
niutil -createprop / /users/student gid 700
niutil -createprop / /users/student passwd "*"
I'm not sure if replacing the "*" above with the password would work.
I have always created it as above then used:
dscl . -passwd /Users/student "password"
To create the password.
To get a better idea of what fields or properties you actually need.
Use the Account pane in System Preferences to create a new user then
observe this user in NetInfo Manager to see what properties were
actually created. You can also create new users in NetInfo Manager
and all of this can then be wrapped into a script or automation.
Hope this helps.
Rick Davis
thePRIMAXgroup
Cincinnati, OH
(513)910-9490
http://www.applehelp.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden