<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Sorry Rob for not being clear.</p>
<p><br>
</p>
<p>I created a special location with a couple of mounts with the webGUI and then applied the command: ipa-client-automount --location=server_mounts on the ipa server. Then I checked the server and the automounts were not available. I had no problems using the
command (with a different set of mounts i.e. location) for all the clients. But to be honest I didn't spend too much time trying to fix it before applying the --uninstall which broke global sudo. The command says explicitly "ipa-client"-automount and I was
applying it to the server so maybe it is not the intent to be run the ipa server. I can give it another try with a virtual set up in a couple of days to confirm that.</p>
<p><br>
</p>
<p>-ms</p>
<p><br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Rob Crittenden <rcritten@redhat.com><br>
<b>Sent:</b> Saturday, August 27, 2016 12:45:06 PM<br>
<b>To:</b> Mariusz Stolarczyk; Prasun Gera<br>
<b>Cc:</b> freeipa-users@redhat.com<br>
<b>Subject:</b> Re: [Freeipa-users] ipa-client-automount --uninstall breaks central sudo on ipa-server</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Mariusz Stolarczyk wrote:<br>
> The /etc/nsswitch.conf was the culprit. Fortunately there is a<br>
> /etc/nsswitch.cof.bak and that did the trick.<br>
><br>
><br>
> Rob, your suspicion was correct the sudoers line was missing.<br>
><br>
><br>
> It actually looks like the ipa-client-automount --uninstall reverts the<br>
> nsswitch.conf file to default pre-ipa values.<br>
><br>
><br>
> Still a bit curious that the ipa-client-automount<br>
> --location=server_mounts did not take on the ipa-server. If there is a<br>
> good reason for this behavior I would suggest that the<br>
> ipa-client-automount command would not even start it it was executed on<br>
> the ipa server.<br>
<br>
I don't understand this paragraph at all. What does "did not take" mean? <br>
What do you mean by the command doesn't start?<br>
<br>
rob<br>
<br>
><br>
><br>
> thanks everyone!<br>
><br>
> ms<br>
><br>
> ------------------------------------------------------------------------<br>
> *From:* Prasun Gera <prasun.gera@gmail.com><br>
> *Sent:* Friday, August 26, 2016 4:02 PM<br>
> *To:* Rob Crittenden<br>
> *Cc:* m s; freeipa-users@redhat.com<br>
> *Subject:* Re: [Freeipa-users] ipa-client-automount --uninstall breaks<br>
> central sudo on ipa-server<br>
> ipa-client-automount --uninstall was(is?) a bit broken in that it tries<br>
> to revert back to an older configuration, but it can accidentally revert<br>
> it to a state before the ipa-client was installed (as opposed to the<br>
> state where automount was installed). Check your nssswitch.conf file and<br>
> compare it to other clients on which things work fine. You might notice<br>
> differences.<br>
><br>
> On Fri, Aug 26, 2016 at 11:35 AM, Rob Crittenden <rcritten@redhat.com<br>
> <<a href="mailto:rcritten@redhat.com">mailto:rcritten@redhat.com</a>>> wrote:<br>
><br>
> m s wrote:<br>
><br>
> Need help restoring central sudo rights on ipa server.<br>
><br>
><br>
> How I broke it!!!: I decided to take advantage of the centralized<br>
> automount feature with a custom location for a couple mounts.<br>
> When I ran<br>
> the ipa-client-automount --location=server_mounts it appeared to<br>
> install<br>
> correctly but that didn't appear not to work so my plan was to<br>
> manually<br>
> setup the automount since it is only one machine. So of course I<br>
> ran the<br>
> ipa-client-automount --uninstall on the ipa server and thats<br>
> when I lost<br>
> the sudo rights on the ipa server: superuser not in the sudoers<br>
> file,<br>
> this incident will be reported.<br>
><br>
><br>
> I have repeated this steps with the same results:<br>
><br>
> Initially sudo works for superuser<br>
><br>
> And after ipa-client-automount --location=server_mounts (on the<br>
> ipa-server)<br>
><br>
> sudo still works<br>
><br>
> but after, ipa-client-automount --uninstall<br>
><br>
> no sudo for superuser on the ipa server but the superuser still<br>
> has sudo<br>
> privilages on the clients????<br>
><br>
><br>
> background/versions:<br>
><br>
> My setup is all CentOS 7.2 machines with one ipa server and the<br>
> rest are<br>
> clients all using ipa version 4.2.0.<br>
><br>
> I had no issues using the ipa-client-automount on all my clients to<br>
> configure network homes and shares as well as setting up a superuser<br>
> with central sudo powers before this happened.<br>
><br>
><br>
> 1.) Don't be too harsh if it is a BIG NO-NO to run the<br>
> ipa-client-automount command on the ipa-server<br>
><br>
> 2.) Not sure what logs or config files i need to post.<br>
><br>
><br>
> I'd confirm that sssd is still configured to do sudo by looking for<br>
> sss in the sudoers line in /etc/nssswitch.conf and ensure that sudo<br>
> is an enabled service in /etc/sssd/sssd.conf, probably something like:<br>
><br>
> services = nss, sudo, pam, ssh<br>
><br>
> rob<br>
><br>
> --<br>
> Manage your subscription for the Freeipa-users mailing list:<br>
> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
> <<a href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</a>><br>
> Go to <a href="http://freeipa.org">http://freeipa.org</a> for more info on the project<br>
><br>
><br>
<br>
</div>
</span></font>
</body>
</html>