UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?)
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
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.