<div dir="ltr">I can proof read the revised documentation and try out any additional steps that would help in enabling this feature (automatic home dir creation on client login). </div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 14, 2015 at 6:17 AM, Martin Kosek <span dir="ltr"><<a href="mailto:mkosek@redhat.com" target="_blank">mkosek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/14/2015 11:04 AM, Iain Bell wrote:<br>
> Getting FreeIPA Synology DSM5 working together is something I'm interested in doing as well.<br>
<br>
</span>Just to make sure we are on the same page - someone would proof read the<br>
problematic chapter in Red Hat docs:<br>
<br>
<a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/users.html#home-directories" target="_blank">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/users.html#home-directories</a><br>
<br>
not the Synology DSM5 specific information/HOWTO - members of this list will<br>
have more experience in that.<br>
<div class="HOEnZb"><div class="h5"><br>
> I'm happy to proof read as well<br>
><br>
>> On 14 Apr 2015, at 09:55, Martin Kosek <<a href="mailto:mkosek@redhat.com">mkosek@redhat.com</a>> wrote:<br>
>><br>
>> We will get someone review the chapter again, to remove the uncertainty. Would<br>
>> you then be willing to proof-read the result?<br>
>><br>
>>> On 04/14/2015 10:37 AM, Prasun Gera wrote:<br>
>>> Thanks. Yes, the feature would be pretty useful. Do you have any thoughts<br>
>>> on the documentation blurb mentioned a couple of mails ago ( "Use a remote<br>
>>> user  ...") ? The local root on the IPA server can be mapped to a<br>
>>> particular user on the NFS server. That bit sounds straightforward. The<br>
>>> other parts are less clear.<br>
>>><br>
>>><br>
>>><br>
>>>> On Tue, Apr 14, 2015 at 3:03 AM, Martin Kosek <<a href="mailto:mkosek@redhat.com">mkosek@redhat.com</a>> wrote:<br>
>>>><br>
>>>> I am personally not aware of such deployment. The <a href="http://linux-nfs.org" target="_blank">linux-nfs.org</a> NFS<br>
>>>> HOWTOs we<br>
>>>> link from<br>
>>>> <a href="http://www.freeipa.org/page/HowTos#Authentication" target="_blank">http://www.freeipa.org/page/HowTos#Authentication</a><br>
>>>> also uses no_root_squash.<br>
>>>><br>
>>>> To do this properly, I assume you would need have some notification<br>
>>>> mechanism<br>
>>>> deployed on FreeIPA server, that would trigger the home directory creation<br>
>>>> on<br>
>>>> the server.<br>
>>>><br>
>>>> (We have a ticket for it: <a href="https://fedorahosted.org/freeipa/ticket/1593" target="_blank">https://fedorahosted.org/freeipa/ticket/1593</a>)<br>
>>>><br>
>>>>> On 04/13/2015 08:58 PM, Prasun Gera wrote:<br>
>>>>> Just a follow up. I thought that making NFS a service in IPA takes care<br>
>>>> of<br>
>>>>> this, but it looks like the issues are unrelated. Home directories are<br>
>>>>> created automatically if the user logs in to the NFS server, but I<br>
>>>> haven't<br>
>>>>> found any solution to trigger this from a client without using<br>
>>>>> no_root_squah for the mount on the IPA server. If someone has achieved<br>
>>>> this<br>
>>>>> functionality, can you share your experience ?<br>
>>>>><br>
>>>>>> On Fri, Apr 10, 2015 at 1:05 PM, Prasun Gera <<a href="mailto:prasun.gera@gmail.com">prasun.gera@gmail.com</a>><br>
>>>>> wrote:<br>
>>>>><br>
>>>>>> Here's the link:<br>
>>>> <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/users.html#home-directories" target="_blank">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/users.html#home-directories</a><br>
>>>>>><br>
>>>>>>> On Fri, Apr 10, 2015 at 12:42 PM, Dmitri Pal <<a href="mailto:dpal@redhat.com">dpal@redhat.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>> On 04/09/2015 07:44 PM, Prasun Gera wrote:<br>
>>>>>>><br>
>>>>>>> I have a somewhat related question.  Without kerberizing NFS, which<br>
>>>> I'll<br>
>>>>>>> do eventually since that needs all the clients to be migrated first,<br>
>>>> how<br>
>>>>>>> does one create home directories automatically ? The IPA server and NFS<br>
>>>>>>> server are different systems. I was able to verify that automatic home<br>
>>>>>>> creation works if the NFS share is exported to the IPA server with<br>
>>>>>>> no_root_squash. What's the proper way of doing this ?<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> The documentation says:<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> Which documentation you are referring to?<br>
>>>>>>> Can you please post the link?<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> Use a remote user who has limited permissions to create home<br>
>>>> directories<br>
>>>>>>> and mount the share on the IdM server as that user. Since the IdM<br>
>>>> server<br>
>>>>>>> runs as an httpd process, it is possible to use sudo or a similar<br>
>>>> program<br>
>>>>>>> to grant limited access to the IdM server to create home directories<br>
>>>> on the<br>
>>>>>>> NFS server.<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> What would be the list of steps that would achieve this ? What are the<br>
>>>>>>> limited permissions that the NFS user would need ? Read + Write, but no<br>
>>>>>>> Delete to the /home directory ? Sounds like something that would need<br>
>>>> ACLs.<br>
>>>>>>> And where does sudo on the IPA server fit into this ?<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> On Thu, Mar 19, 2015 at 4:51 PM, Roberto Cornacchia <<br>
>>>>>>> <a href="mailto:roberto.cornacchia@gmail.com">roberto.cornacchia@gmail.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>>> Thanks, Jakub.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>> On 19 March 2015 at 21:23, Jakub Hrozek <<a href="mailto:jhrozek@redhat.com">jhrozek@redhat.com</a>> wrote:<br>
>>>>>>>>><br>
>>>>>>>>><br>
>>>>>>>>>>> On 19 Mar 2015, at 21:18, Roberto Cornacchia <<br>
>>>>>>>>>> <a href="mailto:roberto.cornacchia@gmail.com">roberto.cornacchia@gmail.com</a>> wrote:<br>
>>>>>>>>>><br>
>>>>>>>>>> It's possible that I'm simply not getting the point, or that I don't<br>
>>>>>>>>> understand the documentation correctly, but this is what I don't<br>
>>>> find clear:<br>
>>>>>>>>>><br>
>>>>>>>>>> I had seen the instructions you pointed me at. These are not<br>
>>>>>>>>> specifically about home directories.<br>
>>>>>>>>>><br>
>>>>>>>>>> However, this section is:<br>
>>>> <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/Linux_Domain_Identity_Authentication_and_Policy_Guide/index.html#homedir-reqs" target="_blank">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/Linux_Domain_Identity_Authentication_and_Policy_Guide/index.html#homedir-reqs</a><br>
>>>>>>>>>><br>
>>>>>>>>>> It first suggests that automatic creation of home directories over<br>
>>>>>>>>> NFS shares is possible: just automount /home and then use<br>
>>>>>>>>> pam_oddjob_mkhomedir or pam_mkhomedir to create homedirs at first<br>
>>>> login.<br>
>>>>>>>>>><br>
>>>>>>>>>> But then it also suggests that mounting the whole /home tree could<br>
>>>> be<br>
>>>>>>>>> an issue, and says: "Use automount to mount only the user's home<br>
>>>> directory<br>
>>>>>>>>> and only when the user logs in, rather than loading the entire /home<br>
>>>> tree."<br>
>>>>>>>>>><br>
>>>>>>>>>> That means that automatic homedir creation is out of the game,<br>
>>>>>>>>> doesn't it?<br>
>>>>>>>>>><br>
>>>>>>>>>> That's what I find confusing. What's the recommended way?<br>
>>>>>>>>><br>
>>>>>>>>> It really depends on your environment. For your size, it's perfectly<br>
>>>>>>>>> fine to NFS mount the whole /home tree and be done with it. Don't<br>
>>>> optimize<br>
>>>>>>>>> prematurely :-)<br>
>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>> On 19 March 2015 at 20:49, Dmitri Pal <<a href="mailto:dpal@redhat.com">dpal@redhat.com</a>> wrote:<br>
>>>>>>>>>>> On 03/19/2015 02:46 PM, Roberto Cornacchia wrote:<br>
>>>>>>>>>>> Hi Dmitri,<br>
>>>>>>>>>>><br>
>>>>>>>>>>> I do realise my question is borderline and I accept that it is<br>
>>>>>>>>> considered off-topic.<br>
>>>>>>>>>>><br>
>>>>>>>>>>> I did post it here because I believe it's not *only* about NFS, but<br>
>>>>>>>>> also about its interaction with freeIPA. The issue of NFS home and in<br>
>>>>>>>>> particular about their creation is touched in all the links I posted<br>
>>>> (all<br>
>>>>>>>>> about freeIPA) and never really answered.<br>
>>>>>>>>>><br>
>>>>>>>>>> This is what documented and recommended:<br>
>>>> <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/Linux_Domain_Identity_Authentication_and_Policy_Guide/index.html#kerb-nfs" target="_blank">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/Linux_Domain_Identity_Authentication_and_Policy_Guide/index.html#kerb-nfs</a><br>
>>>>>>>>>><br>
>>>>>>>>>> RHEL6 has a similar chapter in its doc set though books have changed<br>
>>>>>>>>> significantly between 6 and 7.<br>
>>>>>>>>>><br>
>>>>>>>>>> I do not see any chicken and egg problem there.<br>
>>>>>>>>>> The instructions show how to create home dirs on the first login.<br>
>>>>>>>>>><br>
>>>>>>>>>> It mounts the volume and then creates dirs on it as users log in if<br>
>>>>>>>>> they are not already there.<br>
>>>>>>>>>><br>
>>>>>>>>>> It is unclear what problem you see with doing it the way it is<br>
>>>>>>>>> recommended.<br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>>> Best,<br>
>>>>>>>>>>> Roberto<br>
>>>>>>>>>>><br>
>>>>>>>>>>> On 19 March 2015 at 19:36, Dmitri Pal <<a href="mailto:dpal@redhat.com">dpal@redhat.com</a>> wrote:<br>
>>>>>>>>>>>> On 03/19/2015 05:29 AM, Roberto Cornacchia wrote:<br>
>>>>>>>>>>>> On 6 March 2015 at 11:15, Martin Kosek <<a href="mailto:mkosek@redhat.com">mkosek@redhat.com</a>> wrote:<br>
>>>>>>>>>>>> On 03/06/2015 10:56 AM, Roberto Cornacchia wrote:<br>
>>>>>>>>>>>> Hi there,<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> I'm planning to deploy freeIPA on our lan.<br>
>>>>>>>>>>>> It's small-ish and completely based on FC21, so I expect<br>
>>>> everything<br>
>>>>>>>>> to work<br>
>>>>>>>>>>>> like a charm.<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> Except one detail. We have Synology NAS station, which uses DSM<br>
>>>> 5.0.<br>
>>>>>>>>>>>> The ideal plan is to use it as host for shared NFS home dirs once<br>
>>>>>>>>> we switch our<br>
>>>>>>>>>>>> desktops to freeIPA.<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> Great!<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> Hello,<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> The first thing I'm struggling  with is to find the correct<br>
>>>>>>>>> approach about NFS home dirs.<br>
>>>>>>>>>>>> The ideal setting would be:<br>
>>>>>>>>>>>> - home dirs on the NAS<br>
>>>>>>>>>>>> - IPA manages automount maps<br>
>>>>>>>>>>>> - home dirs are created automatically at first login<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> The documentation I could find on these topics includes only<br>
>>>>>>>>> not-so-recent pages (anything I missed?):<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> <a href="http://wiki.linux-nfs.org/wiki/index.php/NFS_and_FreeIPA" target="_blank">http://wiki.linux-nfs.org/wiki/index.php/NFS_and_FreeIPA</a><br>
>>>> <a href="http://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/automount.html" target="_blank">http://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/automount.html</a><br>
>>>> <a href="http://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/users.html#home-directories" target="_blank">http://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/users.html#home-directories</a><br>
>>>> <a href="http://adam.younglogic.com/2011/06/automount-and-home-directory-creation/" target="_blank">http://adam.younglogic.com/2011/06/automount-and-home-directory-creation/</a><br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> Now, I admit I don't have much experience with setting up NFS<br>
>>>>>>>>> homes, with or without freeIPA, so trying to get this done correctly<br>
>>>> in the<br>
>>>>>>>>> context of freeIPA and without clear howtos isn't very easy, but I'm<br>
>>>>>>>>> willing to get my hands dirty.<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> The first problem I struggle with is on the correct approach.<br>
>>>>>>>>>>>> From the documentation above, I understand that there is a bit of<br>
>>>> a<br>
>>>>>>>>> chicken-egg problem about the creation of home dirs.<br>
>>>>>>>>>>>> On the one hand, it would be optimal to have automount maps to<br>
>>>> load<br>
>>>>>>>>> only single home dirs on demand, rather than the entire /home tree.<br>
>>>>>>>>>>>> On the other hand, if the /home tree is not available, then<br>
>>>>>>>>> creating /home/user1 dir automatically isn't really possible.<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> Just mounting the whole /home tree would make things easier, but I<br>
>>>>>>>>> don't have a feeling of when it starts to become a performance issue<br>
>>>>>>>>> (assuming recent hardware and up to date software). 10 users? 50?<br>
>>>> 100? 500?<br>
>>>>>>>>> No idea.<br>
>>>>>>>>>>>> The realm I'm dealing with at the moment is in the range of 5-10<br>
>>>>>>>>> users and probably won't be larger than 50 in the next few years<br>
>>>> (and if it<br>
>>>>>>>>> will, it means things are going well, so what the heck ;)<br>
>>>>>>>>>>>> Also true that, with such few users, I could just create the<br>
>>>>>>>>> homedirs manually when needed (this is not an organisation where<br>
>>>> many users<br>
>>>>>>>>> come and go) and just mount the individually.<br>
>>>>>>>>>>>> Any tips about this?<br>
>>>>>>>>>>>><br>
>>>>>>>>>>>> Best, Roberto<br>
>>>>>>>>>>> Some of these questions are really outside the scope of this list.<br>
>>>>>>>>>>> You might consider asking them on the NFS list.<br>
>>>>>>>>>>><br>
>>>>>>>>>>> --<br>
>>>>>>>>>>> Thank you,<br>
>>>>>>>>>>> Dmitri Pal<br>
>>>>>>>>>>><br>
>>>>>>>>>>> Sr. Engineering Manager IdM portfolio<br>
>>>>>>>>>>> Red Hat, Inc.<br>
>>>>>>>>>>><br>
>>>>>>>>>>><br>
>>>>>>>>>>> --<br>
>>>>>>>>>>> Manage your subscription for the Freeipa-users mailing list:<br>
>>>>>>>>>>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>>>>>>>>>>> Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>> --<br>
>>>>>>>>>> Thank you,<br>
>>>>>>>>>> Dmitri Pal<br>
>>>>>>>>>><br>
>>>>>>>>>> Sr. Engineering Manager IdM portfolio<br>
>>>>>>>>>> Red Hat, Inc.<br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>> --<br>
>>>>>>>>>> Manage your subscription for the Freeipa-users mailing list:<br>
>>>>>>>>>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>>>>>>>>>> Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
>>>>>>>>>><br>
>>>>>>>>>> --<br>
>>>>>>>>>> Manage your subscription for the Freeipa-users mailing list:<br>
>>>>>>>>>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>>>>>>>>>> Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
>>>>>>>><br>
>>>>>>>> --<br>
>>>>>>>> Manage your subscription for the Freeipa-users mailing list:<br>
>>>>>>>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>>>>>>>> Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> --<br>
>>>>>>> Thank you,<br>
>>>>>>> Dmitri Pal<br>
>>>>>>><br>
>>>>>>> Sr. Engineering Manager IdM portfolio<br>
>>>>>>> Red Hat, Inc.<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> --<br>
>>>>>>> Manage your subscription for the Freeipa-users mailing list:<br>
>>>>>>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>>>>>>> Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
>><br>
>> --<br>
>> Manage your subscription for the Freeipa-users mailing list:<br>
>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>> Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
><br>
<br>
--<br>
Manage your subscription for the Freeipa-users mailing list:<br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
</div></div></blockquote></div><br></div>