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?
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?