EDIT: SOLVED in my post below, leaving this up for documentation of the troubleshooting process
I just tried to 'clone' my existing installation onto a new installation on another MicroSD by using backup and restore.
First, I made it not headless, so I can do some more troubleshooting.
I made sure to do both backup and restore as root.
I ended up with the same problem as before.
Since it's not headless I was able to login and check some things out.
- definitely some errors/warnings on boot, seeing a lot of these in /var/log/syslog:
Code: Select all
...is marked executable. Please remove executable permission bits. Proceeding anyway.
Code: Select all
...INSECURE MODE (group/other writable)
Code: Select all
...INSECURE MODE (mode 0600 expected)
It seems dietpi-backup is getting and/or setting permissions improperly
- smbd and nmbd are failing to start on boot
- my LED monitoring script is failing to start on boot (it's supposed to start @reboot from cron), though I can manually start it
- Pi-Hole/Tonido/Transmission all seem to be working fine, but i'm having to use the Pi's ip address rather than the host name to connect to their web interfaces.
- I'm able to login through SSH after making Dropbear not require keys to login, but it's odd that it's rejecting keys as my authorized_keys file is still in place.
- if i log in with my user account rather than root i get the same sudo error as before
Code: Select all
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
- can't use su to switch to root from my account
I was able to get sudo kind of working again by following the advice of the 2nd answer here:
http://askubuntu.com/questions/452860/u ... id-bit-set
But, every time I use sudo I get this prompt, rather than just the first time:
Code: Select all
sudo: /var/lib/sudo/ts is group writable
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
I'll keep this cloned microSD around if there's any additional troubleshooting anyone can think of.