LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-18-2006, 07:40 PM   #1
edwin11
Member
 
Registered: Dec 2005
Distribution: Linux Mint 13 MATE
Posts: 120

Rep: Reputation: 15
rsync: How NOT to preserve permission?


Hi all,

/mnt/windowsResrc is the mount point for a NTFS partition. Hence, all files and directories on it has permission 555.

/mnt/windowsResrcBak is the mount point for a VFAT partition. It is mounted with umask 0022.

Now when i do this,

Code:
rsync -vrtL --delete /mnt/windowsResrc /mnt/windowsResrcBak
All the copied files and directories end up with permissions of 555 (seems to be preserved?) even though i did not have the "-p" option set for rsync, and /mnt/windowsResrcBak was mounted with a umask of 0022.

Why is this so?

Even more strange (to me), when i umounted /mnt/windowsResrcBak, and then mounted it again with umask 0022, the permissions of 555 for all its files and directories still remained!

I had this understanding that VFAT does not have the ability to persist ownership and permissions, and that these things are "artificially" set when we mount the filesystem using the specified "-o uid=xxxx,gid=xxxx,umask=xxxx" option. But seems like my understanding was totally off?



TIA and Regards,
Edwin
 
Old 02-19-2006, 09:18 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
For read/write on a FAT32 I normally use umask=0. Your understanding is not off AFAIK. FAT32 has no native permission structure and linux temporarily grafts one on through the mounting options you pass or your fstab entry for the partition.
 
Old 02-20-2006, 07:10 AM   #3
edwin11
Member
 
Registered: Dec 2005
Distribution: Linux Mint 13 MATE
Posts: 120

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kilgoretrout
FAT32 has no native permission structure and linux temporarily grafts one on through the mounting options you pass or your fstab entry for the partition.
Precisely what i thought too. But why is it that when i mounted the VFAT partition with a umask of 0022, the files did not get permissions of 755 (or 644?), but retained 555 instead?



Thanks and Regards,
Edwin
 
  


Reply



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
root permission & rsync ziggie216 Linux - Software 1 12-12-2005 01:21 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
preserve links jmr71769 Debian 2 04-22-2004 10:01 AM
Preserve the ownership juno Linux - General 1 01-16-2003 01:38 PM
preserve the ownership juno Linux - General 5 01-08-2003 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 PM.

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