Anonymous authentication does not work with mount.cifs

Bug #1389919 reported by Karl M. Davis
6
This bug affects 1 person
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.com/MyShare
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

                51111 blocks of size 4194304. 41916 blocks available

However, I can't get the share to mount at all via mount.cifs:

$ sudo mount.cifs //foo.example.com/MyShare /mnt/test -o file_mode=0777,dir_mode=0777,uid=500,gid=124,noperm,guest,sec=none
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).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.