LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-02-2015, 10:41 AM   #1
michael.barnes
Member
 
Registered: Jan 2007
Location: Dallas, Oregon
Distribution: Ubuntu; Knoppix; DSL; Raspbian
Posts: 30

Rep: Reputation: 0
Upgrade to 14.04 now can't mount Windows share


I have an Ubuntu desktop in an Active Directory network. I ran 10.04 for several years, then recently upgraded to 14.04. I mount several Windows shares for daily use of various files. The "public" shares (general shares used by multiple users) mount with no problem. However, when I try to mount my personal My Documents share, I get a Permission Denied error. I can go back to my 10.04 installation and it mounts just fine. When I boot in 14.04 I get a permission denied error. The fstab entries are the same.

What has changed from 10.04 to 14.04 that would cause this problem? I have verified credentials and all are proper. If I put phony credentials in, the public shares give me a permission denied error also, so I know the system is reading them correctly.

Here is pertinent parts of my fstab file.

Code:
//10.33.8.18/SRN_Market/Common  /home/mbarnes/SRN-Common              cifs rw,auto,users,credentials=/home/mbarnes/.me,uid=mbarnes,gid=users  0 0
//DAL-S-ADC-12/SRN_Market/Engineering   /home/mbarnes/Engineering       cifs rw,auto,users,credentials=/home/mbarnes/.me,uid=mbarnes,gid=users  0 0
//DAL-S-ADC-12/SRN_Market/InformationServices	/home/mbarnes/IT        cifs rw,noauto,users,credentials=/home/mbarnes/.me,uid=mbarnes,gid=users  0 0
//10.33.8.18/SRN_Production /home/mbarnes/P-drive                       cifs rw,auto,users,credentials=/home/mbarnes/.me,uid=mbarnes,gid=users  0 0

//DAL-S-ADC-12/SRN_MyDocuments/michael.barnes/My\040Documents /home/mbarnes/MyDocuments  cifs rw,auto,users,credentials=/home/mbarnes/.me,uid=mbarnes,gid=users,sec=ntlm 0 0
Any ideas would be appreciated.

Last edited by michael.barnes; 11-02-2015 at 10:59 AM.
 
Old 11-03-2015, 01:52 AM   #2
Prehistorik
Member
 
Registered: Oct 2006
Location: St. Petersburg, Russia
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 1
I've probably run into similar problem after installing 14.04, and managed to fix it, but I don't remember exactly how.

Just a wild guess: try editing your credentials file (/home/mbarnes/.me), so it:

* does not contain any spaces around "="

* ends with a newline

It seems to me that the credential file parser in SMB client became stricter (dumber?) in 14.04. (Trusty Tahr also introduced Samba 4, is it a coincidence?)
 
Old 12-02-2015, 03:36 PM   #3
Ratamahatta
Member
 
Registered: Feb 2012
Location: Germany
Distribution: siduction
Posts: 134

Rep: Reputation: 17
Try this, may help:

Had a problem like this one before. I have an Ubuntu 12 and OpenSUSE 13 multiboot install.
On one system I could not specifiy the user as "user@domain" (or similar) but had to use une line in the credentials file for the user name and another for the domain. In both cases the files were not allowed to be readable by anyone else than root. So I put them in /root.
I think I put uid to root but set gid to users.
My 0.02.

Last edited by Ratamahatta; 12-02-2015 at 03:39 PM. Reason: added information
 
Old 12-03-2015, 10:48 AM   #4
michael.barnes
Member
 
Registered: Jan 2007
Location: Dallas, Oregon
Distribution: Ubuntu; Knoppix; DSL; Raspbian
Posts: 30

Original Poster
Rep: Reputation: 0
I have a single element per line cred file plus a newline at the end as follows:

Code:
username=michael.barnes
password=*********
domain=salem
With this, I get a "Credential formatted incorrectly: (null)" error.

Code:
mbarnes@srn-td-desk:~$ sudo mount -vv MyDocuments/
domain=salem
Credential formatted incorrectly: (null)
mount.cifs kernel mount options: ip=10.33.8.18,unc=\\DAL-S-ADC-12\SRN_MyDocuments,uid=1000,gid=100,user=michael.barnes,,domain=salem,prefixpath=michael.barnes/My Documents,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I take out the newline at the end and I get the same response, without the format error.

I can mount the public shares with no problem. Again, this problem exists in 14.04. I can boot into 10.3 and it mounts fine. I sure would like to get this fixed.

Last edited by michael.barnes; 12-03-2015 at 10:53 AM.
 
Old 12-03-2015, 12:39 PM   #5
Ratamahatta
Member
 
Registered: Feb 2012
Location: Germany
Distribution: siduction
Posts: 134

Rep: Reputation: 17
The problem is, mount.cifs almost always reports a permission error. So that error message really is more confusing than helpful. (I have no idea why they programmed it like that.)
The line mount.cifs outputs doesn't match your fstab entry you posted earlier. I suppose you changed the name of the "My Documents" folder to rule out any problem with the space.
Can you mount when giving all the needed options via command line? (I think you need the -o parameter and a comma-separated list of options like "user=...,password=...".) That way you might be able to confirm it works at all. Nautilus (as you're on Ubuntu) should be able to take an address like "smb://server/share" after you pressed [CTRL]-L and then ask for username, domain and password, and then show the share. Have you tried?
 
Old 12-04-2015, 01:21 AM   #6
Prehistorik
Member
 
Registered: Oct 2006
Location: St. Petersburg, Russia
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 1
Can you also try to remove sec=ntlm from the fstab entry? I guess it will let Samba detect the security mode automatically.
 
Old 12-04-2015, 01:25 AM   #7
Prehistorik
Member
 
Registered: Oct 2006
Location: St. Petersburg, Russia
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 1
Quote:
Originally Posted by Ratamahatta View Post
The line mount.cifs outputs doesn't match your fstab entry you posted earlier. I suppose you changed the name of the "My Documents" folder to rule out any problem with the space.
I guess mount.cifs have splitted the server path into share UNC (unc=\\DAL-S-ADC-12\SRN_MyDocuments) and prefix path (prefixpath=michael.barnes/My Documents), so the fstab line did not change.
 
Old 12-28-2015, 04:08 PM   #8
michael.barnes
Member
 
Registered: Jan 2007
Location: Dallas, Oregon
Distribution: Ubuntu; Knoppix; DSL; Raspbian
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Can you also try to remove sec=ntlm from the fstab entry? I guess it will let Samba detect the security mode automatically.
I tried several permutations of the sec option, including ntlmv, ntlmv2, ntlmssp, etc. as well as without the entry at all with no results.

Quote:
Can you mount when giving all the needed options via command line? (I think you need the -o parameter and a comma-separated list of options like "user=...,password=...".) That way you might be able to confirm it works at all. Nautilus (as you're on Ubuntu) should be able to take an address like "smb://server/share" after you pressed [CTRL]-L and then ask for username, domain and password, and then show the share. Have you tried?
It does not work via the command line, either. I also tried in nautilus using the suggested format and got this:

Code:
Oops! Something went wrong.
Unhandled error message: Failed to mount Windows share: Invalid argument
Again, this is something that changed between 10.3 and 14.04. When I boot to 10.3, the share mounts with no problem. When I boot to 14.04, it won't mount.

Thanks for any help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
mount windows share lrt DamnSmallLinux 4 06-26-2008 10:08 AM
Cannot mount Windows Share!! charles20hk Linux - Networking 3 11-29-2006 03:03 AM
when trying to mount a windows share I'm getting jcombs_31 Slackware 11 01-04-2006 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration