LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-01-2012, 12:07 PM   #1
zkab
Member
 
Registered: Dec 2007
Posts: 142

Rep: Reputation: 16
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
 
Old 10-01-2012, 12:36 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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
 
1 members found this post helpful.
Old 10-01-2012, 02:08 PM   #3
zkab
Member
 
Registered: Dec 2007
Posts: 142

Original Poster
Rep: Reputation: 16
Thanks - that solved my problem
 
Old 10-01-2012, 02:56 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CIFS share on old WinNT host - smbclient works, mount -t cifs doesn't Electrode Linux - Networking 4 04-19-2012 09:11 AM
does Windows CIFS support CIFS Unix extensions? bobwall Linux - Server 0 01-26-2011 02:17 PM
[SOLVED] autofs, fstab and manual cifs mounts fail if using credentials file carltm Red Hat 1 12-02-2009 06:39 AM
mount.cifs credentials=/path-to-passwd-file not parsing xxx_anuj_xxx Linux - Server 1 11-10-2009 03:44 AM
Mounting windows share via cifs (fstab entry) - error 13 opening credentials file O(V)eGA_l2el) Linux - Networking 2 12-05-2006 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration