usershare: insuffisant permissions for anonymous login
Bug #204703 reported by
Sebastien Bacher
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: samba
Trying to connect to an usershare which uses guest_ok=y doesn't work, the samba log has permission failed error, that's likely because the usershare directory access is limited to the sambashare members and the anonymous user is not there
Related branches
description: | updated |
To post a comment you must log in.
To reproduce:
create /var/lib/ samba/usershare s/test:
#VERSION 2 acl=S-1- 1-0:R
path=/tmp/test
comment=
usershare_
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: ACCESS_ DENIED
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.28a]
tree connect failed: NT_STATUS_
The following message is logged:
[2008/03/21 18:44:21, 0] param/loadparm. c:process_ usershare_ file(4606) usershare_ file: stat of /var/lib/ samba/usershare s/test failed. Permission denied
process_
Additional information on the permissions:
$ ls -ld /var/lib/ samba/usershare s/ samba/usershare s/
drwxrwx--T 2 root sambashare 4096 2008-03-21 18:38 /var/lib/
$ ls -ld /var/lib/ samba/usershare s/test samba/usershare s/test
-rw-r----- 1 mathiaz mathiaz 70 2008-03-21 18:38 /var/lib/