0 like 0 dislike
50 views
asked Jun 17, 2014 in Education & Reference by Bhoomika (50 points) | 50 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

answered Jun 17, 2014 by Sam (1,480 points)

Related questions

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
1 like 0 dislike
1 answer
asked Aug 6, 2013 in Education & Reference by Russel | 470 views
1 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

Mathe Forum Schule und Studenten
1,149 questions
1,279 answers
262 comments
1,504 users