<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">As Bob pointed out in a direct e-mail to me, there was the detail of adding sudo and sss to /etc/nsswitch.conf but – once I did so, it pointed out that the Rackspace RHEL packaging that doesn’t provide what I
 need – possibly need from epel.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># yum search /usr/lib64/libsss_sudo.so<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Loaded plugins: rhnplugin, security<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">This system is receiving updates from RHN Classic or RHN Satellite.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">rackspace                                                | 1.3 kB     00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">rackspace-rhel-x86_64-server-6.5.z-common                |  871 B     00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">rackspace-rhel-x86_64-server-6.5.z-ius                   |  871 B     00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">rhel-x86_64-server-6.5.z                                 | 1.5 kB     00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">rhel-x86_64-server-optional-6.5.z                        | 1.5 kB     00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">rhn-tools-rhel-x86_64-server-6.5.z                       | 1.3 kB     00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">vmware-tools                                             |  951 B     00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Warning: No matches found for: /usr/lib64/libsss_sudo.so<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">No Matches found<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Blockage identified, solution being searched<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black">Craig White<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black">System Administrator<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#A6A6A6">O</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black">
</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">623-201-8179  
</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#A6A6A6">M</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black"> 602-377-9752<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><img width="180" height="52" id="_x0000_i1026" src="cid:image001.png@01CFF99D.52223930" alt="cid:image001.png@01CF86FE.42D51630"></span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black">SkyTouch Technology    
</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#A6A6A6">4225 E. Windrose Dr.     Phoenix, AZ 85032</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> tlau@tetrioncapital.com [mailto:tlau@tetrioncapital.com]
<br>
<b>Sent:</b> Wednesday, November 05, 2014 6:11 PM<br>
<b>To:</b> Craig White; freeipa-users@redhat.com<br>
<b>Subject:</b> Re: [Freeipa-users] unable to sudo<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#1F497D">Hi, <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#1F497D">Did you config HBAC to allow sudo, then in sudo rules, allow your sudo command, next would be adding HBAC rules to user group‎?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#1F497D">Sent from my BlackBerry 10 smartphone.<o:p></o:p></span></p>
</div>
<table class="MsoNormalTable" border="0" cellpadding="0" width="100%" style="width:100.0%;background:white;border-spacing:0px">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt;font-size:initial;text-align:initial">
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in" id="_persistentHeader">
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:
</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Craig White<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Sent:
</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Thursday, 6 November, 2014 6:11 AM<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">To:
</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Subject:
</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">[Freeipa-users] unable to sudo<o:p></o:p></span></p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<div id="_originalContent">
<p class="MsoNormal">First 10 ipa clients I set up – no problem.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Set up 2 more, perhaps this is a problem with the fact that these 2 hosts were on a totally new VLAN and the firewall rules weren’t correct when I set them up.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Been through the part on sudo here…<o:p></o:p></p>
<p class="MsoNormal"><a href="http://www.freeipa.org/page/Troubleshooting">http://www.freeipa.org/page/Troubleshooting</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">nisdomainname is correct on the machines and also in /etc/sysconfig/network<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">had to add ‘sudo’ to <o:p></o:p></p>
<p class="MsoNormal">[sssd]<o:p></o:p></p>
<p class="MsoNormal">services = nss, sudo, pam, ssh<o:p></o:p></p>
<p class="MsoNormal">and restarted sssd though I don’t know why it wasn’t added automatically<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">checked nsswitch.conf and netgroup is set to ‘files sss’<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333">getent netgroup hgroup1
</span><o:p></o:p></p>
<p class="MsoNormal">returns nothing on machines where sudo works and doesn’t work – can’t tell the difference.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Added ‘sudoers_debug 2’ to /etc/sudo_ldap.conf but don’t know where that logs<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">And finally, on a machine where ipa users cannot sudo…<o:p></o:p></p>
<p class="MsoNormal"># sudo -l<o:p></o:p></p>
<p class="MsoNormal">Matching Defaults entries for root on this host:<o:p></o:p></p>
<p class="MsoNormal">    requiretty, !visiblepw, always_set_home, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS",<o:p></o:p></p>
<p class="MsoNormal">    env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES",<o:p></o:p></p>
<p class="MsoNormal">    env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY",<o:p></o:p></p>
<p class="MsoNormal">    secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">User root may run the following commands on this host:<o:p></o:p></p>
<p class="MsoNormal">    (ALL) ALL<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">$ sudo -l<o:p></o:p></p>
<p class="MsoNormal">[sudo] password for craig.white:<o:p></o:p></p>
<p class="MsoNormal">Sorry, user craig.white may not run sudo on 599330-stash001.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black">Craig White</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black">System Administrator</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#A6A6A6">O</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black">
</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif"">623-201-8179  
<span style="color:#A6A6A6">M</span><span style="color:black"> 602-377-9752</span></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><img border="0" width="180" height="52" id="Picture_x0020_2" src="cid:image001.png@01CFF99D.52223930" alt="cid:image001.png@01CF86FE.42D51630"><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black">SkyTouch Technology    
</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#A6A6A6">4225 E. Windrose Dr.     Phoenix, AZ 85032</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</body>
</html>