I'm running FreeBSD 5.4-STABLE with Samba 3.0.20 configured as a PDC
serving a small-ish network (10 XP hosts). My problem concerns roaming
profiles - some XP clients take ages to logon and logoff. On doing some
Googling I identified the 'profile acls' parameter as being a likely
fix. However, I seem to have got myself into one of two scenarios:
a) With 'profile acls' switched on my XP clients logon more-or-less
immediately, but fail to save their roaming profile when logging off.
The samba logs show "request_oplock_break: no response received..."
or
b) With 'profile acls' switched off my XP clients take an age to logon
and logoff, but the profiles are saved OK.
I've spent days trying various permitations, but to no avail. Can
anyone shed any light or ideas for trouble shooting this problem????
My smb.conf is:
[global]
workgroup = BSDBOX
netbios name = SERVER
server string = BSDBox
interfaces = 192.168.200.254
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384
SO_RCVBUF=16384
hosts allow = 192.168.200., 172.16.200., localhost
passdb backend = tdbsam
passwd program = /usr/bin/passwd -l %u
passwd chat = *Password* %n\n *Password* %n\n *Changed*\n
unix password sync = Yes
username map = /usr/local/etc/samba/smbusers
log level = 1
log file = /var/log/samba/%m.log
max log size = 50
printing = cups
printcap name = cups
logon script = netlogon.cmd
logon path = \\%L\profiles\%U
logon drive = Z:
logon home = \\%L\%U
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
remote announce = 172.16.200.255
admin users = root
hide unreadable = Yes
create mask = 0644
add group script = /usr/local/etc/samba/smbgrpadd.sh "%g"
delete group script = /usr/local/etc/samba/smbgrpdel.sh "%g"
# veto oplock files = /*.doc/*.xls/*.mdb/
[profiles]
path = /home/profiles
#valid users = %U, administrator
#force user = %U
read only = No
create mask = 0600
directory mask = 0700
#profile acls = yes
[netlogon]
path = /home/netlogon
write list = root
browseable = No
read only = Yes
# locking = No
[homes]
comment = Home Directories
read only = No
create mask = 0600
directory mask = 0700
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
read only = No
directory mask = 0775
guest ok = Yes
browseable = No
[www]
comment = Web Site
path = /usr/local/www
valid users = masonr
write list = masonr
[ftp]
comment = FTP Site
path = /home/ftp/pub
valid users = masonr
write list = masonr
[backup]
comment = BSDBox backup
path = /usr/local/backup
valid users = masonr
write list = masonr
[albums]
comment = Photography and artwork
path = /usr/local/albums
write list = masonr
guest ok = Yes
[printers]
comment = All Printers
path = /var/spool/samba
#printer admin = root, masonr
guest ok = yes
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /usr/local/share/cups/drivers
write list = root, masonr
guest ok = no
On Sun, 2005-10-16 at 19:58 +0100, Rob Mason wrote:> I'm running FreeBSD 5.4-STABLE with Samba 3.0.20 configured as a PDC > serving a small-ish network (10 XP hosts). My problem concerns roaming > profiles - some XP clients take ages to logon and logoff. On doing some > Googling I identified the 'profile acls' parameter as being a likely > fix. However, I seem to have got myself into one of two scenarios: > > a) With 'profile acls' switched on my XP clients logon more-or-less > immediately, but fail to save their roaming profile when logging off. > The samba logs show "request_oplock_break: no response received..." > > or > > b) With 'profile acls' switched off my XP clients take an age to logon > and logoff, but the profiles are saved OK. > > I've spent days trying various permitations, but to no avail. Can > anyone shed any light or ideas for trouble shooting this problem???? > > > My smb.conf is:> > [profiles] > path = /home/profiles > #valid users = %U, administrator > #force user = %U > read only = No > create mask = 0600 > directory mask = 0700 > #profile acls = yes---- this works for me... [Profiles] path = /home/samba/profiles browseable = no guest ok = no writeable = yes create mask = 600 directory mask = 700 profile acls = yes csc policy = disable # ls -ld /home/samba/profiles/ drwxrwx--- 6 root dom_users 4096 Aug 22 16:58 /home/samba/profiles/ (make sure that your /home/profiles is set with proper permissions too. Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On Sun, Oct 16, 2005 at 01:21:37PM -0700, Jeremy Allison wrote:> On Sun, Oct 16, 2005 at 09:22:23PM +0100, Rob Mason wrote: > > > > I have chowned and chmoded the files in the directories to reflect the > > correct permissions folloiwng the copy from /home/profiles. My samba > > logs now give me: > > > > [2005/10/16 21:04:50, 0] smbd/oplock.c:oplock_break(866) > > oplock_break: receive_smb timed out after 30 seconds. > > oplock_break failed for file masonr/prf62A.tmp (dev = 417, inode > > 1271829, file_id = 146). > > [2005/10/16 21:04:50, 0] smbd/oplock.c:oplock_break(943) > > oplock_break: client failure in oplock break in file masonr/prf62A.tmp > > [2005/10/16 21:04:54, 1] smbd/service.c:close_cnum(835) > > rob (192.168.200.10) closed connection to service profiles > > > > Roaming profile still fails to update :-( > > You have network problems. Fix those first. > > Jeremy.Hi Jeremy, Thanks. This was one of the first things I went for a few days ago, but am unable to see any connectivity or name resolution problems on my LAN??? All the boxes are able to ping each other, and my admin station is able to work with shared printers and files without any probs (not using roaming profiles)... Is the oplock problem definitely indicative of network failure??? Rgds Rob Outgoing mail scanned by the ClamAV opensource Anti-Virus scanner.
On Sun, Oct 16, 2005 at 01:21:37PM -0700, Jeremy Allison wrote:> On Sun, Oct 16, 2005 at 09:22:23PM +0100, Rob Mason wrote: > > > > I have chowned and chmoded the files in the directories to reflect the > > correct permissions folloiwng the copy from /home/profiles. My samba > > logs now give me: > > > > [2005/10/16 21:04:50, 0] smbd/oplock.c:oplock_break(866) > > oplock_break: receive_smb timed out after 30 seconds. > > oplock_break failed for file masonr/prf62A.tmp (dev = 417, inode > > 1271829, file_id = 146). > > [2005/10/16 21:04:50, 0] smbd/oplock.c:oplock_break(943) > > oplock_break: client failure in oplock break in file masonr/prf62A.tmp > > [2005/10/16 21:04:54, 1] smbd/service.c:close_cnum(835) > > rob (192.168.200.10) closed connection to service profiles > > > > Roaming profile still fails to update :-( > > You have network problems. Fix those first. > > Jeremy.Hi Jeremy, Thanks. This was one of the first things I went for a few days ago, but am unable to see any connectivity or name resolution problems on my LAN??? All the boxes are able to ping each other, and my admin station is able to work with shared printers and files without any probs (not using roaming profiles)... Is the oplock problem definitely indicative of network failure??? Rgds Rob
On Sun, Oct 16, 2005 at 09:37:25PM +0100, Rob Mason wrote:> Thanks. This was one of the first things I went for a few days ago, but > am unable to see any connectivity or name resolution problems on my > LAN??? > > All the boxes are able to ping each other, and my admin station is able > to work with shared printers and files without any probs (not using > roaming profiles)... > > Is the oplock problem definitely indicative of network failure???Yes. Check driver versions on Windows, network cabling and hardware hubs/switches. Jeremy.
installing UPHClean (user profile hive cleanup) also helps. uphclean can be downloaded from Microsoft site (link is provided in Official Samba3 Howto). Cheers, Ilia Chipitsine> I'm running FreeBSD 5.4-STABLE with Samba 3.0.20 configured as a PDC > serving a small-ish network (10 XP hosts). My problem concerns roaming > profiles - some XP clients take ages to logon and logoff. On doing some > Googling I identified the 'profile acls' parameter as being a likely > fix. However, I seem to have got myself into one of two scenarios: > > a) With 'profile acls' switched on my XP clients logon more-or-less > immediately, but fail to save their roaming profile when logging off. > The samba logs show "request_oplock_break: no response received..." > > or > > b) With 'profile acls' switched off my XP clients take an age to logon > and logoff, but the profiles are saved OK. > > I've spent days trying various permitations, but to no avail. Can > anyone shed any light or ideas for trouble shooting this problem???? > > > My smb.conf is: > > [global] > workgroup = BSDBOX > netbios name = SERVER > server string = BSDBox > interfaces = 192.168.200.254 > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 > SO_RCVBUF=16384 > hosts allow = 192.168.200., 172.16.200., localhost > > passdb backend = tdbsam > passwd program = /usr/bin/passwd -l %u > passwd chat = *Password* %n\n *Password* %n\n *Changed*\n > unix password sync = Yes > username map = /usr/local/etc/samba/smbusers > > log level = 1 > log file = /var/log/samba/%m.log > max log size = 50 > > printing = cups > printcap name = cups > > logon script = netlogon.cmd > logon path = \\%L\profiles\%U > logon drive = Z: > logon home = \\%L\%U > domain logons = Yes > os level = 65 > preferred master = Yes > domain master = Yes > wins support = Yes > remote announce = 172.16.200.255 > > admin users = root > hide unreadable = Yes > create mask = 0644 > add group script = /usr/local/etc/samba/smbgrpadd.sh "%g" > delete group script = /usr/local/etc/samba/smbgrpdel.sh "%g" > > # veto oplock files = /*.doc/*.xls/*.mdb/ > > [profiles] > path = /home/profiles > #valid users = %U, administrator > #force user = %U > read only = No > create mask = 0600 > directory mask = 0700 > #profile acls = yes > > [netlogon] > path = /home/netlogon > write list = root > browseable = No > read only = Yes > # locking = No > > [homes] > comment = Home Directories > read only = No > create mask = 0600 > directory mask = 0700 > browseable = No > > [tmp] > comment = Temporary file space > path = /tmp > read only = No > directory mask = 0775 > guest ok = Yes > browseable = No > > [www] > comment = Web Site > path = /usr/local/www > valid users = masonr > write list = masonr > > [ftp] > comment = FTP Site > path = /home/ftp/pub > valid users = masonr > write list = masonr > > [backup] > comment = BSDBox backup > path = /usr/local/backup > valid users = masonr > write list = masonr > > [albums] > comment = Photography and artwork > path = /usr/local/albums > write list = masonr > guest ok = Yes > > [printers] > comment = All Printers > path = /var/spool/samba > #printer admin = root, masonr > guest ok = yes > printable = Yes > browseable = No > > [print$] > comment = Printer Drivers > path = /usr/local/share/cups/drivers > write list = root, masonr > guest ok = no > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >