No announcement yet.

Permissions problem on samba share

  • Filter
  • Time
  • Show
Clear All
new posts

  • Permissions problem on samba share

    Dear support

    Bc 3.1.11 (Windows)

    I compare 2 files (file1,file2) on network drive (samba, linux)
    After small changes in file2, permissions and owner on linux are changed.
    This is very uncomfortable and result in some problems!
    There are no such effect while editing files by any external editor.
    How can I avoid this?

    Here are some details for you

    original files:
    [email protected] tmp]# ls -la file1 file2
    -rwxrwxrwx 1 online online 147 Dec 2 15:49 file1
    -rwxrwxrwx 1 online online 147 Dec 2 15:49 file2

    After BC change in file2:
    [[email protected] tmp]# ls -la file1 file2
    -rwxrwxrwx 1 online online 147 Dec 2 15:49 file1
    -rw-rw-r-- 1 root root 148 Dec 3 14:12 file2

    From samba traces I can see that you create temp file file2~RF10d0216.TMP with default permissions
    And then move it to file2 (just my suppose)
    This really can result in such behaviour.

  • #2

    Thanks for the report. If you go to the drive in Windows, and view the Properties on it, does it detect as NTFS?
    Aaron P Scooter Software


    • #3
      Hi Aaron
      Sorry for long delay with replay

      Yes - Windows detect samba drives as NTFS Network drive.
      Is there any solution or workaround for this issue?


      • #4
        Run the attached app from a console window with the drive/path as an argument (e.g., "driveinfo X:\") and post the results here. We auto-detect Samba based on how it exposes certain capabilities, and it sounds like it's not working here.
        Zoë P Scooter Software


        • #5
          Here is result

          D:\22>driveinfo X:\
          Drive information for: X:\

          Volume Name: prime
          File System: NTFS
          Serial Number: 01D70408
          Max Name Length: 255
          File System Flags:
          IsSamba: False


          • #6
            Thanks, I've adjusted our Samba detection support to fix this and made it a lot less likely to happen in the future. The change will be in the next release; I'm afraid for now there isn't really a good workaround.
            Zoë P Scooter Software


            • #7
              Dear Craig
              Thank you for your attention.
              Looking forward new release.

              As for current workaround - can you explain how do you detect samba drives? May be we can tune samba parameters on our servers to match your criteria?


              • #8
                It's looking at the filesystem flags exposed, and assuming it's samba if it's missing FILE_FILE_COMPRESSION and FILE_UNICODE_ON_DISK. It appears recent Samba releases added the FILE_UNICODE_ON_DISK flag. A quick search didn't turn anything up, so it's possible it isn't configurable.
                Zoë P Scooter Software