Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Configuration > Issue <<  310 of 606 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4400
Last update: 12-08-04
Issue:
How do I create multiple users?
Resolution:

To create users, one can use useradd command or the GUI tool, redhat-config-users. However, its a bit tedious to use if you have many users to create. You have the option of importing a file with the newusers utility.

The format of the file is the same as the contents of the /etc/passwd file. An example is shown below:

 
visitor:password:501:501::/home/visitor:/bin/bash
redhat:password:520:520:Red Hat Dummy User:/home/redhat:/bin/nologin
nisuser1:password:522:522:Nis User:/nishome/nisuser1:/bin/bash
training:password:523:523:Training Account:/home/training:/bin/bash
      

The file contains cleartext passwords that will be encrypted to MD5 once imported. It can be imported with the newusers command, with the syntax shown below:

 
newusers <filename>
      


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Configuration > Issue <<   310  of  606  >>