[{"data":1,"prerenderedAt":172},["ShallowReactive",2],{"post:add-user-to-sudo-group":3},{"id":4,"title":5,"body":6,"date":161,"description":12,"draft":162,"extension":163,"meta":164,"navigation":165,"path":166,"seo":167,"stem":168,"tags":169,"__hash__":171},"posts\u002Fposts\u002Fadd-user-to-sudo-group.md","TIL: Adding My Developer User to the Sudo Group",{"type":7,"value":8,"toc":159},"minimark",[9,13,80,87,100,114,132,138,155],[10,11,12],"p",{},"Yo, ever seen this?",[14,15,20],"pre",{"className":16,"code":17,"language":18,"meta":19,"style":19},"language-bash shiki shiki-themes github-light github-dark","[sudo] password for developer: \ndeveloper is not in the sudoers file.  This incident will be reported.\n","bash","",[21,22,23,39],"code",{"__ignoreMap":19},[24,25,28,32,36],"span",{"class":26,"line":27},"line",1,[24,29,31],{"class":30},"sVt8B","[sudo] password ",[24,33,35],{"class":34},"szBVR","for",[24,37,38],{"class":30}," developer: \n",[24,40,42,46,50,53,56,59,62,65,68,71,74,77],{"class":26,"line":41},2,[24,43,45],{"class":44},"sScJk","developer",[24,47,49],{"class":48},"sZZnC"," is",[24,51,52],{"class":48}," not",[24,54,55],{"class":48}," in",[24,57,58],{"class":48}," the",[24,60,61],{"class":48}," sudoers",[24,63,64],{"class":48}," file.",[24,66,67],{"class":48},"  This",[24,69,70],{"class":48}," incident",[24,72,73],{"class":48}," will",[24,75,76],{"class":48}," be",[24,78,79],{"class":48}," reported.\n",[10,81,82,83,86],{},"The obvious reason is that your user account is not allowed to run ",[21,84,85],{},"sudo",".",[10,88,89,90,93,94,96,97,99],{},"First, you'll need to log in as ",[21,91,92],{},"root",". You can't upgrade your account to run ",[21,95,85],{}," if you can't run ",[21,98,85],{}," in the first place! ;)",[10,101,102,103,106,107,110,111,113],{},"You can use ",[21,104,105],{},"visudo"," or a few other less-recommended methods, (hand-editing ",[21,108,109],{},"\u002Fetc\u002Fsudoers",", anyone?) but the best option I found was to add my account to the ",[21,112,85],{}," group.",[14,115,117],{"className":16,"code":116,"language":18,"meta":19,"style":19},"sudo adduser developer sudo\n",[21,118,119],{"__ignoreMap":19},[24,120,121,123,126,129],{"class":26,"line":27},[24,122,85],{"class":44},[24,124,125],{"class":48}," adduser",[24,127,128],{"class":48}," developer",[24,130,131],{"class":48}," sudo\n",[10,133,134,135,137],{},"Now log out, and log back in as ",[21,136,45],{},". Done!",[10,139,140,141,148,149,154],{},"See the ",[142,143,147],"a",{"href":144,"rel":145},"https:\u002F\u002Faskubuntu.com\u002Fa\u002F7484\u002F103306",[146],"nofollow","StackOverflow post"," as well as the ",[142,150,153],{"href":151,"rel":152},"https:\u002F\u002Fhelp.ubuntu.com\u002Fcommunity\u002FRootSudo#Allowing_other_users_to_run_sudo",[146],"Ubuntu docs"," on the subject.",[156,157,158],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":19,"searchDepth":41,"depth":41,"links":160},[],"2018-07-02T22:30:45-04:00",false,"md",{},true,"\u002Fposts\u002Fadd-user-to-sudo-group",{"title":5,"description":12},"posts\u002Fadd-user-to-sudo-group",[18,170],"til","Y79U0R1TCbjBMCSPyTUWP-6aPSfcpuC9339yvuSlunE",1790471528102]