auto.smb mounting

A Yagi ayagi at scripps.edu
Thu Nov 9 15:56:36 UTC 2006


Akemi Yagi wrote:
> Jamie Bohr wrote:
>> That is what I think too however I don't understand how it interacts 
>> with autofs.  I put "-o credentials=/home/myhome/.credentials" in the 
>> '/Disk/' line in auto.smb to see if I could get it to work, it did 
>> not.  I am able to do the following:
>>
>> mount -t cifs //nas/share /mnt1 -o credentials=/homejmyhome/.credentials
>>
>> so I know my credentials file is correct.  I even tried exporting USER 
>> and PASSWORD as stated in the man page for mount.cifs
> 
> This agrees with my own experience.  I was not able to use credential 
> file in autofs, which is why I included username and passwd on the line 
> in my autofs map file.
> 
> Akemi

Don't know why but I tried again the following line in the map file and 
it worked.

winbox  -fstype=cifs,rw,noperm,credentials=/path/to/credentialfile 
://winbox/sharename

Akemi




More information about the users mailing list