Thank you for your responses (I have received 2 so far).  What I did was
copy the auto.master and auto.misc files in the samples directory.  Then, I
added my line item.  Now, I just go under /misc/xxx, and I get it.

Would anyone know how to enter the line in the auto.misc file to allow
access to a SMB share?

I tried the following:

mshost            -rw,soft,intr           //mshost/shared

This apparently does not work.  I noticed in the man page that it says you
don't need the double //, but even with 1, it doesn't work.

I also tried:

mshost             -fstype=smb    ://mshost/shared

This actually lets me change into the /misc/mshost/shared directory, but no
files exist.


Thank you in advance,

Derek


"H. Peter Anvin" wrote:

> > Hello,
> >
> > I just compiled automounter support in my Linux 2.0.36 kernel.  Then, I
> > downloaded, compiled, and installed the files from
> > ftp.kernel.org:/pub/linux/daemons/autofs.
> >
> > After restarting everything, I tried to do the following:
> >
> > 1. Create mount point /test
> > 2. Edit /etc/auto.master to include the following:
> >     /test    /etc/auto.test
> > 3. Edit /etc/auto.test to include the following:
> >     host:/test /test nfs rw 0 0
> > 4. Confirm that /test is exported via NFS on host.
> >
> > I assume this should allow a local mountpoint /test to automount the
> > /test subdirectory on 'host'.  I started the autofs daemon, and I got
> > the following:
> >
> > [root@cheese]# /etc/rc.d/init.d/autofs reload
> > Checking for changes to /etc/auto.master ....
> > Start /usr/sbin/automount  /test file /etc/auto.test
> >
> > Now, when I go into /test, I get nothing.  Shouldn't /test automount
> > machine:/test?
> >
>
> Please read the documentation first; the automount maps are *NOT* the
> same format as /etc/fstab.
>
> /etc/auto.test should look like
>
> test    host:/test
>
> ... except that will create a mount point /test/test, not /test.  What
> it sounds like you're trying to do is called a direct mount, which
> isn't supported.
>
>         -hpa

Reply via email to