0

I recently messed up my ownership and read/write rights to very important files which doesnt allow me to log in to ubuntu once past boot. I've tried several chmod and chown commands to revert the files back but have a problem doing so, first off the ownership of the files is wrong, and on top of that some are only read files and I need to convert them. I get the error :

sudo: must be setuid root

as well as another error which says the ownership rights are 100 when they should be 0(root). I really do not want to re-install a fresh copy there are very important files on the system that I need.

Ferdinand
  • 745

1 Answers1

1

Use the ubuntu installation disk and reboot into the 'rescue' mode.

You will then get a limited root shell and can mount the affected disk(s) and use chown/chmod to fix the problem files.

Then remove the ubuntu installation disk and reboot.

mdpc
  • 1,219