I have a computer with Ubuntu 13.10 installed. The user (say
Walesa) has changed the ownership of
etc folder and all its subfolders from
Welesa using a privileged file manager. As
sudo was disabled, he rebooted hoping it will be re-enabled again. But security does not allow log-in after entering username and password saying "owner of etc/profile is not root".
But a commandline login with
I have no name!@Walesa is possible. Is there a way to restore ownership of
etc and all its subfolders to
root using this commandline?