Samba share for work timesheets











up vote
2
down vote

favorite












So I am currently using Samba as a timesheet service for the employees to write their work hours.



I have a share called "timesheets" that is accessible to all users that are part of the "timesheet" group. In this share, there are folders with names of all the employees. Inside the folders are each employee's excel file.



What I am trying to accomplish is to have everyone access their own folder/timesheet, but not those of others. Except for administration, who should have access to everyones folder for payroll.



The permission for each folder is set to the user to whom it belongs, and the group of that folder is set to "timesheetmgmt". Administration (timesheetmgmt group) can now access all folders, and regular employees (timesheet group) cannot access folders other than their own.



Everything works except when users overwrite their timesheet file, it resets the permissions and changes the group to the owner (ex: employee1:timesheetmgmt becomes employee1:employee1 when they update their file). This is problematic as administration cannot access the files anymore.



I decided to use samba because workstations are both windows and mac at my workplace.



What am I doing wrong? Is samba the right tool for this purpose?



[timesheets]
comment = Samba Share for Timesheets
path = /data/timesheets
browseable = yes
guest ok = no
read only = no
writeable = yes
valid users = @timesheets
create mode = 770
create mask = 770
directory mode = 770
locking = no
strict locking = no
vfs objects = fruit streams_xattr
fruit:aapl = yes
fruit:encoding = native
fruit:locking = none
fruit:metadata = stream
fruit:resource = file









share|improve this question









New contributor




Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    2
    down vote

    favorite












    So I am currently using Samba as a timesheet service for the employees to write their work hours.



    I have a share called "timesheets" that is accessible to all users that are part of the "timesheet" group. In this share, there are folders with names of all the employees. Inside the folders are each employee's excel file.



    What I am trying to accomplish is to have everyone access their own folder/timesheet, but not those of others. Except for administration, who should have access to everyones folder for payroll.



    The permission for each folder is set to the user to whom it belongs, and the group of that folder is set to "timesheetmgmt". Administration (timesheetmgmt group) can now access all folders, and regular employees (timesheet group) cannot access folders other than their own.



    Everything works except when users overwrite their timesheet file, it resets the permissions and changes the group to the owner (ex: employee1:timesheetmgmt becomes employee1:employee1 when they update their file). This is problematic as administration cannot access the files anymore.



    I decided to use samba because workstations are both windows and mac at my workplace.



    What am I doing wrong? Is samba the right tool for this purpose?



    [timesheets]
    comment = Samba Share for Timesheets
    path = /data/timesheets
    browseable = yes
    guest ok = no
    read only = no
    writeable = yes
    valid users = @timesheets
    create mode = 770
    create mask = 770
    directory mode = 770
    locking = no
    strict locking = no
    vfs objects = fruit streams_xattr
    fruit:aapl = yes
    fruit:encoding = native
    fruit:locking = none
    fruit:metadata = stream
    fruit:resource = file









    share|improve this question









    New contributor




    Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      So I am currently using Samba as a timesheet service for the employees to write their work hours.



      I have a share called "timesheets" that is accessible to all users that are part of the "timesheet" group. In this share, there are folders with names of all the employees. Inside the folders are each employee's excel file.



      What I am trying to accomplish is to have everyone access their own folder/timesheet, but not those of others. Except for administration, who should have access to everyones folder for payroll.



      The permission for each folder is set to the user to whom it belongs, and the group of that folder is set to "timesheetmgmt". Administration (timesheetmgmt group) can now access all folders, and regular employees (timesheet group) cannot access folders other than their own.



      Everything works except when users overwrite their timesheet file, it resets the permissions and changes the group to the owner (ex: employee1:timesheetmgmt becomes employee1:employee1 when they update their file). This is problematic as administration cannot access the files anymore.



      I decided to use samba because workstations are both windows and mac at my workplace.



      What am I doing wrong? Is samba the right tool for this purpose?



      [timesheets]
      comment = Samba Share for Timesheets
      path = /data/timesheets
      browseable = yes
      guest ok = no
      read only = no
      writeable = yes
      valid users = @timesheets
      create mode = 770
      create mask = 770
      directory mode = 770
      locking = no
      strict locking = no
      vfs objects = fruit streams_xattr
      fruit:aapl = yes
      fruit:encoding = native
      fruit:locking = none
      fruit:metadata = stream
      fruit:resource = file









      share|improve this question









      New contributor




      Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      So I am currently using Samba as a timesheet service for the employees to write their work hours.



      I have a share called "timesheets" that is accessible to all users that are part of the "timesheet" group. In this share, there are folders with names of all the employees. Inside the folders are each employee's excel file.



      What I am trying to accomplish is to have everyone access their own folder/timesheet, but not those of others. Except for administration, who should have access to everyones folder for payroll.



      The permission for each folder is set to the user to whom it belongs, and the group of that folder is set to "timesheetmgmt". Administration (timesheetmgmt group) can now access all folders, and regular employees (timesheet group) cannot access folders other than their own.



      Everything works except when users overwrite their timesheet file, it resets the permissions and changes the group to the owner (ex: employee1:timesheetmgmt becomes employee1:employee1 when they update their file). This is problematic as administration cannot access the files anymore.



      I decided to use samba because workstations are both windows and mac at my workplace.



      What am I doing wrong? Is samba the right tool for this purpose?



      [timesheets]
      comment = Samba Share for Timesheets
      path = /data/timesheets
      browseable = yes
      guest ok = no
      read only = no
      writeable = yes
      valid users = @timesheets
      create mode = 770
      create mask = 770
      directory mode = 770
      locking = no
      strict locking = no
      vfs objects = fruit streams_xattr
      fruit:aapl = yes
      fruit:encoding = native
      fruit:locking = none
      fruit:metadata = stream
      fruit:resource = file






      networking server permissions samba file-sharing






      share|improve this question









      New contributor




      Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 12 hours ago









      Arronical

      12.8k84689




      12.8k84689






      New contributor




      Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 12 hours ago









      Roberto Viglione

      112




      112




      New contributor




      Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Roberto Viglione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          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',
          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
          });


          }
          });






          Roberto Viglione is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092279%2fsamba-share-for-work-timesheets%23new-answer', 'question_page');
          }
          );

          Post as a guest





































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Roberto Viglione is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          Roberto Viglione is a new contributor. Be nice, and check out our Code of Conduct.













          Roberto Viglione is a new contributor. Be nice, and check out our Code of Conduct.












          Roberto Viglione is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092279%2fsamba-share-for-work-timesheets%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?