Here is how I automatically mount CIFS share (from a remote Win2K3) without asking for a password. Architecture:
//SRVDATA/Interne /media/srvdata/Interne cifs _netdev,users,noauto,users,credentials=/home/damien/.smbcred 0 0
Note that the source is define with
//
, and that you have to be able to resolve serveur name.
username=login.without.domain password=XXXXXXX domain=DOMAIN.IN.UPPERCASE
Permissoins
ll /home/damien/.smbcred -rw-r-----. 1 damien root 60 3 avril 19:03 /home/damien/.smbcred [root@LWKS-damien ~]#