debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #04821
[Bug 2119297] [NEW] Can't mount -t cifs with credentials file but can mount with username and password
Public bug reported:
When I do (for user martin):
sudo mount -t cifs //192.168.1.186/prive /mnt/nas/prive -o credentials=/home/martin/.smb_creds/nas_smb,uid=$(id -u),gid=$(id -g),dir_mode=0775,file_mode=0664,vers=3.0,nounix,noperm,sec=ntlmssp
I get result:
mount: /mnt/nas/prive: cannot mount //192.168.1.186/prive read-only.
dmesg(1) may have more information after failed mount system call.
But when I do the same but replace credentials=/home/martin/.smb_creds/nas_smb with username=X,password=Y
it does mount. (The same username/password is in /home/martin/.smb_creds/nas_smb)
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: cifs-utils (not installed)
ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
Uname: Linux 6.14.0-15-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Aug 1 13:40:17 2025
SourcePackage: cifs-utils
UpgradeStatus: Upgraded to plucky on 2025-04-17 (106 days ago)
** Affects: cifs-utils (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug plucky wayland-session
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to cifs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/2119297
Title:
Can't mount -t cifs with credentials file but can mount with username
and password
Status in cifs-utils package in Ubuntu:
New
Bug description:
When I do (for user martin):
sudo mount -t cifs //192.168.1.186/prive /mnt/nas/prive -o credentials=/home/martin/.smb_creds/nas_smb,uid=$(id -u),gid=$(id -g),dir_mode=0775,file_mode=0664,vers=3.0,nounix,noperm,sec=ntlmssp
I get result:
mount: /mnt/nas/prive: cannot mount //192.168.1.186/prive read-only.
dmesg(1) may have more information after failed mount system call.
But when I do the same but replace credentials=/home/martin/.smb_creds/nas_smb with username=X,password=Y
it does mount. (The same username/password is in /home/martin/.smb_creds/nas_smb)
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: cifs-utils (not installed)
ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
Uname: Linux 6.14.0-15-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Aug 1 13:40:17 2025
SourcePackage: cifs-utils
UpgradeStatus: Upgraded to plucky on 2025-04-17 (106 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/2119297/+subscriptions