MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 6 posts ] 
File Permissions Changed 
Author Message
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Mon Feb 12, 2007 1:45 pm
Posts: 5597
Location: Penn's Woods
Has thanked: 785 times
Have thanks: 629 times
Post # 298176
Post File Permissions Changed
When copying files to a backup directory on a partition that's formatted NTFS, executable files are rendered non-executable. (I found this out when I restored a shell script from the backup location. The script is set to autoexecute on startup, and I was getting errors. When I checked the file's permissions, it was set to non-executable.)

This isn't a major problem because file permissions can be restored manually; however, is there a way to copy files to an NTFS backup location and keep the permissions intact? BTW, I use the backup partition for Windows too, which is why it's formatted NTFS.

_________________
MX-14; 3.12-0.bpo.1-686-pae kernel using 4GB RAM
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 304.121 Display Driver


Tue Apr 03, 2012 9:15 am
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Wed Jul 12, 2006 1:42 am
Posts: 4365
Has thanked: 415 times
Have thanks: 567 times
Post # 298177
Post Re: File Permissions Changed
This seems like an informative article about permissions under NTFS: http://b.andre.pagesperso-orange.fr/permissions.html


Tue Apr 03, 2012 9:31 am
Profile
MEPIS is cool!
MEPIS is cool!
User avatar

Joined: Fri Jul 14, 2006 6:09 pm
Posts: 799
Has thanked: 21 times
Have thanks: 67 times
Post # 298188
Post Re: File Permissions Changed
Might explain why my USB drives, one formatted NTFS the othe ext3 have different permissions.


Tue Apr 03, 2012 2:02 pm
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Mon Feb 12, 2007 1:45 pm
Posts: 5597
Location: Penn's Woods
Has thanked: 785 times
Have thanks: 629 times
Post # 298192
Post Re: File Permissions Changed
So I guess there's no way to get around losing Linux file permissions, since they are not compatible with NTFS. I don't know if this is common knowledge, but it fooled me.

I noticed another thing: In LuckyBackup, if you check the box labeled "Destination is FAT/NTFS" under Advanced > Command Options, the options labeled "Preserve ownership, times" and "Preserve permissions" are grayed out. I guess this is the reason for that.

_________________
MX-14; 3.12-0.bpo.1-686-pae kernel using 4GB RAM
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 304.121 Display Driver


Tue Apr 03, 2012 2:26 pm
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Mon Jun 30, 2008 8:06 pm
Posts: 2952
Has thanked: 52 times
Have thanks: 376 times
Post # 298194
Post Re: File Permissions Changed
hmm... joany, i wonder if using tar to backup your files to the ntfs partition might not take care of that?

tar has a preserve permissions option. in theory, it should be preserving the permissions of the original files. you could also use the owner and group options to set these to something else...

you might not have hot access to the files, but you wouldn't have to worry about the permissions issue...


Tue Apr 03, 2012 3:28 pm

GoManutd thanked by: joany, lucky9
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Mon Feb 12, 2007 1:45 pm
Posts: 5597
Location: Penn's Woods
Has thanked: 785 times
Have thanks: 629 times
Post # 298202
Post Re: File Permissions Changed
GoManutd wrote:
hmm... joany, i wonder if using tar to backup your files to the ntfs partition might not take care of that?

tar has a preserve permissions option. in theory, it should be preserving the permissions of the original files. you could also use the owner and group options to set these to something else...

you might not have hot access to the files, but you wouldn't have to worry about the permissions issue...

Your suggestion is certainly worth looking into.

_________________
MX-14; 3.12-0.bpo.1-686-pae kernel using 4GB RAM
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 304.121 Display Driver


Tue Apr 03, 2012 6:21 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.