[Linux-HA] /var/lib/heartbeat permission all belong to root
Ciro Iriarte
cyruspy at gmail.com
Tue Jul 17 15:23:00 MDT 2007
2007/7/16, Lars Marowsky-Bree <lmb at suse.de>:
> On 2007-07-16T16:46:16, Xn Nooby <xnooby at gmail.com> wrote:
>
> > Previously I moved my entire /var partition to another drive, copying it as
> > root (I moved it to a bigger physical partition).
>
> That was a mistake, it appears as if you didn't use the "-a" switch on
> cp. You've effectively screwed up various permission bits, I dare say.
>
> That is worth repairing - can you go back and copy the /var partition
> again, this time with the proper options?
>
Another option would be:
tar cf - /var | tar -C /new_var -xf -
That's if you still have your old FS at hand... You could restore from
backup, you do have one, right?
Other options are (guessing here):
* If you are running an rpm based linux distro and installed from rpm
packages, you could use
"rpm --setperms package_name" and "rpm --setugids", but that would be
for each packages that have a file on /var
* Suse (not sure about others) has some permissions saved on
/etc/permissions for some system files.
Ciro
More information about the Linux-HA
mailing list