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

1 Answer

0 like 0 dislike
by (1.4k points)
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

Related questions

0 like 0 dislike
1 answer 81 views
1 like 0 dislike
1 answer 68 views
0 like 0 dislike
1 answer 92 views
1 like 0 dislike
1 answer 609 views
0 like 0 dislike
1 answer 77 views
0 like 0 dislike
1 answer 212 views
0 like 0 dislike
1 answer 154 views
1 like 0 dislike
1 answer 65 views
0 like 0 dislike
1 answer 625 views

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

...