LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Problem with credentials and cifs (https://www.linuxquestions.org/questions/debian-26/problem-with-credentials-and-cifs-4175429908/)

zkab 10-01-2012 12:07 PM

Problem with credentials and cifs
 
I want to mount a Windows share in my Linux workstation.
When giving following command:

sudo mount -t cifs -o rw,username=joe,passwd=xxxyyy //192.168.0.15/public /mnt/BU_zkab/

then it works OK but when I try to use 'credentials' it doesn't work:

sudo mount -t cifs -o rw,credentials=/root/.cifscredentials //192.168.0.15/public /mnt/BU_zkab/

where ...

# ls -la /root/.cifscredentials
-r--r----- 1 root root 34 sep 26 2011 /root/.cifscredentials
# cat /root/.cifscredentials
username=joe
password=xxxyyy

then I get this error ...

mount: wrong fs type, bad option, bad superblock on //192.168.0.15/public,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so

$ dmesg | tail
[14313.556288] CIFS VFS: Send error in SessSetup = -13
[14313.556487] CIFS VFS: cifs_mount failed w/return code = -13
[14580.239496] CIFS VFS: No username specified
[14733.741952] CIFS VFS: No username specified
[15090.382963] CIFS VFS: No username specified
[15240.884869] CIFS VFS: No username specified
[15317.714548] VFS: Busy inodes after unmount of cifs. Self-destruct in 5 seconds. Have a nice day...
[16009.586248] CIFS VFS: No username specified
[16156.375915] CIFS VFS: No username specified
[16561.258294] CIFS VFS: No username specified

Dutch Master 10-01-2012 12:36 PM

Well, it says here what the possible solution could be:
Code:

(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)

So try to install said helper program, you'll find it in the cifs-utils package :)

zkab 10-01-2012 02:08 PM

Thanks - that solved my problem

TobiSGD 10-01-2012 02:56 PM

Which is actually quite strange, since a
Code:

mount -t cifs ...
will always call mount.cifs, regardless if you have a credentials file or not, so the first mount should have given the same error.

Anyways, since it is working now please mark this thread as solved using the thread tools at the top of the thread.


All times are GMT -5. The time now is 04:09 AM.