how to give user to root level permission in linux?
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
example 2: user_xyz ALL=/sbin/fdisk /dev/sda
#the 2nd example give user_xyz only fdisk privilege to /dev/sda
as user_xyz:
sudo fdisk /dev/sda
example3: %groupxyz ALL=(ALL) ALL
#this means all users in groupxyz have sudo privilege
Bookmarks