After cloning a linux system manually via rsync -ax and adjusting /etc/fstab and chroot, grub-install, update-grup, etc. I wondered why GDM/X could not start.
Additionally sudo command gave "sudo: can't open /etc/sudoers: Permission denied".
Even after booting into the maintenance root shell, this behaviour persists!
It took me some while to identify the cause: the permissions of the root node / were wrong!
I cloned everything from the old datastore to the new one with correct permissions via rsync -ax INTO the new datastore but forgot the root directory itself.
Giving correct ownership "chown root:root /" and permissions "chmod go+rx /" with NO recursive flag!! ;-) everything was solved.
Kategorie(n):