[CentOS] Samba Fstab and Automount

Fri Mar 21 14:30:39 UTC 2008
Barry Brimer <lists at brimer.org>

> /etc/fstab:
>
> //machine_name/SAN /mnt/SAN cifs defaults 0 0
>
> [root at machine_name SAN]# mount -a
> Password:
> mount error 13 = Permission denied
>
> Problem is there is no password to the smb server. Why am I getting a
> password prompt when the share has full RW access and all access is
> granted on the share? Note, though the share is fully visable and
> accessable and writeable by just browsing the network.

Try replacing "defaults" with "guest"


> ------------------------------------------------------------------------------------------------------------------------------------------------
> Ok, now next up is automount. The Samba share will not auto mount on
> client either.
> -------------------------------------
> /etc/auto.master
>
> /mnt/SAN /etc/auto.SAN
> --------------------------------------
> /etc/auto.SAN
>
> machine_name -fstype=cifs,rw ://machine_name/SAN/
> ---------------------------------------
> Anyone see anything wrong with the configuration? I also read the How To
> on the Wiki and no luck on doing the auto.smb.top and auto.smb.sub
> configuration? Any ideas what maybe going on? Thanks in advance for any
> help on this.
>
> Also this is posted in the Networking and Harware Forum on the
> centos.org Forums and No answer.
> -- 
> ~/john

I suspect you need to pass the guest option to autofs as well.

Barry