[HOW TO] add user to sudoes | sudoes files | grant user to sudo permission

Yesterday, a new member asked me that he must root permission to active do something on his computer.

A few second, I saw he is right. He is a technical engineer.

I add his user to /etc/sudoes files as below:

#User privilege specification
root ALL = (ALL) ALL
his_user ALL = (ALL) ALL 

with above, he still need to type the root's password to authenticate.

#User privilege specification
root ALL = (ALL) ALL
his_user ALL = (ALL) NOPASSWD:ALL

with above, he doesn't type the root's password.

With group, you also use as follows:
%group ALL = (ALL) NOPASSWD:ALL

Simply you must only follow this article. Now I' going to presentation of co-worker about Pandora. Beep :)


Thank you for reading this article, please a comment if you are interested.
Tiến Phan - R0039
Knowledge is Endless
Sharing for Success

0 nhận xét:

Post a Comment