Bug 1844 - write list/read list/admin users do not work under "security = SHARE"
write list/read list/admin users do not work under "security = SHARE"
Status: RESOLVED DUPLICATE of bug 1254
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.7
All All
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-28 08:50 UTC by TAKAHASHI Motonobu
Modified: 2005-02-08 20:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TAKAHASHI Motonobu 2004-09-28 08:50:48 UTC
write list/read list/admin users do not work under "security = SHARE".

Setting "security = SHARE" and accessing a share, 
source/smbd/uid.c:change_to_user(187) seems to be always TRUE and 
logged: "change_to_user: Skipping user change - already user". This means the
write list/read list/admin users (evaluated into check_user_ok()) are not 
evaluated.

In the following smb.conf, I cannot write into share01 even if authenticated as 
wshare01. In Samba 2.2.3a, I can write. 

-----
[global]
  dos charset = CP932
  unix charset = eucJP-ms
  display charset = eucJP-ms
  workgroup = SAMBA
  passdb backend = smbpasswd
  security = SHARE
  smbports = 139

  log level = 5

  log file = /usr/local/samba/var/log.share

[share01]
  path = /tmp/guest
  write list = wshare01
  user = rshare01 wshare01
  valid users = rshare01 wshare01
-----
Comment 1 Gerald (Jerry) Carter 2005-02-08 20:58:03 UTC

*** This bug has been marked as a duplicate of 1254 ***