[Bug 204703] Re: usershare: insuffisant permissions for anonymous login

Mathias Gug mathiaz at ubuntu.com
Fri Mar 21 18:46:39 GMT 2008


To reproduce:

create /var/lib/samba/usershares/test:

  #VERSION 2
  path=/tmp/test
  comment=
  usershare_acl=S-1-1-0:R
  guest_ok=y

smbclient -L //localhost lists test as a share, both in anonymous and
user login.

smbclient //localhost/test works when using an account.

smbclient //localhost/test fails when logging in anonymously:
 Password: 
 Anonymous login successful
 Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.28a]
 tree connect failed: NT_STATUS_ACCESS_DENIED

The following message is logged:

 [2008/03/21 18:44:21, 0] param/loadparm.c:process_usershare_file(4606)
   process_usershare_file: stat of /var/lib/samba/usershares/test failed. Permission denied

Additional information on the permissions:

$ ls -ld /var/lib/samba/usershares/
drwxrwx--T 2 root sambashare 4096 2008-03-21 18:38 /var/lib/samba/usershares/

$ ls -ld /var/lib/samba/usershares/test 
-rw-r----- 1 mathiaz mathiaz 70 2008-03-21 18:38 /var/lib/samba/usershares/test


** Changed in: samba (Ubuntu)
   Importance: Undecided => High
       Status: New => Triaged

-- 
usershare: insuffisant permissions for anonymous login
https://bugs.launchpad.net/bugs/204703
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list