Bug #317
closed
SSH authorized keys lost on upgrade on embedded
Added by Chris Buechler almost 15 years ago.
Updated almost 14 years ago.
Description
After embedded upgrade, the SSH authorized keys are lost until editing and saving admin.
It isn't just be the authorized_keys file, but all of /home
We may need to mount the alt. slice and copy /home it if it isn't present on the current slice.
Granted, on Nano, people probably won't be dropping many if any files in /home, but there is still the possibility that people will expect that directory to be persistent.
To fix the authorized_keys issue, we'd probably just need to do something like this at every boot:
- Grab a list of all users
- Iterate this list, and run: local_user_set($user);
That way the keys and other user info will be sync'd on boot, regardless of the firmware update status.
- Status changed from New to Feedback
Sorry that was line 228 in /etc/rc.bootup
- Status changed from Feedback to Resolved
- Status changed from Resolved to New
- Status changed from New to Feedback
Can yo please try a snapshot from tomorrow and see if it works?
- Status changed from Feedback to Resolved
Also available in: Atom
PDF