Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Samba: Can't upload files, part of file locked by other process


    I have a really weird problem with my Samba server.
    I've configured a share just fine and I can browse it and all. I can create folders and empty files but when I try to copy a file from my computer to the share it uploads the whole file and then says that a part of the file is locked by another process.. I get the same if I try to edit a text file..

    I can see the file on the server so it's uploaded but when I click cancel it gets removed..
    I've never had this issue before and have no idea how to fix it.
    It's a new server with a fresh Samba install, I just copied the config from my old server. I'm running Debian 6.

    If I check smbstatus I get this for the file I'm trying to upload:

    3042 204 DENY_ALL 0x6019f RDWR NONE /mnt/common/test/opensolaris-default.jpg Tue Jun 5 11:06:03 2012
    This is my config:

            netbios name = LNXSRV1
            workgroup = WORKGROUP
            interfaces = lo, eth1
            passwd program = /usr/bin/passwd %u
            passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
            security = user
            syslog = 1
            log file = /var/log/samba/log.everything
            max log size = 1000
            os level = 0
            preferred master = No
            local master = No
            domain master = No
            dns proxy = No
            wins server =
            panic action = /usr/share/samba/panic-action %d
            invalid users = root
            unix extensions = no
            load printers = no
            share modes = no
            comment = Common Directory
            path = /mnt/common
            browseable = yes
            read only = No
            create mask = 0777
            directory mask = 0777
            force create mode = 0777
            writeable = yes
            guest ok = no
            force user = administrator

    Does anyone know what's wrong here?

  2. #2
    Ok it doesn't seem like it's Samba. The problem is that /mnt/common is a NFS share from another server and that's the problem.. However it worked just fine on my old server (it's dead now) but on this new one it won't work...

  3. #3
    I mounted the share as sshfs instead and it works fine!

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts