guest access becomes root access (Samba 3.0.0beta)
TAKAHASHI Motonobu
monyo at home.monyo.com
Tue Jun 17 15:48:46 GMT 2003
Hello,
I checked Samba 3.0.0beta1 and found strange behavior around guest
access.
case1: smb.conf is shown here
[global]
security = share
[tmp]
path = /tmp
writeable = yes
guest ok = yes
guest only = yes
case2: smb.conf is shown here
[global]
map to guest = Bad User
[tmp]
path = /tmp
writeable = yes
guest ok = yes
guest only = yes
In which case, there is no smbpasswd file.
If we connect share "tmp", we can write but the owner of created files
is "root" and log.smbd is written:
[2003/06/18 00:43:39, 1] smbd/service.c:make_connection_snum(690)
192.168.230.1 (192.168.230.1) connect to service tmp initially as
user nobody (uid=0, gid=0) (pid 25764)
<-- uid/gid becomes 0! and actually, the owner of a file created in
share "tmp" is root!
(snip)
[2003/06/18 00:43:39, 0] smbd/service.c:make_connection(841)
192.168.230.1 (192.168.230.1) couldn't find service tm
<-- the service name should be "tmp", not "tm".
These are ones of idmap problems?
-----
TAKAHASHI, Motonobu (monyo) monyo at home.monyo.com
http://www.monyo.com/
More information about the samba-technical
mailing list