Replies: 2 comments 1 reply
-
I should of course have made a new generic RPI SDcard and used that rather than the LBB, but I forgot |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm actually rewriting all the core code to python. In the upcoming version I will try not to need chmod for the mounted source device anymore. If this won't be possible, maybe you could contribute your idea.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I made a mistake. One of my other RPis (headless) had a problem such that i was unable to remotely log in , and having the LBB just set up, i thought
"why don't i just pop its SD card/thumbdrive into the LBB, mount it there and have a look at the logs"
BIG MISTAKE
LBB seems to have auto-mounted the drive under /media/storage and done a
# chmod -R 755 /media/storage
(and the same to /media/boot once I mounted /dev/sda1 there to see whether the 'ssh' file needed to be added again to allow remote access)
That all of course royally screwed up the disk, so that almost nothing worked anymore (SSH, cron all complained about too open file permissions)
Would it be possible to have LBB save a file with 'undo' commands when it does something drastic like that
I am thinking of something like
(note: currently untested)
to be run before LBB adjusts the perms recursively
There may be additional attributes that may need resetting !
I am unsure whether that undo file should be saved on the mounted partition itself
or in /tmp or /var/tmp
if in /tmp or /var/tmp it would not be available on the mangled disk itself later (and thus will need the LBB again)
and also it would need to somehow include an indicator of which disk it was applied
so I am leaning more to saving the undo file on the affected disk itself...
By having such an 'undo' file it will be rather trivial to repair the damage done
The file could be overwritten on the net use
Beta Was this translation helpful? Give feedback.
All reactions