title: How to restore file permissions to default in ubuntu
body: <p>While working in eclipse I realised that my pom.xml file had read-only permissions. In order to change that I ran</p>
  <pre><code>sudo chmod +rwx '/home/babi-b/eclipse-workspace/TodoApp' 
  </code></pre>
  <p>To change permissions in the entire directory (TodoApp) where the file is found. However, permissions of the entire system has been changed to read-only.</p>
  <pre><code>chmod: changing permissions of '/home/babi-b/eclipse-workspace/TodoApp': Read-only file system
  </code></pre>
  <p>I just restarted my machine and now it stuck on this console</p>
  <p><a href="https://i.stack.imgur.com/1PsI6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1PsI6.jpg" alt="screen image" /></a></p>
  <p>Please, how do I reset the system to default?</p>
  <p>I am working on ubuntu 20.04</p>
  <p>This is what my screen now looks like</p>
  <p><a href="https://i.stack.imgur.com/Ov9IX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ov9IX.jpg" alt="screen image" /></a></p>
  <p>Is there a way for me to recover without losing my data?</p>