Article 5MVD0 /etc/passwd vs /etc/sudoers **add user to super user**

/etc/passwd vs /etc/sudoers **add user to super user**

by
andrewysk
from LinuxQuestions.org on (#5MVD0)
Please tell me what is the different resultant between these 2 :

Code:# usermod -aG sudo <user_name>This one is add username to sudo group , which is in "/etc/passwd"

Code:#echo 'myfancyusername ALL=(ALL) ALL' >> /etc/sudoersThis one is add the line above to "/etc/sudoers"..

What's the resultant difference ?
When to use which ?

Thankslatest?d=yIl2AUoC8zA latest?i=THA6W15LJdo:iI6_s-Vmwkc:F7zBnMy latest?i=THA6W15LJdo:iI6_s-Vmwkc:V_sGLiP latest?d=qj6IDK7rITs latest?i=THA6W15LJdo:iI6_s-Vmwkc:gIN9vFwTHA6W15LJdo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments