rm -rf and flags (schg, sunlnk)

Gary Aitken freebsd at dreamchaser.org
Wed Nov 14 20:34:16 UTC 2012


Assuming one makes a mirror of a file system for backup purposes,
then renames the mirror and makes another one,
then attempts to remove the original using "rm -rf",
the rm will fail if any of the files have the schg or sunlnk bits set.

Is there an easy way around this problem other than traversing the whole subtree,
finding files with the flags set and unsetting them?

thanks,

Gary


More information about the freebsd-questions mailing list