Results 1 to 4 of 4

Thread: cifs credentials

  1. #1
    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Beans
    Hidden!

    cifs credentials

    I have an issue with credentials when mounting a Windows file with cifs.
    My fstab looks like this:

    //triglyfen/Mina\040Mappar /cifs/Mina_Mappar cifs credentials=/root/.cifscredentials_begonian,rw,iocharset=utf8,uid=10 00,gid=1000 0 0

    My /root/.cifscredentials_begonian look like this:

    root@balder:/etc# ls -la /root/.cifscredentials_begonian
    -rw------- 1 root root 35 jan 23 17:09 /root/.cifscredentials_begonian

    and has only 2 lines:
    username=XXX
    password=*****

    The volume is mounted correctly but I get an error with the credential file ...

    $ sudo mount -av
    Credential formatted incorrectly: (null)
    mount.cifs kernel mount options: ip=192.168.1.3,unc=\\triglyfen\Mina Mappar,iocharset=utf8,uid=1000,gid=1000,user=XXX,p ass=********
    /cifs/Mina_Mappar : successfully mounted

    I am running Ubuntu 20.10 (5.8.0-40-generic)

    Where have I missed?
    The Truth Is Out There

  2. #2
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: cifs credentials

    I see a typo space in the 'pass' parameter.

  3. #3
    Join Date
    May 2010
    Beans
    3,246

    Re: cifs credentials

    Press ENTER on the end of the password line too. File should show 3 lines

  4. #4
    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Beans
    Hidden!

    Re: cifs credentials

    OK ... thanks
    The Truth Is Out There

Bookmarks

Posting Permissions

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