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
networking server permissions samba file-sharing
add a comment |
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
networking server permissions samba file-sharing
add a comment |
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
networking server permissions samba file-sharing
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
networking server permissions samba file-sharing
edited Nov 12 at 17:29
Arronical
12.9k84689
12.9k84689
asked Nov 12 at 17:24
Roberto Viglione
112
112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
To force the created files to belong to a specific group use the paramteter force group.
In your case:
[timesheets]
comment = Samba Share for Timesheets
...
force group = timesheetmgmt
...
In addition, to enforce security, you can add a force create mode or force directory mode to set minimal levels.
I agree with your answer but I think you have the wrong group. You want the forced group to be timesheetmgmt ( force group = timesheetmgmt ). That's the admin group. timesheets is the user group and would result in everyone having access to everyone's time sheets.
– Morbius1
Nov 13 at 19:25
You are right. I had not seen the mention of the management group. I edited my answer accordingly.
– Marc Vanhoomissen
Nov 14 at 8:54
when I force group, all users regain access to everyone else's folder. Is this because of the valid users = timesheets ?
– Roberto Viglione
Nov 14 at 17:03
Which group did you use for the 'force group'?
– Marc Vanhoomissen
Nov 19 at 14:27
I used timesheetmgmt, I think this gives the management permissions to all users in the share, which defeats the purpose of what I am trying to do
– Roberto Viglione
Nov 19 at 15:33
|
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
To force the created files to belong to a specific group use the paramteter force group.
In your case:
[timesheets]
comment = Samba Share for Timesheets
...
force group = timesheetmgmt
...
In addition, to enforce security, you can add a force create mode or force directory mode to set minimal levels.
I agree with your answer but I think you have the wrong group. You want the forced group to be timesheetmgmt ( force group = timesheetmgmt ). That's the admin group. timesheets is the user group and would result in everyone having access to everyone's time sheets.
– Morbius1
Nov 13 at 19:25
You are right. I had not seen the mention of the management group. I edited my answer accordingly.
– Marc Vanhoomissen
Nov 14 at 8:54
when I force group, all users regain access to everyone else's folder. Is this because of the valid users = timesheets ?
– Roberto Viglione
Nov 14 at 17:03
Which group did you use for the 'force group'?
– Marc Vanhoomissen
Nov 19 at 14:27
I used timesheetmgmt, I think this gives the management permissions to all users in the share, which defeats the purpose of what I am trying to do
– Roberto Viglione
Nov 19 at 15:33
|
show 1 more comment
up vote
0
down vote
To force the created files to belong to a specific group use the paramteter force group.
In your case:
[timesheets]
comment = Samba Share for Timesheets
...
force group = timesheetmgmt
...
In addition, to enforce security, you can add a force create mode or force directory mode to set minimal levels.
I agree with your answer but I think you have the wrong group. You want the forced group to be timesheetmgmt ( force group = timesheetmgmt ). That's the admin group. timesheets is the user group and would result in everyone having access to everyone's time sheets.
– Morbius1
Nov 13 at 19:25
You are right. I had not seen the mention of the management group. I edited my answer accordingly.
– Marc Vanhoomissen
Nov 14 at 8:54
when I force group, all users regain access to everyone else's folder. Is this because of the valid users = timesheets ?
– Roberto Viglione
Nov 14 at 17:03
Which group did you use for the 'force group'?
– Marc Vanhoomissen
Nov 19 at 14:27
I used timesheetmgmt, I think this gives the management permissions to all users in the share, which defeats the purpose of what I am trying to do
– Roberto Viglione
Nov 19 at 15:33
|
show 1 more comment
up vote
0
down vote
up vote
0
down vote
To force the created files to belong to a specific group use the paramteter force group.
In your case:
[timesheets]
comment = Samba Share for Timesheets
...
force group = timesheetmgmt
...
In addition, to enforce security, you can add a force create mode or force directory mode to set minimal levels.
To force the created files to belong to a specific group use the paramteter force group.
In your case:
[timesheets]
comment = Samba Share for Timesheets
...
force group = timesheetmgmt
...
In addition, to enforce security, you can add a force create mode or force directory mode to set minimal levels.
edited Nov 22 at 15:36
answered Nov 13 at 15:05
Marc Vanhoomissen
88011119
88011119
I agree with your answer but I think you have the wrong group. You want the forced group to be timesheetmgmt ( force group = timesheetmgmt ). That's the admin group. timesheets is the user group and would result in everyone having access to everyone's time sheets.
– Morbius1
Nov 13 at 19:25
You are right. I had not seen the mention of the management group. I edited my answer accordingly.
– Marc Vanhoomissen
Nov 14 at 8:54
when I force group, all users regain access to everyone else's folder. Is this because of the valid users = timesheets ?
– Roberto Viglione
Nov 14 at 17:03
Which group did you use for the 'force group'?
– Marc Vanhoomissen
Nov 19 at 14:27
I used timesheetmgmt, I think this gives the management permissions to all users in the share, which defeats the purpose of what I am trying to do
– Roberto Viglione
Nov 19 at 15:33
|
show 1 more comment
I agree with your answer but I think you have the wrong group. You want the forced group to be timesheetmgmt ( force group = timesheetmgmt ). That's the admin group. timesheets is the user group and would result in everyone having access to everyone's time sheets.
– Morbius1
Nov 13 at 19:25
You are right. I had not seen the mention of the management group. I edited my answer accordingly.
– Marc Vanhoomissen
Nov 14 at 8:54
when I force group, all users regain access to everyone else's folder. Is this because of the valid users = timesheets ?
– Roberto Viglione
Nov 14 at 17:03
Which group did you use for the 'force group'?
– Marc Vanhoomissen
Nov 19 at 14:27
I used timesheetmgmt, I think this gives the management permissions to all users in the share, which defeats the purpose of what I am trying to do
– Roberto Viglione
Nov 19 at 15:33
I agree with your answer but I think you have the wrong group. You want the forced group to be timesheetmgmt ( force group = timesheetmgmt ). That's the admin group. timesheets is the user group and would result in everyone having access to everyone's time sheets.
– Morbius1
Nov 13 at 19:25
I agree with your answer but I think you have the wrong group. You want the forced group to be timesheetmgmt ( force group = timesheetmgmt ). That's the admin group. timesheets is the user group and would result in everyone having access to everyone's time sheets.
– Morbius1
Nov 13 at 19:25
You are right. I had not seen the mention of the management group. I edited my answer accordingly.
– Marc Vanhoomissen
Nov 14 at 8:54
You are right. I had not seen the mention of the management group. I edited my answer accordingly.
– Marc Vanhoomissen
Nov 14 at 8:54
when I force group, all users regain access to everyone else's folder. Is this because of the valid users = timesheets ?
– Roberto Viglione
Nov 14 at 17:03
when I force group, all users regain access to everyone else's folder. Is this because of the valid users = timesheets ?
– Roberto Viglione
Nov 14 at 17:03
Which group did you use for the 'force group'?
– Marc Vanhoomissen
Nov 19 at 14:27
Which group did you use for the 'force group'?
– Marc Vanhoomissen
Nov 19 at 14:27
I used timesheetmgmt, I think this gives the management permissions to all users in the share, which defeats the purpose of what I am trying to do
– Roberto Viglione
Nov 19 at 15:33
I used timesheetmgmt, I think this gives the management permissions to all users in the share, which defeats the purpose of what I am trying to do
– Roberto Viglione
Nov 19 at 15:33
|
show 1 more comment
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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