58.7k views
4 votes
When adding several user accounts, you might want to use the newusers utility, which can process a text file full of entries to add user accounts. Use the man or info page to find out how to use this utility, and use it to add three users. When finished, view the /etc/passwd, /etc/shadow, and /etc/group files to verify that the users were added successfully.

User Sudha
by
6.9k points

1 Answer

6 votes

Step-by-step explanation:

Given - When adding several user accounts, you might want to use the new users utility, which can process a text file full of entries to add user accounts.

To find - Use the man or info page to find out how to use this utility, and use it to add three users.

Proof -

New Users Utility:

It is an utility which reads the file full of usernames and clear text passwords.

It then uses this information to update a group of the existing users to create new users.The format of the file consists of specified things like:

pw - passwd

pw - age

pw - gid

pw - dir

Use of the Utility:

The command is new users filename

The file should look like -

(Username : Password : UID : GID : User Information : Home Directory : Default Shell)

where ,

UID = User Identifier

GID = Group Identifier

Testing the Users:

Creating users from the file given above test User 1, directory Of File

Executing the create user new users directory Of File

Repeat this step to undergo all the users that are been noted down in the file to make them a user in the noted group policy.

Hence,

These are the steps of using the new Users utility.

User Aemon
by
7.1k points