Code: Select all
ssh: connect to host serverpi port 22: Connection refused
Code: Select all
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
Code: Select all
ssh: connect to host serverpi port 22: Connection refused
Code: Select all
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
your screwed time to reinstall.I ran sudo chmod 755 /
That command wouldn't break anything.
Code: Select all
sudo chmod -R 755 /
rpdom wrote: ↑Fri Jun 09, 2023 10:55 amThat command wouldn't break anything.
This one, however...would mess up the permissions on lots of files and directories.Code: Select all
sudo chmod -R 755 /
You could try installing a new OS on another card, then use that to mount the old card and go in and correct the permissions - but good luck finding them all.
Best option is to install a fresh OS and copy your work over to it. Then take a backup so you can recover next time you make a mistake. (we all make mistakes. That's one of the reasons we do backups)
The method we used to use, back in the old days of mainframes with removable disk packs, was to copy the system to another disk, then shutdown and swap the disk over. This way we tested that the backup had worked correctly and we had a known good system stored away in a safe place.
What used to pass as the native Unix backup is dump.
I find it interesting that duplicity doesn't support hard links. Are you backing up to cloud storage or a local disk?timrowledge wrote: ↑Fri Jun 09, 2023 6:06 pmDuplicity works pretty well for me. You can configure it to run on whatever schedule you want.