Click to See Complete Forum and Search --> : Mount remote smb shares via autofs?


matei
05-12-2003, 09:09 AM
Hello!

I posted last week about trying to mount remote samba shares (on a WinXP box) via entries in fstab.

I managed to get it to work (somewhat), but I've been told by our resident RHCE that mounting them via autofs would be the way to go. Unfortunately, I can't seem to get it to work!

Here is my auto.master file:

[matei@i4000 matei]$ cat /etc/auto.master
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
#/misc /etc/auto.misc --timeout=60
/mnt /etc/auto.mydocs --timeout=120

... and here is my auto.mydocs file:

#mydocs -fstype=smbfs,user=matei,password=MYPASSWORD, ://duron/mydocs

I've tried adding workgroup=myworkgroup as well. I've also tried specifiying a credentials file as well, but with no results. I've run chmod 600 on the auto.mydocs file in case I put in my password - so no one save root can read it.

Whenever I uncomment the above entries, nothing gets mounted in my /mnt directory - not even the cd-rom, floppy etc specified in my fstab file. The /mnt directory is empty! The /mnt/mydocs directory doesn't even get created.

Is there something that I'm missing here?

matei
05-14-2003, 03:11 AM
Hello!

For anyone that is interested, I think the problem is with Windows. I reset the security on the shares and I implemented a credentials file that I placed in my /home dir.

I also changed the auto.master file. Instead of trying to mount the shares in /mnt, I mounted them in /misc. I was successful in getting one of my Windows shares to automount. The others still won't - but as I said, I believe the problem is with the dodgy Windows system.

Oddly enough, in CLI, I can go in and out of the /misc/mydocs directory and it automounts with no apparent problem. However, in Gnome, it hangs when I click on the desktop launcher that I've created. It hangs so bad that the only way to get out of it is to crash Gnome - nothing else works!