0 like 0 dislike
89 views
in Education & Reference by (50 points) | 89 views

1 Answer

0 like 0 dislike
Lets say we need to add a new user and grand him root privileges.

Use the following commands to create the new user sam, grand him the same privileges as root and set him a password :

useradd -ou 0 -g 0 sam

passwd sam

We've just created the user sam, with UID 0 and GID 0, so he is in the same group and has the same permissions as root.

To check the entry
cat /etc/passwd

by (1.4k points)

Related questions

0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,225 questions
1,370 answers
559 comments
2,099 users