If your organization hires a new employee, what would you do to create a user account in the Linux system and add the account to a group? What commands would you use? What configuration files would you check and modify?

Respuesta :

Following are the responses to this question:

  • The user account is "olivia".
  • In the Linux system to see the account go to the "/home directory".
  • For the configuration file we use ".bash_logout , .bash_profile, and .bashrc" files.

Creating users:

We will use the useradd command to achieve this. Using that same command, you can create users who would log in or customers who would log in (in the case of creating a user for a software installation).

In its basic form, the command is as follows:

  • [Options] useradd username

Take this user olivia, for instance. Assuming that you had been to issue the command prompt:

  • olivia has become a user.

Users are added to the system without the need for a home directory and are unable to log on. It if we were using this rather than running the command without arguments?

  • sudo using useradd -m olivia

Using the command above, a new user would be created, including a home directory that corresponded to the username. That means that you might now see the name "olivia" in the directory "/home".

But what about the lockout concern that was raised earlier? Both these methods are possible. After creating the user, you can enter the following command:

  • Password for olivia is: sudo passwd olivia

You'll be requested to enter & verify your new password once you've completed the process. This unlocks the user profile, allowing them to log in.

This command might look like if you wanted to accomplish it in one go:

  • sudo useradd -m olivia -p PASSWORD

You should be using Passcodes as the login for the user olivia.

As soon as the user logs in, he or she can update their account password by using the password command to input their current password, and afterward entering/verifying their new one.

To create a user that has no personal account and cannot log in, execute the following instructions:

  • sudo use useradd as  the-M USERNAME 
  • ​sudo use usermod as the -L USERNAME

The user to be added is identified by USERNAME.

It establishes a user with really no root folder and prevents them from signing in with a second operation.

To add an existing user to a group on Linux, follow the instructions:

  • As root, log in to your account
  • Use the useradd instruction to add a new user (for example, useradd roman)
  • If you'd like to log on as a new customer, type su plus that user's name.
  • Entering the word "exit" will logout you from your account.

Another way to add a user to a group under Linux would be to use the following syntax:

  • Alternatively, you can use the usermod command.
  • The name of the club should be substituted for example group in this sentence.
  • Example username should be replaced with the name of the user you'd like added.

The following operations are performed when a new login is added to the system.

  • The user's home directory (/home/username by default) is now created.
  • To set configuration files for the user's session, the following secret files are copied into another user's home directory.

.bash_logout

.bash_profile

.bashrc

  • /var/spool/mail/username includes the user's mail spool.
  • The new user account is arranged in groups with the same name.

Learn more:

Linux system: brainly.com/question/13843535