Philippe LAUGET
2006-Sep-02 18:20 UTC
[Samba] Roaming profiles errors and shares not disconnecting
Hi, We are using Samba 3.0.22 on FreeBSD 5.5 PDC with ldap backend and roaming profiles. We meet some difficulties when users logout from some Windows 2000 SP4 clients, and storing their profiles back to the Samba server. The file NTUSER.DAT seems to be uploaded and stored in lowercase, as ntuser.dat. Then, when users try to reopen a win session, they get a corrupted new profile. This new profile is fully broken, since it's not possible to modify any options that affect NTUSER.DAT. When they disconnect, smbstatus shows the user as connected on the machine for a long time ( from 15 minutes to hours ) after he has logged out. The shares that has been mounted on the client do not seem to be disconnected. Here is the output of smbstatus for user test 15 minutes afters he has logged out : Samba version 3.0.22 PID Username Group Machine ------------------------------------------------------------------- 30017 test wusers pc0507 (10.12.220.73) Service pid machine Connected at ------------------------------------------------------- public 30017 pc0507 Fri Sep 1 10:14:37 2006 public 30017 pc0507 Fri Sep 1 10:14:36 2006 netlogon 30017 pc0507 Fri Sep 1 10:14:35 2006 test 30017 pc0507 Fri Sep 1 10:14:36 2006 profiles 30017 pc0507 Fri Sep 1 10:14:34 2006 IPC$ 30017 pc0507 Fri Sep 1 10:14:38 2006 test 30017 pc0507 Fri Sep 1 10:14:37 2006 No locked files -------------------------------------------------------------------- Here is some relevant part of smb.conf : [global] workgroup = DOMAIN1 netbios name = PDC server string = Samba %v PDC interfaces = lo0, fxp0 security = user encrypt passwords = yes enable privileges = yes username map = /usr/local/etc/smbusers.map log level = 1 log file = /var/log/samba/smb.log max log size = 16384 debug uid = Yes announce version = 5.3 time server = Yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=32768 SO_SNDBUF=32768 load printers = No logon path = \\%L\profiles\%U logon drive = u: logon home = \\%L\%U domain logons = yes os level = 255 preferred master = yes domain master = yes passdb backend = ldapsam:ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap admin dn = cn=samba,ou=Applications,dc=domain1 ldap suffix = dc=domain1 ldap machine suffix = ou=computers ldap user suffix = ou=users ldap group suffix = ou=groups ldap passwd sync = no ldap replication sleep = 30000 ldap ssl = no utmp = yes wins support = yes dns proxy = yes hosts allow = 127.0.0.1/24, 10.12. dos charset = 850 unix charset = ISO8859-15 [homes] read only = No create mask = 0600 directory mask = 0700 browseable = No force user = %U valid users = %S max connections= 8 [netlogon] path = /export/samba/netlogon browseable = no writable = no [profiles] path = /export/samba/profiles read only = No create mask = 0600 directory mask = 0700 browseable = No profile acls = yes csc policy = disable force user = %U [public] path = /export/public browseable = yes read only = no create mask = 0640 directory mask = 0770 force group = wusers valid users = @wadms,@wusers ----------- EOF ---------------- Is there a way to force these shares to close really when users logout ? Thank for your help. -- Philippe
Felipe Augusto van de Wiel
2006-Sep-04 12:06 UTC
[Samba] Roaming profiles errors and shares not disconnecting
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/02/2006 03:00 PM, Philippe LAUGET escreveu:> Hi, > > We are using Samba 3.0.22 on FreeBSD 5.5 PDC with ldap backend and > roaming profiles. > > We meet some difficulties when users logout from some Windows 2000 SP4 > clients, and storing their profiles back to the Samba server. > > The file NTUSER.DAT seems to be uploaded and stored in lowercase, as > ntuser.dat. > Then, when users try to reopen a win session, they get a corrupted new > profile. This new profile is fully broken, since it's not possible to > modify any options that affect NTUSER.DAT.I couldn't find any references for "case" changes in your smb.conf, but I would recommend the [1]Name Mangling section of the smb.conf manpage. You could activate the 'preserv case' parameter for the profiles share. 1.http://us4.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#NAMEMANGLINGSECT> When they disconnect, smbstatus shows the user as connected on the > machine for a long time ( from 15 minutes to hours ) after he has logged > out. The shares that has been mounted on the client do not seem to be > disconnected.If you shut down the machine, this behaviour changes?> Here is the output of smbstatus for user test 15 minutes afters he has > logged out : > > Samba version 3.0.22 > PID Username Group Machine > -------------------------------------------------------------------[... smbstatus output ...]> Here is some relevant part of smb.conf : > [global][... smb.conf ...]> Is there a way to force these shares to close really when users logout ?Hmmm, you can add commands to the postexec, but I'm not quite sure that it will solve the problem. In our network, we have problems with CD servers, sometimes, Win98 does not tell the server that the share is not in use (the user needs to logoff). We solve that with mount timeouts, it is a separeted problem, but has relation to the fact that the MS Windows clients "forgets" to //release// the share. :)> Thank for your help.Kind regards, - -- Felipe Augusto van de Wiel <felipe@paranacidade.org.br> Coordenadoria de Tecnologia da Informa??o (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFE/BaYCj65ZxU4gPQRAtqgAJ9xDTyecGY9PUhygmXAg742UoSQHQCgy2nU jy248D+TtpTn8MQ4B5qGcLE=OlQc -----END PGP SIGNATURE-----
Miguel Da Silva - Servicio de Informát
2006-Sep-04 12:35 UTC
[Samba] Roaming profiles errors and shares not disconnecting
Philippe LAUGET wrote:> Hi, > > We are using Samba 3.0.22 on FreeBSD 5.5 PDC with ldap backend and > roaming profiles. > > We meet some difficulties when users logout from some Windows 2000 SP4 > clients, and storing their profiles back to the Samba server. > > The file NTUSER.DAT seems to be uploaded and stored in lowercase, as > ntuser.dat. > Then, when users try to reopen a win session, they get a corrupted new > profile. This new profile is fully broken, since it's not possible to > modify any options that affect NTUSER.DAT. >I have a similar problem... same Windows version, same Samba version. According to smb.conf man page, the default option to "preserve case" is "yes". Some times the problem is even more anoying, an user logs in in an Windows station, do whatever he/she wants and logs off. Everything seems go fine, but then when the user logs in again he/she can't, for example, print anymore. I think the biggest problem is that people look at me and say "Why I can not print? I've just printed 2 minutes ago". The "solution"? Erase the old profile and create a new one, but... I have to configure everything again (mail client, browser, back-up the files, etc, etc). I thought once it could be an Ethernet problem (I mean, a physical network problem), but it's not :( Any hints? -- Miguel Da Silva. Servicio de Informatica. Facultad de Ciencias.