maggie brown (mbrown) and corey flynn (cflynn) have recently been hired in the human resources department. you have already created their user accounts. in this lab, your task is to: add the hr group as a secondary group for the mbrown and cflynn user accounts. when you're finished, view the /etc/group file or use the groups command to verify the changes.



Answer :

usermod -G hr mbrown , usermod -G hr cflynn groups username.

What is usermod?

  1. One of the many Linux commands available to system administrators for managing users is the usermod command.
  2. It is used to change the username, password, location of the user's home directory, default shell, and other details of an existing user account.
  3. In Linux, the usermod command, also known as modify user, is used to update a user's properties via the command line.
  4. We use the Usermod command to modify a user's properties after they have been created, such as their password or login directory.
  5. Usermod and useradd are different in that the latter is used to alter existing users while the former is used to add new users.
  6. While useradd has the ability to set a Linux user's preferences, it only does so for newly created users.
  7. For more information on the useradd command, see our Linux Users and Groups page.

Hence, usermod -G hr mbrown , usermod -G hr cflynn groups username.

To learn more about usermod refer to:

https://brainly.com/question/29664666

#SPJ4

Other Questions