Re: creating users programatically
Re: creating users programatically
- Subject: Re: creating users programatically
- From: David Remahl <email@hidden>
- Date: Mon, 3 Sep 2001 18:39:59 +0200
On Monday, September 3, 2001, at 11:28 AM, Andreas Monitzer wrote:
On Monday, September 3, 2001, at 10:59 , email@hidden wrote:
has anybody an idea how to create an user with your own application?
i've tried standard-unix commands (like adduser, useradd, etc.). but
none of them is there.
i know the information about users is stored in netinfo. but how can i
create a new user without using system preferences? is there some kind
of framwork for it? or do i have to create all necessary entries
(which implies the next question: what are the necessary entries)?
an help is much appreciated!
http://www.darwinfo.org/faq.shtml#newusr
and you have to copy the new user template into the user's new home
directory you have to create (I don't know the templates are located on
10.
0.4, I remember it was pretty easy to find on 10.1).
Note that you can use DirectoryServices directly, without having to
interface with niutil...
/ david