Hi all, One week ago I set-up an new server using RH 7.2 and Samba 2.2.0. Everything seems to be working just fine except for one major problem, describe in the following to example: 1. I have a /tmp folder which all users have full access to. I filled this folder with documents from their old server (Windows 2000 Server). All documents can be opened and saved fine with one exception. If, for instance, a Word document is opened and then saved using Save As the files becomes corrupt in someway and can not be opened. They get the error message as follows: Microsoft Word The document name or path is not valid. Try these suggestions. * Check the file permissions for the document or drive. * Use the File Open dialog box to locate the document. (C:\...\Bla Bla Bla...) The exact same thing happens whenever someone attaches a document to a mail located in their own or the tmp folder. I have copied the smb.conf file below with some obvious changes like IP's and so on. Please take a look at it and see if there is something obvious that I am missing here. Thanks a LOT in advance P ----smb.conf file begins here---- [global] workgroup = ringo_starr server string = Mumbojumbo encrypt passwords = True update encrypted = Yes security = user smb passwd file = /etc/samba/smbpasswd log file = /var/log/samba/%m.log max log size = 0 socket options = IPTOS_LOWDELAY TCP_NODELAY deadtime = 15 getwd cache = Yes lpq cache time = 45 domain master = No local master = No preferred master = No os level = 1 dns proxy = No wins server = 10.0.1.10 name resolve order = wins host bcast hosts deny = ALL hosts allow = debug level = 1 create mask = 0777 directory mask = 0777 oplocks = True level2 oplocks = True read raw = No write cache size = 262144 [lisa] path = /home/lisa browseable = No read only = No valid users = lisa inherit permissions = Yes invalid users = root bin daemon sync nobody sys tty disk mem kmem [tmp] comment = Temporary File Space path = /home/tmp read only = No browseable = Yes valid users = @hoppsan, @runka, @somegroup inherit permissions = Yes invalid users = root bin daemon sync nobody sys tty disk mem kmem ----smb.conf file ends here---- --- Petter T. Olsson System Specialist Cornell University Veterinary College CPPS/DCS Ithaca, NY 14853-6401 (607) 253-3411
At the risk of offering an uniformed opinion, you might try removing oplocks. Joel On Wed, Jan 30, 2002 at 02:24:04PM -0500, Petter T. Olsson wrote:> If, for instance, a Word document is opened and then saved using Save As > the files becomes corrupt in someway and can not be opened. They get > the error message as follows: > > create mask = 0777 > directory mask = 0777 > oplocks = True > level2 oplocks = True > read raw = No > [tmp] > comment = Temporary File Space > path = /home/tmp > read only = No > browseable = Yes > valid users = @hoppsan, @runka, @somegroup
"Petter T. Olsson" wrote:> > Hi all, > > One week ago I set-up an new server using RH 7.2 and Samba > 2.2.0. Everything seems to be working just fine except for one major > problem, describe in the following to example: > > 1. I have a /tmp folder which all users have full access to. I > filled this folder with documents from their old server (Windows 2000 > Server). All documents can be opened and saved fine with one exception. > If, for instance, a Word document is opened and then saved using Save As > the files becomes corrupt in someway and can not be opened.Well there are known issues with the write cache in current versions of Samba - I would suggest either disabling this option, or getting latest 2.2 CVS.> ----smb.conf file begins here---- > [global] > > write cache size = 262144-- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
Avoid placing shares in /tmp, RH has a utility called tmpwatch that deletes all the old files from /tmp. The default satting is to remove all the files older than 10 days. Oliver Petter T. Olsson wrote:>Hi all, > > One week ago I set-up an new server using RH 7.2 and Samba >2.2.0. Everything seems to be working just fine except for one major >problem, describe in the following to example: > > 1. I have a /tmp folder which all users have full access to. I >filled this folder with documents from their old server (Windows 2000 >Server). All documents can be opened and saved fine with one exception. >If, for instance, a Word document is opened and then saved using Save As >the files becomes corrupt in someway and can not be opened. They get >the error message as follows: > > Microsoft Word > The document name or path is not valid. Try these suggestions. > * Check the file permissions for the document or drive. > * Use the File Open dialog box to locate the document. > (C:\...\Bla Bla Bla...) > > The exact same thing happens whenever someone attaches a >document to a mail located in their own or the tmp folder. > > I have copied the smb.conf file below with some obvious changes >like IP's and so on. Please take a look at it and see if there is >something obvious that I am missing here. > >Thanks a LOT in advance >P > >----smb.conf file begins here---- >[global] > > workgroup = ringo_starr > server string = Mumbojumbo > encrypt passwords = True > update encrypted = Yes > security = user > smb passwd file = /etc/samba/smbpasswd > log file = /var/log/samba/%m.log > max log size = 0 > socket options = IPTOS_LOWDELAY TCP_NODELAY > deadtime = 15 > getwd cache = Yes > lpq cache time = 45 > domain master = No > local master = No > preferred master = No > os level = 1 > dns proxy = No > wins server = 10.0.1.10 > name resolve order = wins host bcast > hosts deny = ALL > hosts allow = > debug level = 1 > create mask = 0777 > directory mask = 0777 > oplocks = True > level2 oplocks = True > read raw = No > write cache size = 262144 > >[lisa] > path = /home/lisa > browseable = No > read only = No > valid users = lisa > inherit permissions = Yes > invalid users = root bin daemon sync nobody sys tty disk mem >kmem > >[tmp] > comment = Temporary File Space > path = /home/tmp > read only = No > browseable = Yes > valid users = @hoppsan, @runka, @somegroup > inherit permissions = Yes > invalid users = root bin daemon sync nobody sys tty disk mem >kmem >----smb.conf file ends here---- > >--- >Petter T. Olsson >System Specialist >Cornell University >Veterinary College CPPS/DCS >Ithaca, NY 14853-6401 >(607) 253-3411 >-- Oliver Schulze L. oliver@samera.com.py Asuncion-Paraguay
Thank You for all the suggestions. It turns out that removing the OPLocks did do the trick. Now, if I could only understand why everything would be fine :-) Thanks P -----Original Message----- From: Rashkae [mailto:rashkae@wealthmap.ca] Sent: Wednesday, January 30, 2002 5:09 PM To: Joel Hammer Cc: Petter T. Olsson; samba@lists.samba.org Subject: Re: [Samba] Samba moves in mysterious ways I'm probably the world's biggest anti-oplock for no good reason guy, but in this case, I'd want to make sure that MS-Office of the clients is patched to the latest Service Pack and using the latest Samba 2.2 from CVS (or is 2.2.3 out now?) I believe (though I could be wrong), a variety of quirks like this with office have been corrected between those two changes. On Wed, 30 Jan 2002, Joel Hammer wrote: At the risk of offering an uniformed opinion, you might try removing oplocks. Joel On Wed, Jan 30, 2002 at 02:24:04PM -0500, Petter T. Olsson wrote:> If, for instance, a Word document is opened and then saved using Save > As the files becomes corrupt in someway and can not be opened. They > get the error message as follows: > > create mask = 0777 > directory mask = 0777 > oplocks = True > level2 oplocks = True > read raw = No > [tmp] > comment = Temporary File Space > path = /home/tmp > read only = No > browseable = Yes > valid users = @hoppsan, @runka, @somegroup
Petter, Have you checked the permissions on these files to ensure that is not the problem? I had to do the following with my create mask, force create mode, directory mode, and force directory mode to get this to work for me: [public] path = /home/public force group = everyone writeable = Yes create mask = 0666 force create mode = 0666 directory mask = 0777 force directory mode = 0777 inherit permissions = Yes AE -----Original Message----- From: Petter T. Olsson [mailto:po26@cornell.edu] Sent: Wednesday, January 30, 2002 2:24 PM To: samba@lists.samba.org Subject: [Samba] Samba moves in mysterious ways Hi all, One week ago I set-up an new server using RH 7.2 and Samba 2.2.0. Everything seems to be working just fine except for one major problem, describe in the following to example: 1. I have a /tmp folder which all users have full access to. I filled this folder with documents from their old server (Windows 2000 Server). All documents can be opened and saved fine with one exception. If, for instance, a Word document is opened and then saved using Save As the files becomes corrupt in someway and can not be opened. They get the error message as follows: Microsoft Word The document name or path is not valid. Try these suggestions. * Check the file permissions for the document or drive. * Use the File Open dialog box to locate the document. (C:\...\Bla Bla Bla...) The exact same thing happens whenever someone attaches a document to a mail located in their own or the tmp folder. I have copied the smb.conf file below with some obvious changes like IP's and so on. Please take a look at it and see if there is something obvious that I am missing here. Thanks a LOT in advance P ----smb.conf file begins here---- [global] workgroup = ringo_starr server string = Mumbojumbo encrypt passwords = True update encrypted = Yes security = user smb passwd file = /etc/samba/smbpasswd log file = /var/log/samba/%m.log max log size = 0 socket options = IPTOS_LOWDELAY TCP_NODELAY deadtime = 15 getwd cache = Yes lpq cache time = 45 domain master = No local master = No preferred master = No os level = 1 dns proxy = No wins server = 10.0.1.10 name resolve order = wins host bcast hosts deny = ALL hosts allow = debug level = 1 create mask = 0777 directory mask = 0777 oplocks = True level2 oplocks = True read raw = No write cache size = 262144 [lisa] path = /home/lisa browseable = No read only = No valid users = lisa inherit permissions = Yes invalid users = root bin daemon sync nobody sys tty disk mem kmem [tmp] comment = Temporary File Space path = /home/tmp read only = No browseable = Yes valid users = @hoppsan, @runka, @somegroup inherit permissions = Yes invalid users = root bin daemon sync nobody sys tty disk mem kmem ----smb.conf file ends here---- --- Petter T. Olsson System Specialist Cornell University Veterinary College CPPS/DCS Ithaca, NY 14853-6401 (607) 253-3411 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba