-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
Barak Pearlmutter <[EMAIL PROTECTED]> writes: > Has anyone gotten the AMD configuration option for the home map to > work? We cannot figure it out, and we've tried a couple different > things. I've been told bad things about AMD. If you're setting up a new network, you're probably better off playing with autofs. For autofs, my configuration goes something along the lines of: auto.master: (which is served by NIS) /home yp:auto.home --timeout 60 /net yp:auto.net --timeout 60 /misc file:/etc/auto.misc --timeout 60 auto.home: (which is also served by NIS) * -soft,intr,rsize=8192,wsize=8192 home:/disk/home/& I have the actual home directories on the server in /disk/home, so that way, the autofs maps also work on the server. And autofs is smart. If it sees that the directory to be mounted is on the local filesystem, it'll just symlink it instead. The appropriate line in /etc/exports is: /disk/home 192.168.54.0/255.255.254.0(rw,async,no_subtree_check) The lines in /etc/passwd are standard: graeme:*:10001:10001:Graeme Mathieson:/home/graeme:/bin/bash The interesting bit, is serving most (but not all) autofs maps using NIS. I wanted auto.master, auto.home and auto.net to be the same on every system. But I wanted auto.misc (for local removable drives) to be individual to each system. To do this, I had to modify /etc/init.d/autofs. I've attached a diff of the changes I made. Maybe I should submit it sometime?
--- autofs.old Sat May 13 14:39:28 2000 +++ autofs Sat May 13 14:40:18 2000 @@ -78,12 +78,17 @@ then # not needed in here # map=`echo "$map" | sed -e 's/^auto_/auto./'` + # Added by [EMAIL PROTECTED]: + type=`echo $map | sed -e 's/^\(.*\):.*$/\1/g'` + if [ ! -z "$type" ]; then + map=`echo $map | sed -e 's/^.*:\(.*\)$/\1/g'` + fi filter_opts options=`echo "$options" | sed -e 's/\(^\|[ \t]\)-/\1/g'` test ! -z "$PRUNEREGEX" && \ options=`echo $options | \ sed -e "s#$PRUNEREGEX##g" -e 's#,\+#,#g' -e 's#,$##'` - echo "$DAEMON $mountoptions $dir yp $map $options $localoptions" + echo "$DAEMON $mountoptions $dir $type $map $options $localoptions" fi done )
I think that about covers it... - -- Graeme. [EMAIL PROTECTED] "Life's not fair," I reply. "But the root password helps." - BOFH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) iD8DBQE5HV1MPjGH3lNt65URAkmEAJ4rCHj3/zGwiX7Aps1jJ25lDoK4/ACfVEj8 C1dru1O0YX7xSAaeG0R3B4A= =evGO -----END PGP SIGNATURE-----