Local User ROOT privileges (sudo) Linux 7

open the file and command below :- 

#visudo

If you want to give the some permission to user with out password in  restart, start and stop
the services in linux 7 version put the below in last visudo file
bhandari    ALL = NOPASSWD: /bin/systemctl, /etc/init.d/network

If you want to root privileges to local user with out password below the command 
bhandari        ALL=(ALL)       NOPASSWD: ALL
If you want to root privileges with sudo and password 
bhandari        ALL=(ALL)        ALL
Local User ROOT privileges (sudo) Linux 7 Local User ROOT privileges (sudo) Linux 7 Reviewed by cloudwalebhaiya on October 30, 2017 Rating: 5

Scribe

http://feeds.feedburner.com/LinuxAndAws
Powered by Blogger.
X

Get Updates On

Linux Tutorial

AWS Tutorial

Devops Tutorial

We are going to send you our resources for free. To collect your copy at first, join our mailing list. So don't miss any updates, stay connected!