• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: creating users programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: creating users programatically
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: creating users programatically (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: Another controversial question
  • Next by Date: Re: Implementing behavior for "make" appleevent in Cocoa App
  • Previous by thread: Re: creating users programatically
  • Next by thread: Re: creating users programatically
  • Index(es):
    • Date
    • Thread