> Hi,
>
> I just did a xfsdump/xfsrestore of a filesystem:
>
> xfsdump -J -F -f /tmp/opt.xfsdump /opt
> [ ... shutdown of system, added new disk, mkfs.xfs etc... ]
> xfsrestore -f /tmp/opt.xfsdump -J .
>
> All went fine except that SUID files of the source file system were no
> SUID files after the dump/restore cycle anymore.
>
> I did not find any hints in the man pages about that. I guess it is a
> security feature, but how can i turn this off? I mean, I want the
> restored filesystem to be an exact copy of the source...
>
> I dont think it is of importance, but let me note however that I am
> using lvm.
>
> TIA, Dominik
Hmm, I am informed that restore should create the file, write the data
into it, and then restore the mode flags - including suid. A quick test
shows that this is the case, but that the suid bit is not coming back, using
strace it is not even getting set. I suspect the problem may be in the dump
phase not the restore phase.
Steve
|