Question preserve Linux permission when copying over SMB

Currently reading
Question preserve Linux permission when copying over SMB

11
1
NAS
DS220j
Operating system
  1. Linux
Hey Friends,

Another question from NAS noob - still exploring my first NAS and I wonder if it is possible to preserve file permissions when copying them to NAS over smb protocol.

I have my Samba share mounted as
Code:
sudo mount -t cifs -o credentials=/etc/smb-credentials,uid=1000,gid=1000 //doctor-chaos/encrypted-smb-test /mnt

and whenever I cp files to it or try to chmod mounted files the file permissions does not change...


Is this possible at all? I don't want DS220j to create files using default Linux permissions but to use either permissions of original files or the one I set through chmod.
 
Not sure if this is how linux permissions are meant to work. As file permissions in linux are User and or Group based.
For sure the permissions are retained when making a backup in hyper backup, not sure if it can work in a copy to another system as there will be inconsistencies like file owners Or groups that do not exist on the new location.
 
In the rare cases I need to change owners or permissions I go to file station on the ds, click right on a file/ folder and change these under the properties tab.
 
After digging around and reading more I at least can name option I am was looking for... Basically I look for opposite of nounix flag but apparently it is still not implemented for SMB > 1.0:

- link 1
- link 2
- link 3
 
SMB and File station can handle both ACL and Unix permissions.
But Drive can hadle ACL only. It was discovered last week as bug in Drive.
From DSM 5.0 is every new Shared folder created with ACL by default.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Just joined the forum to post that this did help me in the end and how I got this to work for me. I...
Replies
14
Views
6,583
Hi everyone, on my linux machine (Mageia) I would like one user (let's say, user1) to be able to access...
Replies
0
Views
1,482
Thanks much, but that seems to be a different program with a whole new learning curve. Duplicity v...
Replies
2
Views
3,554
So the verdict is still just a shoot into dark for everyone without knowledge about your LAN topology...
Replies
3
Views
7,195

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top