Ownership moving a file from two SMB shares

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have created two SAMBA shares, the first one is called NAS, the second one is called OPENSHARE. OPENSHARE is a directory inside NAS used for guest access.
The only user of NAS is Dan and all new files into NAS are created with owner=Dan and group=nas.
The only user of OPENSHARE is Openshare and all new files into OPENSHARE are created with owner= Openshare and group= Openshare.
The config files is following:
NAS:
[NAS]
comment = WD_NAS
path = /mnt/WD/
create mask = 0740
directory mask = 0750
read only = no
browseable = yes
force group=nas
guest ok = no
writeable = Yes
hide unreadable = yes
valid users= Dan
access based share enum = yes
OPENSHARES:
[OpenShares]
comment = WD_OpenShare
path = /mnt/WD/OpenShares
create mask = 770
directory mask = 770
read only = no
browseable = yes
force user=openshares
force group=openshares
guest ok = no
writeable = Yes
hide unreadable = yes
valid users= openshares
access based share enum = yes
I am asking for help as when I move a file from OPENSHARE to NAS, it keeps Openshare ownership (user and group).
I would like that every moved file from OPENSHARE to NAS, gets Dan ownership as the file were created into NAS.
How shall I modify the configuration?
samba
add a comment |Â
up vote
0
down vote
favorite
I have created two SAMBA shares, the first one is called NAS, the second one is called OPENSHARE. OPENSHARE is a directory inside NAS used for guest access.
The only user of NAS is Dan and all new files into NAS are created with owner=Dan and group=nas.
The only user of OPENSHARE is Openshare and all new files into OPENSHARE are created with owner= Openshare and group= Openshare.
The config files is following:
NAS:
[NAS]
comment = WD_NAS
path = /mnt/WD/
create mask = 0740
directory mask = 0750
read only = no
browseable = yes
force group=nas
guest ok = no
writeable = Yes
hide unreadable = yes
valid users= Dan
access based share enum = yes
OPENSHARES:
[OpenShares]
comment = WD_OpenShare
path = /mnt/WD/OpenShares
create mask = 770
directory mask = 770
read only = no
browseable = yes
force user=openshares
force group=openshares
guest ok = no
writeable = Yes
hide unreadable = yes
valid users= openshares
access based share enum = yes
I am asking for help as when I move a file from OPENSHARE to NAS, it keeps Openshare ownership (user and group).
I would like that every moved file from OPENSHARE to NAS, gets Dan ownership as the file were created into NAS.
How shall I modify the configuration?
samba
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have created two SAMBA shares, the first one is called NAS, the second one is called OPENSHARE. OPENSHARE is a directory inside NAS used for guest access.
The only user of NAS is Dan and all new files into NAS are created with owner=Dan and group=nas.
The only user of OPENSHARE is Openshare and all new files into OPENSHARE are created with owner= Openshare and group= Openshare.
The config files is following:
NAS:
[NAS]
comment = WD_NAS
path = /mnt/WD/
create mask = 0740
directory mask = 0750
read only = no
browseable = yes
force group=nas
guest ok = no
writeable = Yes
hide unreadable = yes
valid users= Dan
access based share enum = yes
OPENSHARES:
[OpenShares]
comment = WD_OpenShare
path = /mnt/WD/OpenShares
create mask = 770
directory mask = 770
read only = no
browseable = yes
force user=openshares
force group=openshares
guest ok = no
writeable = Yes
hide unreadable = yes
valid users= openshares
access based share enum = yes
I am asking for help as when I move a file from OPENSHARE to NAS, it keeps Openshare ownership (user and group).
I would like that every moved file from OPENSHARE to NAS, gets Dan ownership as the file were created into NAS.
How shall I modify the configuration?
samba
I have created two SAMBA shares, the first one is called NAS, the second one is called OPENSHARE. OPENSHARE is a directory inside NAS used for guest access.
The only user of NAS is Dan and all new files into NAS are created with owner=Dan and group=nas.
The only user of OPENSHARE is Openshare and all new files into OPENSHARE are created with owner= Openshare and group= Openshare.
The config files is following:
NAS:
[NAS]
comment = WD_NAS
path = /mnt/WD/
create mask = 0740
directory mask = 0750
read only = no
browseable = yes
force group=nas
guest ok = no
writeable = Yes
hide unreadable = yes
valid users= Dan
access based share enum = yes
OPENSHARES:
[OpenShares]
comment = WD_OpenShare
path = /mnt/WD/OpenShares
create mask = 770
directory mask = 770
read only = no
browseable = yes
force user=openshares
force group=openshares
guest ok = no
writeable = Yes
hide unreadable = yes
valid users= openshares
access based share enum = yes
I am asking for help as when I move a file from OPENSHARE to NAS, it keeps Openshare ownership (user and group).
I would like that every moved file from OPENSHARE to NAS, gets Dan ownership as the file were created into NAS.
How shall I modify the configuration?
samba
edited Apr 2 at 23:41
Yurij Goncharuk
2,2582521
2,2582521
asked Apr 2 at 21:38
Daniele
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435140%2fownership-moving-a-file-from-two-smb-shares%23new-answer', 'question_page');
);
Post as a guest
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
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
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