Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This 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.


  Search this Thread
Old 04-15-2004, 01:53 PM   #1
Registered: Nov 2003
Distribution: Mint, openSUSE, Mandriva, Knoppix, puppy, Arch
Posts: 68

Rep: Reputation: 16
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.

Thank you for reading.

Old 04-17-2004, 01:47 AM   #2
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
if you can use cp use cp -dpR to preserve ownership and perms.
Old 04-17-2004, 03:49 AM   #3
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
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.
Old 04-17-2004, 03:55 AM   #4
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
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).
Old 06-11-2004, 10:20 AM   #5
Registered: Nov 2003
Distribution: Mint, openSUSE, Mandriva, Knoppix, puppy, Arch
Posts: 68

Original Poster
Rep: Reputation: 16
Thank You


I could have sworn I posted a reply!

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. &^$####%

Thanks again for your advice.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - My Samba share changes the timestamp when copying files to it.. Preserve Time. hheejj Linux - Software 2 06-28-2005 10:34 AM
preserve user/group when copying files km4hr Linux - Software 1 01-11-2005 06:21 PM
copying from NTFS file systems to USB cd burner sowboy Linux - Newbie 3 01-02-2005 09:18 AM
Samba Share Permissions stever Linux - Newbie 4 05-17-2003 03:26 AM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 05:42 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration