Kern Sibbald wrote:
As far as I know, this is not a bug with Bacula, and there is nothing I can do
to fix it. Bacula does not restore file permissions with user/group names,
but rather uses the Ids. As noted in the document, if you try to restore
files to a different system with a different /etc/passwd configuration, your
permissions are going to be all screwed up. This is, in fact, what happens
when you try to do a restore on an OS booted by a non-Bacula rescue disk.
I don't think I am wrong in what I say above. However, if for some reason, I
am, someone is going to have to show me the details of how one can do a
correct restore without the correct /etc/passwd ... files.
It is possible to correctly restore even with /etc/passwd (and/or
/etc/group) file completely missing from the system. What for example
if I delete /etc/passwd by mistake? Even pre-historic Unix dump/restore
commands can do that. So yes, it is an issue with Bacula if it can't
restore ownerships and permissions to their original (numeric) values.
You have UID, GID, and file mode (permissions). Simply restore them to
their original values. You do not need /etc/passwd file for that.
Actually, for bare metal restores, you want to completely ignore
whatever bacula-fd sees as /etc/passwd file (since that is not same
/etc/passwd file as the one system will use after restore is done, and
system booted from restored file systems).
/etc/passwd and /etc/group files contain only relation between symbolic
user and group names and UID and GID numbers.
User and group names are ment only for human consumption (or in other
words, so that "ls -l" printout is readable by humans), kernel does not
know anything about them, and they do not exist in file system's metadata.
Kernel works with UID and GID numbers, and that is the information that
is stored on file system (so basically, that is the information that
should be restored to its original values)
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users