Thursday, October 8, 2015
HOW TO GIVE SUDO ROOT ACCESS TO USER
make a backup of /etc/sudoers file
cp /etc/sudoers /tmp/sudoers.date
Then edit the /etc/sudoers file here we can edit in 2 ways
1:- vi /etc/sudoers
or
2:- visudo
visudo is the recomandded to edit the sudoers file
here you go
# visudo
add below enterie ( " suppose you need to give sudo access to ramesh" ) here what you need to add
ramesh ALL=(root) NOPASSWD: ALL
:wq!
to get root access login with your user id then do
#sudo su -
will get root access
Labels:
LINUX
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment