Results 1 to 3 of 3

Thread: Automate add user

  1. #1
    Join Date
    Mar 2010
    Beans
    5

    Automate add user

    Hello all,

    I have a list of dozens of new users that I'd like to create on my Ubuntu Server running 10.04. I'm still a novice and was hoping someone could point me in the right direction for automating the process. I

    I was thinking along the lines of saving a list of users/usernames then doing the following:

    Code:
    cat list | while read name
    do
    adduser $name.....
    Or could I use expect?

    Thanks
    Cludgie

  2. #2
    Join Date
    Nov 2007
    Location
    Wisconsin
    Beans
    1,139

    Re: Automate add user

    Running adduser non-interactively: See a (somewhat terse) solution at http://askubuntu.com/questions/94060...-interactively

  3. #3
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Automate add user

    You can use the newusers command. Check out its man page for details.

    If you have any further questions, please feel free to ask.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •