Bug 893579 - mount.cifs doesn't follow credentials option
Summary: mount.cifs doesn't follow credentials option
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cifs-utils
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Layton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-09 14:01 UTC by Andrew G. Dunn
Modified: 2014-06-18 07:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 11:52:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Andrew G. Dunn 2013-01-09 14:01:41 UTC
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:
username=<username>
password="<password>"

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


How reproducible:
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
  
Actual results:
Will not mount, permission denied


Expected results:
Read the credentials file and mount the share


Additional info:

Comment 1 Jeff Layton 2013-02-01 17:13:56 UTC
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.

Comment 2 Jeff Layton 2013-02-21 11:52:53 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.