Hello, I have a problem with samba and windows 2000. In the smb.conf I have one part "include = smb.conf.%U" So that for every user samba will process a seperate file. The shares in that file I can see for a moment from the Windows 2000 Client. But after a short time (ca. 60sec)(I press F5 to refresh the shares) this shares from the include file are not longer there. This problem does not exists if I connect a share to the Windows 2000 Client. Then I can use the share for all the time. What can I do??? Thanks Dietrich Heise
I'm just taking a guess here, likely wrong. The question is, what does pushing F5 do to samba? MAYBE, samba is rereading the smb.conf file, and the %U has been changed due to some odd interaction between 2000 and samba, so the include file is not being read properly when you hit F5. Does the error only occur with F5? Don't be shocked by odd things. I just found that in my smb.conf file the parameter: include=smb.conf.public.%a was changed to include=smb.conf.public.UNKNOWN This must be some samba feature I have yet to learn about. I have learned never to update my smb.conf file with SWAT. Your best approach is to up your log level to 3 and pour over the log.smbd file for clues. Or, you might experiment with shares that don't use include files. Joel On Wed, Oct 10, 2001 at 11:16:32AM +0200, Dietrich Heise wrote:> > > Hello, > > I have a problem with samba and windows 2000. > In the smb.conf I have one part "include = smb.conf.%U" > So that for every user samba will process a seperate file. > The shares in that file I can see for a moment from the Windows 2000 Client. > But after a short time (ca. 60sec)(I press F5 to refresh the shares) this shares > from the include > file are not longer there. > This problem does not exists if I connect a share to the Windows 2000 Client.(I don't know what this means, BTW.) Joel> > What can I do??? > > Thanks > Dietrich Heise > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Hi, I think that you don't know what my problem is. Wenn I logged in to the domain on a samba server. For that user, who logged in, there is one special smb.conf.<user> file! In that file I have some shares. here for the user anna (smb.conf.anna): [NOCHEINE] path = /samba/ressourcen/nocheine readonly = no comment [test42] path = /samba/ressourcen/test42 readonly = yes comment [WASWEISSICH] path = /samba/ressourcen/wasweissich readonly = yes comment When user anna logged in. For a short time all works fine. In the "network neighborhood" are all shares availible (e.g. NOCHEINE, test42 and WASWEISSICH) here my smb.conf: [global] workgroup = IMUG netbios name = IMUGDATEN server string = Server %v interfaces = 192.168.128.240/24 encrypt passwords = Yes character set = iso8859-1 min password length = 3 map to guest = Never keepalive = 600 domain logons = Yes os level = 65 preferred master = Yes domain master = Yes unix password sync = no logon drive = U: logon home = \\IMUGDATEN\%U logon path = \\IMUGDATEN\%U\profiles logon script = logon.bat wins support = yes printing = cups log level = 10 security = domain log file = /var/log/samba/log.samba username map = /etc/samba/users.map [TMP] comment = Publicverzeichnis fuer alle MA path = /samba/public writeable = Yes create mask = 0777 directory mask = 0777 include = /etc/samba/smb.conf.%U but after a short time the shares from the smb.conf.anna file are gone, so that you only see one share that is the TMP share. And all the other shares are gone. I hope somone understand what I meen. Dietrich Joel Hammer <Joel@HammersHome.com> on 10.10.2001 12:58:14 To: Dietrich Heise/naw/DE@naw, samba@lists.samba.org cc: Subject: Re: Shares disappear in Windows 2000 (Samba 2.2.1a) I'm just taking a guess here, likely wrong. The question is, what does pushing F5 do to samba? MAYBE, samba is rereading the smb.conf file, and the %U has been changed due to some odd interaction between 2000 and samba, so the include file is not being read properly when you hit F5. Does the error only occur with F5? Don't be shocked by odd things. I just found that in my smb.conf file the parameter: include=smb.conf.public.%a was changed to include=smb.conf.public.UNKNOWN This must be some samba feature I have yet to learn about. I have learned never to update my smb.conf file with SWAT. Your best approach is to up your log level to 3 and pour over the log.smbd file for clues. Or, you might experiment with shares that don't use include files. Joel On Wed, Oct 10, 2001 at 11:16:32AM +0200, Dietrich Heise wrote:> > > Hello, > > I have a problem with samba and windows 2000. > In the smb.conf I have one part "include = smb.conf.%U" > So that for every user samba will process a seperate file. > The shares in that file I can see for a moment from the Windows 2000 Client. > But after a short time (ca. 60sec)(I press F5 to refresh the shares) thisshares> from the include > file are not longer there. > This problem does not exists if I connect a share to the Windows 2000 Client.(I don't know what this means, BTW.) Joel> > What can I do??? > > Thanks > Dietrich Heise > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
MCCALL,DON (HP-USA,ex1)
2001-Oct-10 06:00 UTC
Shares disappear in Windows 2000 (Samba 2.2.1a)
Hi Dietrich, That IS odd. Try this - log on as anna (or whoever this is happening to), and see the shares you expect; immediately go to the unix command prompt and run the smbstatus command; record the processid of the smbd that lists anna's username and machine. Then wait (or press F5, whatever) until the shared go away, and then check 1. that smbstatus still shows the user anna from that machine as a connection 2. that the connection it does show from that machine is to the same PID that it was (maybe you are loosing your connection in the background) Perhaps this will give us some more info as to what's going on... Hope this helps, Don -----Original Message----- From: Joel Hammer [mailto:Joel@HammersHome.com] Sent: Wednesday, October 10, 2001 6:58 AM To: Dietrich Heise; samba@lists.samba.org Subject: Re: Shares disappear in Windows 2000 (Samba 2.2.1a) I'm just taking a guess here, likely wrong. The question is, what does pushing F5 do to samba? MAYBE, samba is rereading the smb.conf file, and the %U has been changed due to some odd interaction between 2000 and samba, so the include file is not being read properly when you hit F5. Does the error only occur with F5? Don't be shocked by odd things. I just found that in my smb.conf file the parameter: include=smb.conf.public.%a was changed to include=smb.conf.public.UNKNOWN This must be some samba feature I have yet to learn about. I have learned never to update my smb.conf file with SWAT. Your best approach is to up your log level to 3 and pour over the log.smbd file for clues. Or, you might experiment with shares that don't use include files. Joel On Wed, Oct 10, 2001 at 11:16:32AM +0200, Dietrich Heise wrote:> > > Hello, > > I have a problem with samba and windows 2000. > In the smb.conf I have one part "include = smb.conf.%U" > So that for every user samba will process a seperate file. > The shares in that file I can see for a moment from the Windows 2000Client.> But after a short time (ca. 60sec)(I press F5 to refresh the shares) thisshares> from the include > file are not longer there. > This problem does not exists if I connect a share to the Windows 2000Client. (I don't know what this means, BTW.) Joel> > What can I do??? > > Thanks > Dietrich Heise > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
I think I know what you mean. The question is, what happens when you hit F5? I would look at your logs and see what samba is doing at this time. I assume that samba is updating the shares in question for the user as the user saves things to them. I am assuming that only when you hit F5 do you see problems. Joel
Hi, The try with smbstatus was not very bad, now I know that Windows 2000 connects with a IPC$ share as nobody:nogroup and an other IPC$ as user:users with the same PID as the user after a short time all IPC$ connection are lost and from that moment on (I think) the dynamicly shared shares are lost. Maybe that someone know what I can do now? In the samba.log file I found an entry: [...] [2001/10/10 15:35:17, 3] smbd/service.c:close_cnum(646) anna (192.168.128.7) closed connection to service IPC$ [2001/10/10 15:35:17, 3] smbd/connection.c:yield_connection(50) Yielding connection to IPC$ [...] What does "Yielding connection" meen? Is it the right way to the answer? Thanks Dietrich>That IS odd. Try this - log on as anna (or whoever this is happening to), >and see the shares you expect; immediately go to the unix command prompt >and run the smbstatus command; record the processid of the smbd that lists >anna's username and machine. >Then wait (or press F5, whatever) until the shared go away, and then check >1. that smbstatus still shows the user anna from that machine as a >connection >2. that the connection it does show from that machine is to the same PID >that > it was (maybe you are loosing your connection in the background) > > >Perhaps this will give us some more info as to what's going on... >Hope this helps, >Don >
MCCALL,DON (HP-USA,ex1)
2001-Oct-10 09:13 UTC
Shares disappear in Windows 2000 (Samba 2.2.1a)
Hi Dietrich, after the IPC$ shares are 'lost' ARE THERE ANY connections that show up in smbstatus with anna as the username? Don -----Original Message----- From: Dietrich Heise [mailto:Dietrich.Heise@net-and-works.de] Sent: Wednesday, October 10, 2001 11:30 AM To: samba@lists.samba.org Subject: RE: Shares disappear in Windows 2000 (Samba 2.2.1a) Hi, The try with smbstatus was not very bad, now I know that Windows 2000 connects with a IPC$ share as nobody:nogroup and an other IPC$ as user:users with the same PID as the user after a short time all IPC$ connection are lost and from that moment on (I think) the dynamicly shared shares are lost. Maybe that someone know what I can do now? In the samba.log file I found an entry: [...] [2001/10/10 15:35:17, 3] smbd/service.c:close_cnum(646) anna (192.168.128.7) closed connection to service IPC$ [2001/10/10 15:35:17, 3] smbd/connection.c:yield_connection(50) Yielding connection to IPC$ [...] What does "Yielding connection" meen? Is it the right way to the answer? Thanks Dietrich>That IS odd. Try this - log on as anna (or whoever this is happening to), >and see the shares you expect; immediately go to the unix command prompt >and run the smbstatus command; record the processid of the smbd that lists >anna's username and machine. >Then wait (or press F5, whatever) until the shared go away, and then check >1. that smbstatus still shows the user anna from that machine as a >connection >2. that the connection it does show from that machine is to the same PID >that > it was (maybe you are loosing your connection in the background) > > >Perhaps this will give us some more info as to what's going on... >Hope this helps, >Don >-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Gerald (Jerry) Carter
2001-Oct-10 13:12 UTC
unknown %a [was Re: Shares disappear in Windows 2000 (Samba 2.2.1a)]
On Wed, 10 Oct 2001, Joel Hammer wrote:> include=smb.conf.public.%a was changed to > include=smb.conf.public.UNKNOWN^^^^^^^ What client os was this from? cheers, jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
Hi,> Hi Dietrich, > after the IPC$ shares are 'lost' ARE THERE ANY connections that > show up in smbstatus with anna as the username? > Donyes, the shares that I made in the smb.conf are always there! Only the shares from smb.conf.%U (for example: smb.conf.anna) disappers. Dietrich
the last log from smbstatus where i can acces and see the shares is this: Samba version 2.2.2-pre Service uid gid pid machine ---------------------------------------------- IPC$ nobody nogroup 27495 anna (192.168.128.7) Thu Oct 11 11:25:41 2001 IPC$ franz Mitarbeiter 27495 anna (192.168.128.7) Thu Oct 11 11:26:07 2001 franz franz Mitarbeiter 27495 anna (192.168.128.7) Thu Oct 11 11:25:44 2001 IPC$ nobody nogroup 27495 anna (192.168.128.7) Thu Oct 11 11:25:43 2001 WASWEISSIC franz Mitarbeiter 27495 anna (192.168.128.7) Thu Oct 11 11:26:10 2001 NETLOGON franz Mitarbeiter 27495 anna (192.168.128.7) Thu Oct 11 11:25:52 2001 gruppe franz Mitarbeiter 27495 anna (192.168.128.7) Thu Oct 11 11:25:57 2001 IPC$ nobody nogroup 27495 anna (192.168.128.7) Thu Oct 11 11:26:14 2001 IPC$ nobody nogroup 27495 anna (192.168.128.7) Thu Oct 11 11:26:02 2001 No locked files on moment later smbstatus gives me the following status: Samba version 2.2.2-pre Service uid gid pid machine ---------------------------------------------- IPC$ franz Mitarbeiter 27495 anna (192.168.128.7) Thu Oct 11 11:26:07 2001 franz franz Mitarbeiter 27495 anna (192.168.128.7) Thu Oct 11 11:25:44 2001 IPC$ nobody nogroup 27495 anna (192.168.128.7) Thu Oct 11 11:25:43 2001 gruppe franz Mitarbeiter 27495 anna (192.168.128.7) Thu Oct 11 11:25:57 2001 IPC$ nobody nogroup 27495 anna (192.168.128.7) Thu Oct 11 11:26:14 2001 IPC$ nobody nogroup 27495 anna (192.168.128.7) Thu Oct 11 11:26:02 2001 No locked files from that moment on all shares disappers that I shared in the smb.conf.anna Who can help me??? Thanks Dietrich Heise