> From: [email protected] [mailto:discuss-
> [email protected]] On Behalf Of Ski Kacoroski
>
> I use autofs to connect to several smb shares at work. This works fine
> except for when i am not at work, then things get long delays if I try
> df -h for example as it attempts to connect to each share in the map and
> times out. Any ideas on how to set this up so it only will try to
> connect to shares at work while I am at work (e.g. on a 10.x.x.x
> network? Or perhaps there is a timeout parameter I can tweak a bit or
> maybe a better tool than autofs.
This is how I've always done it. I'm pretty sure it will work well for you too.
Please note, the below are notes for opensolaris, which means autofs5. I'm not
sure which versions of linux included autofs5, so you should check your package
manager to be sure.
In opensolaris, there was a convention to use the _ instead of the .
I'm pretty sure in linux, it would be /etc/auto.master and /etc/auto.direct
Append this line to the end of /etc/auto_master
/- /etc/auto_direct --timeout=1200
Create /etc/auto_direct as follows:
/Downloads -fstype=nfs,rw,hard,intr,posix someserver:/some/export
_______________________________________________
Discuss mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
http://lopsa.org/