michael hankins
2002-May-09 08:51 UTC
[Samba] Problem saving files from XP to Mandrake 8.2/Samba 2.2.3a
Hi. I am having a problem with Samba 2.2.3a running on Mandrake Linux 8.2. I posted this issue to the comp.protocols.smb newsgroup and didn't get a response. I am hoping that someone here can assist me so I can avoid getting rid of my linux server and reinstalling Win2k Server. I setup a shared directory called SHARED in /home/shared. /home is in its own ext3 partition. I setup a group called "shared" that has rwx rights and ownership of this directory. All of my samba users are in this group. I copied about 40gb of mp3 files from a computer running XP Pro to this share without any problems. I then started copying some old documents to the share. At this point I started getting some strage errors. The error is: "Cannot copy <file>: Access Denied. The source file may be in use." At this point the target directory has a 0-byte file with the same name as the file that I was trying to copy. So far I have seen this problem happen when trying to copy files with .txt, .doc, .pdf, and .msi extensions. All have various different file sizes under 3mb. At one point I checked to see what rights were set to these 0-byte files and found that they were different than the other "good" files that were copied over. I don't have with me right now what those rights were (I am at work now and the Linux box is at home), but can find out what it is if it would help to resolve the problem. Here is a copy of my samba.conf: # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2002/04/20 14:03:45 # Global parameters [global] workgroup = AN0MALY server string = Samba Server %v encrypt passwords = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 printcap name = lpstat dns proxy = No wins support = Yes printing = cups [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers. browseable = No [print$] path = /var/lib/samba/printers write list = @adm root [shared] comment = shared stuff path = /home/shared read only = No I have tried some possible fixes that include setting "write list" to the share "shared", and changing some of the "mask" settings so the 0-byte files that are created have the same rights as the "good" files. Neither of these changes did anything to resolve my problem. Thanks in advance for any help that anyone has to offer me. Michael Hankins __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com
Jeremy Allison
2002-May-09 09:37 UTC
[Samba] Problem saving files from XP to Mandrake 8.2/Samba 2.2.3a
On Thu, May 09, 2002 at 08:48:17AM -0700, michael hankins wrote:> Hi. I am having a problem with Samba 2.2.3a running > on Mandrake Linux 8.2. I posted this issue to the > comp.protocols.smb newsgroup and didn't get a > response. I am hoping that someone here can assist > me so I can avoid getting rid of my linux server and > reinstalling Win2k Server. > > I setup a shared directory called SHARED in > /home/shared. /home is in its own ext3 partition. > I setup a group called "shared" that has rwx rights > and ownership of this directory. All of my samba > users > are in this group. > > I copied about 40gb of mp3 files from a computer > running XP Pro to this share without any problems. > I then started copying some old documents to the > share. At this point I started getting some strage > errors. The error is: "Cannot copy <file>: Access > Denied. The source file may be in use." At this point > the target directory has a 0-byte file with the same > name as the file that I was trying to copy.Known bug we fixed for 2.2.4. Please upgrade. Jeremy.