Find the answer to your Linux question:
Results 1 to 5 of 5
how to create mltiple users in linux...
  1. #1
    HAS
    HAS is offline
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    create mltiple users

    how to create mltiple users in linux

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Please explain. Do you mean multiple users at one time, as in adding a number of users in bulk?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    25

    Thumbs up Adding multiple user in a single command

    you can use simple shell scripting to add multiple user, suppose you hav 3 user "user1,user2,user3" you can use for loop---
    for u in user1 user2 user3; do useradd $u; done

  4. #4
    Just Joined! micah1104's Avatar
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    64
    And are you using KDE, GNOME, CLI or anyothers?

  5. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    6
    Quote Originally Posted by crazpiyush View Post
    you can use simple shell scripting to add multiple user, suppose you hav 3 user "user1,user2,user3" you can use for loop---
    for u in user1 user2 user3; do useradd $u; done
    Ans: you can also add multiple user at a time by "newusers "command
    write all user names in one file, the file must be in /etc/passwd file format
    Example: vim userfile
    username:uid:gid::/home/username:/bin/bash
    (in same format u can write all username)
    # newusers <filename>
    # newusers userfile

Posting Permissions

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