asked 210k views
2 votes
A new user has been hired to replace the retired user mikef. You have been tasked with giving the new user access to resources on a file sharing server with multiple file directories owned by mikef. What is the simplest way to ensure this new user's account has access to these files?

1 Answer

5 votes

Answer:

You need to use useradd command. useradd -u <UID> <newuser>

Step-by-step explanation:

Useradd is built-in Linux command that can be found on any Linux system. However, creating new users with this low-level is a tedious task.

To add a new user to the system, all that is necessary is to follow the useradd command by that user's user name. This name is the login name, that is, the name that the user uses when logging into the system.

answered
User Azriebakri
by
8.3k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.