SSH authorized keys lost on upgrade on embedded
After embedded upgrade, the SSH authorized keys are lost until editing and saving admin.
#1 Updated by Jim Pingle over 9 years ago
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.
#3 Updated by Angel Torres over 9 years ago
Gives me the following error which breaks all internet and lan access.
Fatal error: Call to undefined function local_sync_accounts() in /etc/rc.bootup on line 22
Posted in forum as well
#6 Updated by Jim Pingle over 8 years ago
- Status changed from Resolved to New
This has apparently started happening again:
#8 Updated by Ermal Luçi over 8 years ago
- Status changed from Feedback to Resolved
Confirmed on forums http://forum.pfsense.org/index.php/topic,31906.0.html