Prev: "Idmap module nss already registered" ???
Next: [Samba] smbclient against win7 server cifs/smb2
From: Andrew Masterson on 15 Jun 2010 18:00 -----Original Message----- From: samba-bounces(a)lists.samba.org [mailto:samba-bounces(a)lists.samba.org] On Behalf Of Allen Chen Sent: Friday, June 11, 2010 2:25 PM To: samba(a)lists.samba.org Subject: [Samba] root postexec issue on both Samba 3.4.5 and 3.0.28 Hi, there I'm using Samba 3.4.5 and 3.0.28 on RHEL 5.2, and I noticed that on both samba servers 'root postexec' script in [netlogon] is executed automatically when logged in for around 11 minutes. This makes me crazy to track when a use is logged out. The man page smb.conf.5 says: " postexec (S) This option specifies a command to be run whenever the service is disconnected. " I don't understand when a user is still logged in, why 'root postexec' script gets called after 11 minutes. though everything still works fine. I used to have Samba 3.0.22 and 'root postexec' script was executed only when users logout. It doesn't matter how long you have logged in. How can I fix this issue? Thanks, Allen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -------------------------- Shot in the dark: your deadtime is causing the service to disconnect and execute the postexec (not that it should, just guessing here). -=Andrew -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
From: John H Terpstra on 15 Jun 2010 18:10 On 06/15/2010 04:50 PM, Andrew Masterson wrote: > > > -----Original Message----- > From: samba-bounces(a)lists.samba.org > [mailto:samba-bounces(a)lists.samba.org] On Behalf Of Allen Chen > Sent: Friday, June 11, 2010 2:25 PM > To: samba(a)lists.samba.org > Subject: [Samba] root postexec issue on both Samba 3.4.5 and 3.0.28 > > Hi, there > > I'm using Samba 3.4.5 and 3.0.28 on RHEL 5.2, and I noticed that on both > > samba servers > 'root postexec' script in [netlogon] is executed automatically when > logged in for around 11 minutes. > This makes me crazy to track when a use is logged out. > The man page smb.conf.5 says: > " postexec (S) > This option specifies a command to be run whenever the > service is disconnected. " > > I don't understand when a user is still logged in, why 'root postexec' > script gets called after 11 minutes. > though everything still works fine. > > I used to have Samba 3.0.22 and 'root postexec' script was executed only > > when users logout. > It doesn't matter how long you have logged in. The postexec script will execute only when the client hangs up the connection. Hanging up of the connection can be considerably delayed after a user logs out. This is a client configuration issue - nothing to do with Samba. Unfortunately, Windows will close idle connections and then re-open them when they are needed. This too is a client behavioral characteristic. Samba does not of its own volition close connections like that. > How can I fix this issue? Make sure that the Windows client hangs up the connection as soon as the user logs out. I have no idea how you would do this though - perhaps a search of the Microsoft knowledge-base may turn up a useful pointer. Cheers, John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
From: Allen Chen on 15 Jun 2010 18:40 John H Terpstra wrote: > On 06/15/2010 04:50 PM, Andrew Masterson wrote: > >> -----Original Message----- >> From: samba-bounces(a)lists.samba.org >> [mailto:samba-bounces(a)lists.samba.org] On Behalf Of Allen Chen >> Sent: Friday, June 11, 2010 2:25 PM >> To: samba(a)lists.samba.org >> Subject: [Samba] root postexec issue on both Samba 3.4.5 and 3.0.28 >> >> Hi, there >> >> I'm using Samba 3.4.5 and 3.0.28 on RHEL 5.2, and I noticed that on both >> >> samba servers >> 'root postexec' script in [netlogon] is executed automatically when >> logged in for around 11 minutes. >> This makes me crazy to track when a use is logged out. >> The man page smb.conf.5 says: >> " postexec (S) >> This option specifies a command to be run whenever the >> service is disconnected. " >> >> I don't understand when a user is still logged in, why 'root postexec' >> script gets called after 11 minutes. >> though everything still works fine. >> >> I used to have Samba 3.0.22 and 'root postexec' script was executed only >> >> when users logout. >> It doesn't matter how long you have logged in. >> > > The postexec script will execute only when the client hangs up the > connection. Hanging up of the connection can be considerably delayed > after a user logs out. This is a client configuration issue - nothing to > do with Samba. > the user is still working on the XP machine! > Unfortunately, Windows will close idle connections and then re-open them > when they are needed. This too is a client behavioral characteristic. > Samba does not of its own volition close connections like that. > > >> How can I fix this issue? >> > > Make sure that the Windows client hangs up the connection as soon as the > user logs out. I have no idea how you would do this though - perhaps a > search of the Microsoft knowledge-base may turn up a useful pointer. > > Cheers, > John T. > Thank you John for the reply. I fixed it by myself: I just move 'root postexec' option from [netlogon] to [homes], (everybody has a home directory) and just leave 'root preexec' option in [netlogon]. I don't understand why [netlogon] service gets disconnected after around 11minutes on samba 3.4.5 and 3.0.28. but it doesn't happen on samba 3.0.22. Thanks, Allen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
|
Pages: 1 Prev: "Idmap module nss already registered" ??? Next: [Samba] smbclient against win7 server cifs/smb2 |