[Pkg-samba-maint] Bug#415002: profiles not uploaded correctly to the Samba server (3.0.24)

Tomasz Chmielewski mangoo at wpkg.org
Thu Mar 15 12:41:22 UTC 2007


Package: samba

Version: 3.0.24-4


Profiles are not uploaded correctly from Windows 2000 SP4 (German 
version) to
the server running Samba 3.0.24, ARM architecture.

When downgraded to 3.0.14a-3sarge4, problem doesn't happen anymore - so 
it looks like it's a regression.

Only files in "SendTo" directory is affected (i.e., C:\Dokumente und
Einstellungen\username\SendTo\) in default user profile (newly created).


By default, this directory contains these files:

3½-Diskette (A).lnk
Desktop (Verknüpfung erstellen).DeskLink
E-Mail-Empfänger.MAPIMail
Eigene Dateien.mydocs

Usually, one file from "SendTo" directory is uploaded correctly, and two 
more
files are created - with the names like prfF4.tmp.
This means, that on a next logon some files are LOST: when user logs on, he
will find files like:

3½-Diskette (A).lnk
prfF4.tmp
prfF5.tmp

in his "SendTo" directory.


Renaming files from "SendTo" directory:

3½-Diskette (A).lnk -> 1.lnk
Desktop (Verknüpfung erstellen).DeskLink -> 2.DeskLink
E-Mail-Empfänger.MAPIMail -> 3.MAPIMail
Eigene Dateien.mydocs -> 4.mydocs

doesn't solve the issue; it still happens.


Other interesting observation is that the issue happens with "log level" 
set to
9 or below. If we set "log level" to 10, it doesn't happen anymore.


Other interesting observation: if we copy "SendTo" to Desktop, these 
files are
uploaded correctly.

Filesystem is mounted with these options:

# mount
/dev/sda2 on / type ext3
(rw,noatime,nodiratime,errors=remount-ro,acl,user_xattr)


This is smb.conf file:

[global]

workgroup = EXAMPLE
netbios name = JK
interfaces = eth0, lo
bind interfaces only = No
passdb backend = ldapsam:ldap://127.0.0.1
#ldap filter = (uid=%u)
username map = /etc/samba/smbusers

#socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192
SO_SNDBUF=8192

hosts allow = 192.168.123. 192.168.111. 127.0.0.1

log level = 3
syslog = 0
log file = /var/log/samba/log.%m
max log size = 5000

smb ports = 139 445

name resolve order = host wins bcast

store dos attributes = Yes

time server = Yes

os level = 65

add user script = /usr/sbin/smbldap-useradd -t 30 -a '%u'
delete user script = /usr/sbin/smbldap-userdel '%u'
add group script = /usr/sbin/smbldap-groupadd -p '%g'
delete group script = /usr/sbin/smbldap-groupdel '%g'
add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
add machine script = /usr/sbin/smbldap-useradd -t 30 -w '%u'

encrypt passwords = true

ldap passwd sync = Yes

# profiles

logon script = scripts\userscript.bat

logon path = \\%L\profiles\%U
logon drive = U:

domain logons = Yes
preferred master = Yes
domain master = Yes
local master = Yes
wins support = Yes

ldap suffix = dc=example,dc=com
ldap machine suffix = ou=Computers
ldap user suffix = ou=Users
ldap group suffix = ou=Groups

ldap idmap suffix = cn=NextFreeUnixId
ldap admin dn = cn=Manager,dc=example,dc=com
ldap replication sleep = 5000
idmap backend = ldap:ldap://127.0.0.1
idmap uid = 10000-20000
idmap gid = 10000-20000
map acl inherit = Yes

# printing
printing = cups
load printers = yes
printer admin = Administrator
printcap name = CUPS
show add printer wizard = Yes

[Shared]
   path = /home/samba/shared
   comment = Shared folder
   browseable = yes
   writeable = yes
   create mask = 1666
   directory mask = 1777
   valid users = unattended, Administrator

[profiles]
   comment = Network Profiles Share
   path = /home/samba/profiles
   read only = no
   store dos attributes = Yes
   create mask = 0600
   directory mask = 0700
   browseable = no
   guest ok = no
   printable = no
   create mask = 0600

[netlogon]
   comment = Network Logon Service
   path = /home/samba/netlogon
   read only = yes
   browseable = no
   acl check permissions = no



Some more info can be found in this thread (titled "roaming profile not
uploaded correctly when logging out for the first time"):

http://lists.samba.org/archive/samba/2007-March/thread.html#130330


Here a bug report on bugzilla.samba.org:

https://bugzilla.samba.org/show_bug.cgi?id=4450




More information about the Pkg-samba-maint mailing list