We help IT Professionals succeed at work.
Private
Troubleshooting Question

Are files permissions are kept when they are copied from Linux to Windows shared folder?

SAM2009
SAM2009 asked
on
74 Views
Last Modified: 2020-08-28
Are files permissions are kept when they are copied from Linux to Windows shared folder?
Comment
Watch Question

Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
Access Control Lists depend on the file system used.  NTFS is not used on Linux systems - they usually use EXT4.  Different kind of permissions system is in place there.  So no, they can't copy because where they are stored does things differently.

Author

Commented:
As I said it's a copy from Linux to Windows, so my concern are Linux permissions.
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
As I said, NO, they can't copy, the file systems are different.  They can't copy from Linux to Windows, they can't copy from Windows to Linux.
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
They will inherit whatever the permissions of the parent directory are.

Author

Commented:
What happen if I mount a Windows NFS shared and copy files from Linux, do you think Linux permissons will be kept in Windows?
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
nociSoftware Engineer
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2007

Commented:
Dear SAM,

Your question is for copied files or for files in a shared folder?

File permissions are not copied when you copy files.

If yo access files over shared folder, then it depends on the server sharing the folder to apply permissions.
nociSoftware Engineer
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
@omarfarid:
File permissions CAN be copied, use -p in the copy command.  (or use tar xp ... when extracting) or rsync -p ...
(the -p in those case stand for preserve uid, gid & protection).
CERTIFIED EXPERT
Top Expert 2007

Commented:
@noci

What you mentioned can be the case for unix to unix or alike operating system.

Here it is to windows or from windows. Will this stand or even has meaning when the two operating systems are not the same for ruserid, groupid, file perms?
nociSoftware Engineer
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
@omarfarid i was responding to this:
File permissions are not copied when you copy files.
That has no qualification what so ever.  With samba a best effort is made to preserve the unix atributes in windows rights and vice-versa. No complete mapping can obviously be done. SAMBA does honor the SMB server side of things.

Author

Commented:
Thanks to all!
David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
You're welcome!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.