root # vi /etc/sudoers
So, here's a simple /etc/sudoers file (remember, edit with "visudo") to give "admin" access to root commands.
______________________________________________
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# User privilege specification
root ALL=(ALL) ALL
admin ALL=(ALL) ALL # user name admin
# Edit user or add user and set same values by over line. but you have to change name user.
_______________________________________________________________
How to use it.Example.
root..#yum -y install httpd
sudo....# sudo yum -y install httpd promp....(password).....
How to switch to root!
sudo....# sudo su - promp....(password)....
***************************************
that's work same "root".
_/|\_ 23:36
ไม่มีความคิดเห็น:
แสดงความคิดเห็น