No subject


Mon Dec 1 11:34:25 GMT 2003


[2001/11/07 11:37:14, 3] smbd/sec_ctx.c:set_sec_ctx(320)  setting sec ctx 
(0, 0) - sec_ctx_stack_ndx = 0[2001/11/07 11:37:14, 5] 
smbd/uid.c:unbecome_user(215)  unbecome_user now uid=(0,0) 
gid=(0,0)[2001/11/07 11:37:14, 6] 
param/loadparm.c:lp_file_list_changed(2203)  lp_file_list_changed()  file 
/usr/local/samba/lib/smb.conf -> /usr/local/samba/lib/smb.conf  last 
mod_time: Wed Nov  7 11:27:15 2001  [2001/11/07 11:37:23, 6] 
smbd/process.c:process_smb(859)  got message type 0x0 of len 
0x5f[2001/11/07 11:37:23, 3] smbd/process.c:process_smb(860)  Transaction 
1139 of length 99[2001/11/07 11:37:23, 5] lib/util.c:show_msg(273) size=95 
 smb_com=0x25  smb_rcls=0  smb_reh=0  smb_err=0  smb_flg=0 
smb_flg2=0[2001/11/07 11:37:23, 5] lib/util.c:show_msg(281)  smb_tid=1 
smb_pid=6333  smb_uid=100  smb_mid=12673  smt_wct=14[2001/11/07 11:37:23, 
5] lib/util.c:show_msg(290)  smb_vwv[0]=19 (0x13)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[1]=0 (0x0)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[2]=8 (0x8)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[3]=4096 (0x1000)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[4]=0 (0x0)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[5]=0 (0x0)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[6]=5000 (0x1388)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[7]=0 (0x0)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[8]=0 (0x0)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[9]=19 (0x13)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[10]=76 (0x4C)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[11]=0 (0x0)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[12]=0 (0x0)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(290)  smb_vwv[13]=0 (0x0)[2001/11/07 11:37:23, 5] 
lib/util.c:show_msg(296)  smb_bcc=32[2001/11/07 11:37:23, 3] 
smbd/process.c:switch_message(667)  switch message SMBtrans (pid 
1804)[2001/11/07 11:37:23, 3] smbd/sec_ctx.c:set_sec_ctx(320)  setting sec 
ctx (501, 501) - sec_ctx_stack_ndx = 0[2001/11/07 11:37:23, 3] 
smbd/sec_ctx.c:set_sec_ctx(326)  1 user groups:   501 [2001/11/07 
11:37:23, 5] smbd/uid.c:become_user(201)  become_user uid=(0,501) 
gid=(0,501)


--=_alternative 002BC3EF48256AFD_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">Hi, </font>
<br>
<br><font size=2 face="sans-serif">Just downloaded the latest SAMBA, and (after a couple of &quot;learning experiences&quot; :-) it is sorta working on my home network. &nbsp;A laptop with win95, and a server with RedHat 7.1 (Intel).</font>
<br>
<br><font size=2 face="sans-serif">But there's this one little &nbsp;problem, the GID for a recognised user is being set to an unknown group. &nbsp;It looks like the GID is being set to be equal to the UID, or it is being set to the user's *original* GID (which samba has cached away somewhere). &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">My user (pbabern) tries to access a share on the samba server- pbabern can read/write OK in a directory which is owned by pbabern, but cannot write in a directory that is *not* owned by pbabern, even though UNIX group permissions let pbabern write when I try the same write operation from the UNIX shell.</font>
<br><font size=2 face="sans-serif">This is the situation:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; - directory /mnt/d is owned by uid=indulis, gid=user, has rwxrwxr-x permissions</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; - user pbabern has primary group=user, but as a samba user cannot create anything in directory /mnt/d (permissions error), but *can* create a file in a directory owned by pbabern (but the file has the wrong gid).</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; - user pbabern originally had a primary gid=501, but I deleted the group and made a new group 502 (user), and made this pbabern's primary group</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; - when samba client pbabern creates a file in a directory where pbabern is the owner, the gid is set to 501 (=uid=original primary group)</font>
<br>
<br><font size=2 face="sans-serif">I have smbd and nmbd both started from xinetd.conf, and refreshed xinetd after each change (just to be sure).</font>
<br>
<br><font size=2 face="sans-serif">Is this a bug, or am I missing something? Does samba look anywhere outside of /etc/passwd and /etc/group to figure out what GID should be set for a specific UID? &nbsp;Was GID=501 stored away somewhere inside samba the first time user pbabern accessed the share?</font>
<br>
<br><font size=2 face="sans-serif">I have enclosed the relevant bits of traces etc below, where the trace shows smbd setting the gid to an invalid value of 501. &nbsp;Other configuration stuff too...</font>
<br>
<br><font size=2 face="sans-serif">Thanks!<br>
</font>
<br><font size=2 face="sans-serif">Indulis<br>
<br>
======================snip snip snip ============================</font>
<br><font size=2 face="sans-serif">... the output of ls showing a file &quot;touched&quot; by samba user pbabern (New Folder), and a file &quot;touched&quot; by</font>
<br><font size=2 face="sans-serif">pbabern as a UNIX user (unix_touch). &nbsp;where did gid=501 come from?!?!... it does not exist on my system-</font>
<br><font size=2 face="sans-serif">&nbsp;see /etc/group below taken at the same time as the problem!</font>
<br>
<br><font size=2 face="sans-serif">total 3<br>
drwxr-xr-x &nbsp; &nbsp;2 pbabern &nbsp;501 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1024 Nov &nbsp;4 18:05 Desktop<br>
drwxr-xr-x &nbsp; &nbsp;2 pbabern &nbsp;501 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1024 Nov &nbsp;7 11:34 New Folder<br>
drwxr-xr-x &nbsp; &nbsp;2 pbabern &nbsp;user &nbsp; &nbsp; &nbsp; &nbsp; 1024 Nov &nbsp;7 11:40 smb_prob<br>
-rw-r--r-- &nbsp; &nbsp;1 pbabern &nbsp;user &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 Nov &nbsp;7 11:42 unix_touch</font>
<br>
<br><font size=2 face="sans-serif">======================snip snip snip ============================</font>
<br><font size=2 face="sans-serif">/etc/group</font>
<br>
<br><font size=2 face="sans-serif">root:x:0:root<br>
bin:x:1:root,bin,daemon<br>
daemon:x:2:root,bin,daemon<br>
sys:x:3:root,bin,adm<br>
adm:x:4:root,adm,daemon<br>
tty:x:5:<br>
disk:x:6:root<br>
lp:x:7:daemon,lp<br>
mem:x:8:<br>
kmem:x:9:<br>
wheel:x:10:root<br>
mail:x:12:mail<br>
news:x:13:news<br>
uucp:x:14:uucp<br>
man:x:15:<br>
games:x:20:<br>
gopher:x:30:<br>
dip:x:40:<br>
ftp:x:50:<br>
nobody:x:99:<br>
users:x:100:<br>
floppy:x:19:<br>
nscd:x:28:<br>
slocate:x:21:<br>
utmp:x:22:<br>
mailnull:x:47:<br>
ident:x:98:<br>
rpc:x:32:<br>
rpcuser:x:29:<br>
xfs:x:43:<br>
gdm:x:42:<br>
postgres:x:26:<br>
apache:x:48:<br>
named:x:25:<br>
indulis:x:500:<br>
user:x:502:indulis,pbabern</font>
<br><font size=2 face="sans-serif">======================snip snip snip ============================</font>
<br><font size=2 face="sans-serif">/etc/passwd</font>
<br>
<br><font size=2 face="sans-serif">root:x:0:0:root:/root:/bin/bash<br>
bin:x:1:1:bin:/bin:<br>
daemon:x:2:2:daemon:/sbin:<br>
adm:x:3:4:adm:/var/adm:<br>
lp:x:4:7:lp:/var/spool/lpd:<br>
sync:x:5:0:sync:/sbin:/bin/sync<br>
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown<br>
halt:x:7:0:halt:/sbin:/sbin/halt<br>
mail:x:8:12:mail:/var/spool/mail:<br>
news:x:9:13:news:/var/spool/news:<br>
uucp:x:10:14:uucp:/var/spool/uucp:<br>
operator:x:11:0:operator:/root:<br>
games:x:12:100:games:/usr/games:<br>
gopher:x:13:30:gopher:/usr/lib/gopher-data:<br>
ftp:x:14:50:FTP User:/var/ftp:<br>
nobody:x:99:99:Nobody:/:<br>
nscd:x:28:28:NSCD Daemon:/:/bin/false<br>
mailnull:x:47:47::/var/spool/mqueue:/dev/null<br>
ident:x:98:98:pident user:/:/bin/false<br>
rpc:x:32:32:Portmapper RPC user:/:/bin/false<br>
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/bin/false<br>
xfs:x:43:43:X Font Server:/etc/X11/fs:/bin/false<br>
gdm:x:42:42::/home/gdm:/bin/bash<br>
postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash<br>
apache:x:48:48:Apache:/var/www:/bin/false<br>
named:x:25:25:Named:/var/named:/bin/false<br>
indulis:x:500:500:Indulis Bernsteins:/home/indulis:/bin/bash<br>
pbabern:x:501:502::/home/pbabern:/bin/bash</font>
<br><font size=2 face="sans-serif">======================snip snip snip ============================</font>
<br><font size=2 face="sans-serif">My very thick smb.conf file.</font>
<br>
<br><font size=2 face="sans-serif"># Samba config file created using SWAT<br>
# from batfink.21Chouse.com (127.0.0.1)<br>
# Date: 2001/11/07 10:35:45</font>
<br>
<br><font size=2 face="sans-serif"># Global parameters<br>
[global]<br>
 &nbsp; &nbsp; &nbsp; &nbsp;workgroup = TEST<br>
 &nbsp; &nbsp; &nbsp; &nbsp;log level = 6</font>
<br>
<br><font size=2 face="sans-serif">[pbabern]<br>
 &nbsp; &nbsp; &nbsp; &nbsp;comment = %U home directory<br>
 &nbsp; &nbsp; &nbsp; &nbsp;writeable = yes<br>
 &nbsp; &nbsp; &nbsp; &nbsp;valid users = pbabern<br>
 &nbsp; &nbsp; &nbsp; &nbsp;path = %H</font>
<br>
<br><font size=2 face="sans-serif">[d]<br>
 &nbsp; &nbsp; &nbsp; &nbsp;comment = batfink D drive<br>
 &nbsp; &nbsp; &nbsp; &nbsp;valid users = pbabern<br>
 &nbsp; &nbsp; &nbsp; &nbsp;writeable = yes<br>
 &nbsp; &nbsp; &nbsp; &nbsp;path = /mnt/d<br>
 &nbsp; &nbsp; &nbsp; &nbsp;read only = No</font>
<br>
<br><font size=2 face="sans-serif">[e]<br>
 &nbsp; &nbsp; &nbsp; &nbsp;comment = batfink E drive<br>
 &nbsp; &nbsp; &nbsp; &nbsp;writeable = yes<br>
 &nbsp; &nbsp; &nbsp; &nbsp;path = /mnt/e<br>
 &nbsp; &nbsp; &nbsp; &nbsp;read only = No</font>
<br>
<br><font size=2 face="sans-serif">[f]<br>
 &nbsp; &nbsp; &nbsp; &nbsp;comment = batfink F drive<br>
 &nbsp; &nbsp; &nbsp; &nbsp;writeable = yes<br>
 &nbsp; &nbsp; &nbsp; &nbsp;path = /mnt/f<br>
 &nbsp; &nbsp; &nbsp; &nbsp;read only = No</font>
<br>
<br><font size=2 face="sans-serif">======================snip snip snip ============================</font>
<br><font size=2 face="sans-serif">From the samba log file, note that gid gets set to 501!!!</font>
<br>
<br><font size=2 face="Courier New">[2001/11/07 11:37:14, 3] smbd/sec_ctx.c:set_sec_ctx(320) &nbsp;setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0[2001/11/07 11:37:14, 5] smbd/uid.c:unbecome_user(215) &nbsp;unbecome_user now uid=(0,0) gid=(0,0)[2001/11/07 11:37:14, 6] param/loadparm.c:lp_file_list_changed(2203) &nbsp;lp_file_list_changed() &nbsp;file /usr/local/samba/lib/smb.conf -&gt; /usr/local/samba/lib/smb.conf &nbsp;last mod_time: Wed Nov &nbsp;7 11:27:15 2001 &nbsp;[2001/11/07 11:37:23, 6] smbd/process.c:process_smb(859) &nbsp;got message type 0x0 of len 0x5f[2001/11/07 11:37:23, 3] smbd/process.c:process_smb(860) &nbsp;Transaction 1139 of length 99[2001/11/07 11:37:23, 5] lib/util.c:show_msg(273) &nbsp;size=95 &nbsp;smb_com=0x25 &nbsp;smb_rcls=0 &nbsp;smb_reh=0 &nbsp;smb_err=0 &nbsp;smb_flg=0 &nbsp;smb_flg2=0[2001/11/07 11:37:23, 5] lib/util.c:show_msg(281) &nbsp;smb_tid=1 &nbsp;smb_pid=6333 &nbsp;smb_uid=100 &nbsp;smb_mid=12673 &nbsp;smt_wct=14[2001/11/07 11:37:23, 5]!
 lib/util.c:show_msg(290) &nbsp;smb_vwv[0]=19 (0x13)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[1]=0 (0x0)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[2]=8 (0x8)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[3]=4096 (0x1000)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[4]=0 (0x0)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[5]=0 (0x0)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[6]=5000 (0x1388)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[7]=0 (0x0)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[8]=0 (0x0)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[9]=19 (0x13)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[10]=76 (0x4C)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[11]=0 (0x0)[2001/11/07 11:37:23, 5] lib/util.c:show_msg(290) &nbsp;smb_vwv[12]=0 (0x0)[2001/11/07 11:37:23, 5] lib/u!
til.c:show_msg(290) &nbsp;smb_vwv[13]=0 (0x0)[2001/11/07 11:3!
7:23, 5] lib/util.c:show_msg(296) &nbsp;smb_bcc=32[2001/11/07 11:37:23, 3] smbd/process.c:switch_message(667) &nbsp;switch message SMBtrans (pid 1804)[2001/11/07 11:37:23, 3] smbd/sec_ctx.c:set_sec_ctx(320) &nbsp;setting sec ctx (501, 501) - sec_ctx_stack_ndx = 0[2001/11/07 11:37:23, 3] smbd/sec_ctx.c:set_sec_ctx(326) &nbsp;1 user groups: &nbsp; 501 [2001/11/07 11:37:23, 5] smbd/uid.c:become_user(201) &nbsp;become_user uid=(0,501) gid=(0,501)</font>
<br>
<br>
--=_alternative 002BC3EF48256AFD_=--




More information about the samba mailing list