/etc/group<div><div>...</div><div>floppy:x:25:</div><div>tape:x:26:</div><div>sudo:x:27:bmike1 <-relevant line</div><div>audio:x:29:pulse</div><div>dip:x:30:bmike1</div><div>/etc/sudoers</div><div><div>...</div><div># Members of the admin group may gain root privileges</div>
<div>%admin ALL=(ALL) ALL</div><div><br></div><div># Allow members of group sudo to execute any command</div><div>%sudo ALL=(ALL:ALL) ALL <-relevant line</div><div><br></div><div>
# See sudoers(5) for more information on "#include" directives:</div><div><br></div></div><div>Isn't the line that is commented out supposed to be that way,,,, wait a second! If I remember correctly the '%' is a comment symbol too. (if I rember right I was messing with a file that used % signs to comment out lines. I'll try removing it and see what happens.</div>
<div>,....</div><div>Well I uncomented it and now the error is:</div><div><div><br></div><div>$ sudo visudo</div><div>bmike1 is not in the sudoers file. This incident will be reported. (I'm terrified! lol)</div></div>
<div><br></div><div>So to me this is saying to put the line:</div><div><div><br></div><div>bmike1 ALL=(ALL:ALL) ALL</div></div><div><br></div><div>under the line:</div><div><br></div><div><div>sudo ALL=(ALL:ALL) ALL</div>
</div><div><br></div><div>so it looks like:</div><div><br></div><div><div># Allow members of group sudo to execute any command</div><div>sudo ALL=(ALL:ALL) ALL <-relevant line</div>
</div><div><div>bmike1 ALL=(ALL:ALL) ALL <-relevant line</div></div><div><br></div><div><br></div><div>but you were saying I should just need to add my userid to the group sudo (which, as shown, is already done). So I am at a loss! What should I do.</div>
<div><br></div><div>Also, would someone explain the difference between usin a pound symbol and a percent when commenting lines.</div><div><br></div><div>:-)~MIKE~(-:</div>
<br><br><div class="gmail_quote">On Fri, Jul 5, 2013 at 7:51 PM, James Dugger <span dir="ltr"><<a href="mailto:james.dugger@gmail.com" target="_blank">james.dugger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">Mike,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">Don't know if it was explained above but the % symbol infront of the names in the sudo file is the reference for a group listed in the /etc/group file. So the line </div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">
%sudo ALL=(ALL:ALL) NOPASSWORD : ALL </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">
When uncommented (remove the # in front if it exists) tells Linux to allow anyone in the sudo group access to ALL commands as root without a password. All you have to do is make sure this line is uncommented using visudo.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">
Then you would edit the /etc/group and add your username to the 'sudo' group line after the ':' on that line. If there is already another user listed simply add a comma to the end of the previous name then a space and add your username at the end (without a comma after your username).</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default"><font color="#0b5394" face="arial, helvetica, sans-serif">Caution: This gives any and all users that are part of the sudo group complete root privileges without password requirements. If this is an issue you can depending on your distro instead use the %wheel group listing in the sudo file. If the %wheel stanza </font><span style="color:rgb(11,83,148);font-family:arial,helvetica,sans-serif">exists </span><span style="color:rgb(11,83,148);font-family:arial,helvetica,sans-serif">(same as the %sudo ... above) and there is a group named wheel in /etc/group you could use this in lieu of %sudo.</span></div>
<div class="gmail_default"><span style="color:rgb(11,83,148);font-family:arial,helvetica,sans-serif"><br></span></div><div class="gmail_default"><span style="color:rgb(11,83,148);font-family:arial,helvetica,sans-serif">Hope this helps. </span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 5, 2013 at 12:38 PM, Robert Holtzman <span dir="ltr"><<a href="mailto:holtzm@cox.net" target="_blank">holtzm@cox.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Thu, Jul 04, 2013 at 04:48:42PM -0700, Michael Havens wrote:<br>
> regardless, how do I fix sudoers?<br>
<br>
</div>By deleting the sudoers file and renaming the sudoers.bak file to<br>
sudoers. Uh, you *did* make a backup of the sudoers file...didn't you?<br>
<span><font color="#888888"><br>
--<br>
Bob Holtzman<br>
If you think you're getting free lunch,<br>
check the price of the beer.<br>
Key ID: 8D549279<br>
</font></span><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAlHXIKEACgkQv5BYD41UknldegCfT3gS7Xi65I3B50S0QtO+cqR6<br>
bigAnRZbTvl8BpOJsRBbqm4r7qRq5zbl<br>
=DWfp<br>
-----END PGP SIGNATURE-----<br>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div>
<span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
<font color="#0b5394">James</font><div><br><span style="color:rgb(255,255,255)"><span style="background-color:rgb(11,83,148)"><b><a href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/" target="_blank"><span style="background-color:rgb(255,255,255)"><span></span><span style="color:rgb(11,83,148)">Linkedin<span></span></span></span></a></b></span></span><br>
</div></div>
</font></span></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>