Networking / Beginners

The newusers command

The newusers command provides an easy way to create a group of new user accounts. It reads a text file that contains one line for each new user, listing the user's name and password.

Here's the syntax of the newusers command:

newusers [filename]

If you omit the filename, newusers accepts input from the console. Suppose that you have a file named /root/island.users that contains these lines:

marlin ml9jiedr
skipper 1hiecr8u
professor dr0uxiaf
maryann choe7rlu
ginger jiuqled5
mrhowell j1emoaf1
lovie zo2priak

You can then create these seven stranded user accounts by issuing this command:

$ newusers /root/island.users

WarningBecause the newusers file contains unencrypted passwords, you shouldn't leave it lying around. Require these new users to change their passwords immediately and delete the file you used to create the users.

[Previous] [Contents] [Next]