Home Forums OS X Server and Client Discussion Questions and Answers Adding users from command line

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #356018
    curtisf
    Participant

    I’m in the process of changing over from ASIP to OS X for my mail server. I’ve been able to get Exim and UW IMAP up and running properly using the tutorials at this website.

    I’m having trouble adding users. I’ve narrowed it down to the format we were using for our addresses: [first initial].[lastname]@domain.com apparently the period in not allowed in the primary shortname.

    I’ve been successful in getting mail to work if I change the primary shortname to something like [first initial][lastname]and add a second shortname of [first initial].[lastname] using Workgroup Manager and making entries in the /etc/aliases file. This works be fine, but maintaining this will be a nightmare – I need to periodocially update/add/delete users (currently at 2100+).

    I’ve been able to use the scripts found at: http://pages.unisonfree.net/mswift/osx/index.html to add the users as needed for the updates.

    What I can’t seem to find is a niutil command to add an additional shortname. does anyone know what this command is?

    I don’t know anything about SQL so I’ve been reluctant to try any of the MySQL based solutions.

    BTW I was able to get ‘createhomedir -a’ to work: select the users in Workgroup manager (select all works for this) and turn on the homedir button. then go to terminal and enter the command

    #356067
    Anonymous
    Participant

    [quote:d9fbbb2186=”curtisf”]What I can’t seem to find is a niutil command to add an additional shortname. does anyone know what this command is?[/quote:d9fbbb2186]
    AFAIK there are two fields two enter a name: first is called “name”, second is “realname”.
    to change the realname-entry of a user “osxuser” on localhost, you could use
    niutil -createprop . /users/osxuser realname newosxusername

    hope this helps.

    #356070
    curtisf
    Participant

    thanks. At the rate I’m being allowed to develop this server, Panther will be here. So it goes. Its been a great learning experience.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed