-2

I did something really dumb.

At the root of an SSD card I ran: sudo chown -R root:root . when I should have run: sudo chown -R myusername:myusername . Now I cannot access files/directories for the entire SSD when logged in under myusername

Going into the terminal as sudo root and browsing to the SSD now shows an empty directory.

Results of sudo ls -al :

drwxrwxrwx    3 root root  4096 Feb 11  2023 foo
drwxrwxrwx    2 root root  4096 Nov 28 14:26 fii
drwxr-xr-x    5 root root  4096 Nov 28 14:26 thumb
drwxrwxrwx    2 root root  4096 Nov 28 14:26 fooder
-rwxr-xr-x    1 root root    69 Nov 18  2023 datab.vdf
drwx------    2 root root 16384 Dec  6 17:35 lost+found
drwxrwxrwx    2 root root  4096 Nov 28 14:26 meta
-rw-rw-rw-    1 root root  4656 Mar 23  2023 noob.out
drwxrwxrwx    2 root root  4096 Feb 10  2023 nerds
karel
  • 122,292
  • 133
  • 301
  • 332
ScriptAlexS
  • 27
  • 1
  • 5

1 Answers1

0

OK I'm back in action, sorry the solution was simple and basic...

sudo chown -R myusername:myusername .
ScriptAlexS
  • 27
  • 1
  • 5