chattr

bscott at ntisys.com bscott at ntisys.com
Tue Jan 28 13:32:02 EST 2003


On Tue, 28 Jan 2003, at 11:39am, Marc at softwarehackery.com wrote:
> I am trying to find a program, ideally rsync, that preserves attributes
> set by chattr, when a file is copied. For example, consider the following:
> 
> 	chattr +i foo
> 	rsync foo bar

  Everything else people have said is valid, but let me also point out that
there is an inherent paradox in synchronizing an immutable file.  Yes, the
program could remove the bit on the target, sync the file, and then put it
back.  That's not the point.  The point is that the immutable bit was
designed to be a bit an admin would set to lock out all possible changes.  
One might even go so far as to say it "shouldn't" be copied.

-- 
Ben Scott <bscott at ntisys.com>
| The opinions expressed in this message are those of the author and do  |
| not represent the views or policy of any other person or organization. |
| All information is provided without warranty of any kind.              |




More information about the gnhlug-discuss mailing list