Practice exercise – 2
Important Note
By design, in the following exercise, commands, packages, and so on will not be highlighted. Remember what you've learned so far to detect the keywords to see what needs to be done.
Don't jump into the solution too early; try to think and remember what was covered.
Exercises
- Download the necessary file from this book's GitHub repository at https://raw.githubusercontent.com/PacktPublishing/Red-Hat-Enterprise-Linux-8-Administration/main/chapter-19-exercise2/users.txt.
- Use the
users.txt
file to generate users in the system in an automated way using the values provided, in the following order:username
,placeholder
,uid
,gid
,name
,home
,shell
. - Create a group named users and add that group as the primary group to all users, leaving their own groups, named after each user, as secondary groups.
- Change the home folders for the users so that they are group-owned.
- Set up an HTTP server and enable a web...