Anonymous authentication does not work with mount.cifs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have an anonymous-access share on a Windows 2012 server that I'm trying to mount from Ubuntu 14.04. I can access the share via smbclient as expected:
$ smbclient -N //foo.example.
Anonymous login successful
Domain=[LAB9320] OS=[Windows Server 2012 Standard 9200] Server=[Windows Server 2012 Standard 6.2]
smb: \> ls
. D 0 Wed Nov 5 11:46:22 2014
.. D 0 Wed Nov 5 11:46:22 2014
test D 0 Wed Nov 5 01:58:42 2014
However, I can't get the share to mount at all via mount.cifs:
$ sudo mount.cifs //foo.example.
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
For reference, I've modified the following settings in secpol.msc > Security Settings > Local Policies > Security Options on the Windows server to enable anonymous access to the share:
1. Network access: Do not allow anonymous enumeration of SAM accounts and shares: Disabled
2. Network access: Let everyone permissions apply to anonymous users: Enabled
3. Network access: Restrict anonymous access to Named Pipes and shares: Disabled
4. Network access: Shares that can be accessed anonymously: MyShare
In addition, I've given the following local SIDs "Full Control" of the share and the folder itself: Everyone, Guest, and ANONYMOUS LOGON. Please note that the Guest account is NOT enabled on this system, for security purposes (I don't want guest auth, I want anonymous auth).