Recently, my Raspberry Pi's permissions were butchered. I am now accessing the Pi's file system through a USB drive running Ubuntu. This is great, but my next step is to return to working on the Pi again with a fresh install of Raspbian OS (and fresh permissions). Also, I cannot edit some of the directories' files as they are read only (the Ubuntu user is not the owner).
What is the most efficient way to go about this and what are the steps involved?
The way I see it, I need to move the files to the fresh OS installation without copying:
- messed up permissions
- broken
sudo
- broken SSH
- etc.
I imagine there's multiple ways to do this, some much better than others...
If any clarification is needed, please ask! :)
I can move this question to a different community if necessary...there's a lot of overlap, so I wasn't sure which was most appropriate.
/home/pi
and the remaining 3% is in/etc
(which is really all I should have modified permissions for, not/
lol). Usingecho
to copy file contents is a smart move. Will try this out on Monday. – Ctrl S Jul 20 '18 at 22:16