Preserve Permissions when adding files to a Samba shareI cant get samba to set proper permissions on created...

Why Choose Less Effective Armour Types?

Aluminum electrolytic or ceramic capacitors for linear regulator input and output?

Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

The German vowel “a” changes to the English “i”

Does this sum go infinity?

Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?

Have the tides ever turned twice on any open problem?

Violin - Can double stops be played when the strings are not next to each other?

Knife as defense against stray dogs

Why does overlay work only on the first tcolorbox?

What is a ^ b and (a & b) << 1?

Print a physical multiplication table

Describing a chess game in a novel

How could an airship be repaired midflight?

combinatorics floor summation

I got the following comment from a reputed math journal. What does it mean?

Simplify an interface for flexibly applying rules to periods of time

This word with a lot of past tenses

et qui - how do you really understand that kind of phraseology?

Did Ender ever learn that he killed Stilson and/or Bonzo?

Are ETF trackers fundamentally better than individual stocks?

Is it good practice to use Linear Least-Squares with SMA?

Why is the President allowed to veto a cancellation of emergency powers?

How do I hide Chekhov's Gun?



Preserve Permissions when adding files to a Samba share


I cant get samba to set proper permissions on created directoriesSamba file share permissions issuePermissions with Samba ShareProper samba config/share permissionsFiles shared from OSX over samba lockedUbuntu 16.04 - Mac OS X clients can't edit files from other users on samba sharesamba share giving group permissionsTrouble creating an accessible Samba share on a separate data partitionFile permission sharing with sambaCan't alter permissions for samba share.













0















I asked this over at superuser already but didn't get much input on it.



I have a Mac (El Capitan 10.11.6) client that is connected to an Ubuntu server (18.04 LTS) running Samba, sharing a ZFS pool. Everything works great, except that whenever I add a file to the server, the permissions are changed.



For example, here's foo.txt on the mac:



$ ls -l foo.txt
-rw-r--r-- 1 leetbacoon staff 160 Feb 21 15:37 foo.txt


When it is clicked and dragged to the server, the server copy changes the attributes:



$ ls -l /Volumes/SMB Share/foo.txt
-rwx------ 1 leetbacoon staff 160 Feb 21 15:37 /Volumes/SMB Share/foo.txt*


Copying the file from the server back to my Mac retains those permissions:



$ ls -l ./Copied From Server/foo.txt
-rwx------ 1 leetbacoon staff 160 Feb 21 15:37 ./Copied From Server/foo.txt*


I want to have the file permissions retained when copying to the server, i.e.:



$ ls -l /Volumes/SMB Share/foo.txt
-rw-r--r-- 1 leetbacoon staff 160 Feb 21 15:37 /Volumes/SMB Share/foo.txt


All the ls -l commands were executed on the Mac client.









share



























    0















    I asked this over at superuser already but didn't get much input on it.



    I have a Mac (El Capitan 10.11.6) client that is connected to an Ubuntu server (18.04 LTS) running Samba, sharing a ZFS pool. Everything works great, except that whenever I add a file to the server, the permissions are changed.



    For example, here's foo.txt on the mac:



    $ ls -l foo.txt
    -rw-r--r-- 1 leetbacoon staff 160 Feb 21 15:37 foo.txt


    When it is clicked and dragged to the server, the server copy changes the attributes:



    $ ls -l /Volumes/SMB Share/foo.txt
    -rwx------ 1 leetbacoon staff 160 Feb 21 15:37 /Volumes/SMB Share/foo.txt*


    Copying the file from the server back to my Mac retains those permissions:



    $ ls -l ./Copied From Server/foo.txt
    -rwx------ 1 leetbacoon staff 160 Feb 21 15:37 ./Copied From Server/foo.txt*


    I want to have the file permissions retained when copying to the server, i.e.:



    $ ls -l /Volumes/SMB Share/foo.txt
    -rw-r--r-- 1 leetbacoon staff 160 Feb 21 15:37 /Volumes/SMB Share/foo.txt


    All the ls -l commands were executed on the Mac client.









    share

























      0












      0








      0








      I asked this over at superuser already but didn't get much input on it.



      I have a Mac (El Capitan 10.11.6) client that is connected to an Ubuntu server (18.04 LTS) running Samba, sharing a ZFS pool. Everything works great, except that whenever I add a file to the server, the permissions are changed.



      For example, here's foo.txt on the mac:



      $ ls -l foo.txt
      -rw-r--r-- 1 leetbacoon staff 160 Feb 21 15:37 foo.txt


      When it is clicked and dragged to the server, the server copy changes the attributes:



      $ ls -l /Volumes/SMB Share/foo.txt
      -rwx------ 1 leetbacoon staff 160 Feb 21 15:37 /Volumes/SMB Share/foo.txt*


      Copying the file from the server back to my Mac retains those permissions:



      $ ls -l ./Copied From Server/foo.txt
      -rwx------ 1 leetbacoon staff 160 Feb 21 15:37 ./Copied From Server/foo.txt*


      I want to have the file permissions retained when copying to the server, i.e.:



      $ ls -l /Volumes/SMB Share/foo.txt
      -rw-r--r-- 1 leetbacoon staff 160 Feb 21 15:37 /Volumes/SMB Share/foo.txt


      All the ls -l commands were executed on the Mac client.









      share














      I asked this over at superuser already but didn't get much input on it.



      I have a Mac (El Capitan 10.11.6) client that is connected to an Ubuntu server (18.04 LTS) running Samba, sharing a ZFS pool. Everything works great, except that whenever I add a file to the server, the permissions are changed.



      For example, here's foo.txt on the mac:



      $ ls -l foo.txt
      -rw-r--r-- 1 leetbacoon staff 160 Feb 21 15:37 foo.txt


      When it is clicked and dragged to the server, the server copy changes the attributes:



      $ ls -l /Volumes/SMB Share/foo.txt
      -rwx------ 1 leetbacoon staff 160 Feb 21 15:37 /Volumes/SMB Share/foo.txt*


      Copying the file from the server back to my Mac retains those permissions:



      $ ls -l ./Copied From Server/foo.txt
      -rwx------ 1 leetbacoon staff 160 Feb 21 15:37 ./Copied From Server/foo.txt*


      I want to have the file permissions retained when copying to the server, i.e.:



      $ ls -l /Volumes/SMB Share/foo.txt
      -rw-r--r-- 1 leetbacoon staff 160 Feb 21 15:37 /Volumes/SMB Share/foo.txt


      All the ls -l commands were executed on the Mac client.







      permissions samba mac zfs





      share












      share










      share



      share










      asked 2 mins ago









      leetbacoonleetbacoon

      82117




      82117






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126293%2fpreserve-permissions-when-adding-files-to-a-samba-share%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126293%2fpreserve-permissions-when-adding-files-to-a-samba-share%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...