Find the answer to your Linux question:
Results 1 to 5 of 5
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    54

    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

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,159
    Are you trying to mount as root, or as a regular user? Also, what are the permissions on the file /root/.cifscredentials? One final thing, make sure that there is a new-line at the end of the credentials file. A blank line will do.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    54
    When I installed 'cifs-utils' it worked ... still confused but on a higher level

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,159
    Quote Originally Posted by zkab View Post
    When I installed 'cifs-utils' it worked ... still confused but on a higher level
    It may be because the cifs-utils package includes stuff like cifs.upcall which is used as a helper for stuff like key handling, etc. By default, the cifs file system mounter may not be able to deal with credential files. Not sure since I never tried this option, but always used the username/passwd options instead.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Jul 2007
    Posts
    54
    I get more and more Linux experience every time I visit the forum ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •