Red Hat Bugzilla – Bug 893579
mount.cifs doesn't follow credentials option
Last modified: 2014-06-18 03:42:56 EDT
Description of problem:
when using mount.cifs I always specify a credentials file. For example:
sudo mount -t cifs -o credentials=/etc/samba.<username> //server/share /mnt/server/share
The credentials file is formatted as:
however when I run the mount with '-v' I see that its trying to mount with a username of root.
Version-Release number of selected component (if applicable):
mount from util-linux 2.22.1
Every time. I've had to switch over to specifying my user and pass as options to the mount call. I have all of this in my .bashrc as aliases, not a very good solution. I would like to be able to use the credentials option again.
Steps to Reproduce:
1. set up a credentials file (example: /etc/samba.<username>)
2. call mount cifs (example: mount -t cifs -o credentials=/etc/samba.<username> //server/share /mountpoint
3. get a mount error(13): Permission denied
Will not mount, permission denied
Read the credentials file and mount the share
What version of cifs-utils do you have? If it's lower than 5.9-3 then please update to that and let me know if it's still a problem.
No response in almost 3 weeks. Closing with resolution of INSUFFICIENT_DATA. Please reopen if this is still a problem with the latest cifs-utils.