Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I am working on a backup system, which will create a snapshot of a LVM volume, mount it and copy the files over to another server using rdiff-backup. Now this works well, however on the restoring part it keeps crashing. I've found out to be the issue that is write protected, even for the root user.

I want to ignore this in some way, as I don't want to mess up with the permissions since those files should be intact because it's for backup and restore purposes. Gzipping the whole directory isn't an option either since rdiff-backup wouldn't work anymore then.

Anyone has an idea how I can still touch those files? The error I get is:

mv /mnt/hdd/rdiff-backup.tmp.4 /mnt/hdd/
mv: overwrite `/mnt/hdd/', overriding mode 0600? y
mv: cannot move `/mnt/hdd/rdiff-backup.tmp.4' to `/mnt/hdd/': Operation not permitted
share|improve this question
Are there ACLs define for the file or parent folder? – Daniel Beck Mar 11 '12 at 14:09
@Daniel Beck: I'm not sure, don't think so. Never worked with them before. – Devator Mar 11 '12 at 14:36
There doesn't seem to be much point in having a permission system if it could be easily circumvented from within the OS or filesystem. The only way to do this for a soundly designed filesystem would be to go outside the filesystem by writing your own filesystem drivers that ignore the file permissions. – Lèse majesté Mar 11 '12 at 15:37
up vote 0 down vote accepted

These aren't Unix permissions, since the error message is different. Most likely, the file has the "immutable" flag set on it; use lsattr to verify and chattr to change.

share|improve this answer
Yes, but then (as I also have different OS's to backup, not only Linux, also FreeBSD and Windows) there might be other complications. Is there any way to not change that i flag and still be able to change it? Else I would have to loop over the whole OS and change all files, and restore them later on. It would be a tedious task and I have tempered the OS's files. – Devator Mar 11 '12 at 14:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.