0

I'm new to Ubuntu , while working with permissions I messed up with ~/usr directory and now I can't run sudo and pkexec both commands. Is there any other way to make ~/usr directory permission to default. I'm the root user and I tried several commands but none of them worked.

I entered into recovery mode and into root but it is saying read-only file system, can anyone give me step-by-step process to make it right. Thank you

Ubuntu was installed on server

swift
  • 3,291

1 Answers1

0

if you want to edit in recovery mode you need to type the following command:

mount -o rw,remount /

that will remount the root / with read/write permissions. Then if you knew what the original permissions are you could set them back but ... that would probably be a nightmare

Now the sudo problem .. if I had more information about that I may be able to resolve that for you also .. but I would need the information that I commented about in my first comment.

John Orion
  • 2,871