Preserve file permissions when copying from NTFS to a Samba share?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Preserve file permissions when copying from NTFS to a Samba share?
Hello everybody,
After a lot of Googleing, I decided to finally post a question here.
I got Samba working on my Mandrake 9.2 machine and I need to back up a whole NTFS drive to it.
My problem is that I can't figure out how to set up the share so that NTFS file permissions are preserved.
It did cross my mind that it may not be possible, but knowing what I know about Linux, it seems very unlikely. There has to be a way.
As an additional clue, I am trying to backup the PDC (win nt server), so that I have an emergency restore that's not a tape.
Ghosting the server is not an option, as it needs to stay up.
So I would really like to do a simple file copy to the Samba share.
In case I need to restore the files, I must have the original permissions.
As windows and inux use different permission systems you would probably not be able to preserve the NTFS permissions.
My suggestion is to back it up to one file one the Samba share.
This could be done in a multitude of way, among them back up to a single compressed archive (zip, rar...) or using a real backup program. I would go with the backup program as that would do a more detailed backup taking in consideration the windows environment fully.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
The only way this would be even remotely possible is if you mounted your drive on the Samba machine as -t ntfs (or whatever the Linux driver calls it). The last I heard, the write capabilities of Open Source NTFS support was highly experimental and very likely to corrupt your data. In addition, I'm not sure if Samba even preserves NTFS permissions any way, so that might be a Samba limitation (in addition to the fact that Linux file systems cannot represent the permissions assigned to NTFS partitions).
Well, I wanted to thank you all for your replies. Unfortunately, I wasn't able to do it with Linux so I had to temporarily install windoze to copy the files with permissions. &^$####%
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.