Friday 5 August 2016

How to give root rights users in Linux

How to give root rights users in Linux


First of all Create New user any name
you can vi /etc/sudoer  
or visudo, then append something like:
example1: user_xyz ALL=(ALL) ALL
#replace user_xyz accordingly.
log-in as user_xyz, and use sudo + whatever root command

user_xyz means username. Then you will login Linux with username. When will we use any root command with user please use sudo command before all roots command.

No comments: