Kristian Petersen via FreeIPA-users wrote:
OK. So I created the keys for each letter in this format:
a* -fstype=nfs4,soft,intr,rsize=8192,wsize=8192,tcp
fileserver.chem.byu.edu:/export/home/students/a/:&
It still doesn't seem to be mounting the directories as it should and I
am not understanding why. The syntax of the key entries appears correct
as far as I can tell. Am I missing something?
I don't think that first entry is a glob. I believe that * just means
any. & is shorthand for the matching key so
* -fstype=nfs4,soft,intr,rsize=8192,wsize=8192,tcp
fileserver.chem.byu.edu:/export/home/students/&
Just substitutes whatever the matching key (*) to &.
I assume this is in some auto.home-like map.
I don't claim to know a lot about autofs but you might try creating an
auto.home-a, auto.home-b, etc.
auto.master contains:
/export/home/students/a auto.home-a
/export/home/students/b auto.home-b
This of course assumes that the homedir in the user entry is
/export/home/students/<letter>/<login>
This feels like it should be a solved problem but my git-fu wasn't able
to find anything definitive. You might try the autofs community.
rob
On Tue, Feb 19, 2019 at 10:05 AM Brian Topping <brian.topping(a)gmail.com
<mailto:brian.topping@gmail.com>> wrote:
Kristian,
The doc that helped me a lot is [1]. I think you just need to create
26 entries in `auto_home` using a wildcard at the end of each key
(ie `a*`, `b*`, etc). Then, for each user, set their home directory
to the correct full path.
Brian
1:
https://docs.oracle.com/cd/E19455-01/806-0916/6ja8539g6/index.html
> On Feb 19, 2019, at 9:45 AM, Kristian Petersen via FreeIPA-users
<freeipa-users(a)lists.fedorahosted.org
<mailto:freeipa-users@lists.fedorahosted.org>> wrote:
>
> Is there a way to set up the maps to mount a users home directory
if they are divided up under a directory that is the first letter of
their username without mounting all such directories for every
user? We have thousands of students needing home directories and so
they have divided up this way. Example: /home/students/a/aardvark
or /home/students/b/bugsbunny. The docs I have read on autofs maps
haven't been very clear on how to define this kind of mapping,
especially in FreeIPA.
>
> --
> Kristian Petersen
> System Administrator
> BYU Dept. of Chemistry and Biochemistry
> _______________________________________________
> FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
<mailto:freeipa-users@lists.fedorahosted.org>
> To unsubscribe send an email to
freeipa-users-leave(a)lists.fedorahosted.org
<mailto:freeipa-users-leave@lists.fedorahosted.org>
> Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedoraho...
--
Kristian Petersen
System Administrator
BYU Dept. of Chemistry and Biochemistry
_______________________________________________
FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedoraho...