> From: [email protected] [mailto:opensolaris-
> [email protected]] On Behalf Of russell
> 
> My local user home filesystems are being correctly mounted using
> /etc/auto_home settings so /export/home/<user> is being mounted
> /home/<user>.
> 
> I would like to have another directory /export/home/downloads mounted
> as /home/downloads, I created an auto_direct file which is included in
> /etc/auto_master as
> 
> # more /etc/auto_master
> +auto_master
> /net          -hosts          -nosuid,nobrowse
> /home         auto_home       -nobrowse
> /home         auto_direct     -nobrowse
> 
> 
> # more /etc/auto_direct
> downloads     localhost:/export/home/downloads
> +auto_direct

One tangent, unrelated to your problem:  When you have the + mark, it means
the machine gets its information from NIS.  If you're not using NIS, you
should comment-out those +auto_master and +auto_direct lines.  

Now, back to the question.

A regular automount entry, as you know, just makes a special directory (in
this case /home) where all the contents are automatically mounted upon
request.

An auto direct entry is more like a traditional entry in fstab, vfstab, or
whatever the equivalent is on your OS.  Auto direct simply takes a local
directory and mounts a remote thing onto it.  Direct.

If you have regular automount on /home, I don't think you can have a
subdirectory which is handled differently...  I don't think you can put an
auto_direct mount point as a subdirectory of a direct auto mount.  But I
don't know that for a fact; it just doesn't make logical sense, and it's the
typical use scenario, so I'm discouraging it.

I'll encourage mounting the direct automount someplace outside of /home, or
else, make everything under /home direct too.

Here's an example of an auto_direct...

Put this in your auto_master:
/-  /etc/auto_direct --timeout=1200

Put this in your auto_direct:
/home/auser -fstype=nfs,rw,hard,intr,posix somehost:/path/to/export/auser
/home/buser -fstype=nfs,rw,hard,intr,posix somehost:/path/to/export/buser
/home/cuser -fstype=nfs,rw,hard,intr,posix somehost:/path/to/export/cuser
/home/downloads -fstype=nfs,rw,hard,intr,posix
somehost:/path/to/export/downloads
/foo -fstype=nfs,rw,hard,intr,posix somehost:/path/to/export/foo

_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to