Project

General

Profile

Bug #317

SSH authorized keys lost on upgrade on embedded

Added by Chris Buechler over 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
01/20/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.0
Affected Architecture:

Description

After embedded upgrade, the SSH authorized keys are lost until editing and saving admin.

Associated revisions

Revision 17fdcb8d (diff)
Added by Ermal Luçi over 9 years ago

Ticket #317. Synchronize user info on bootup.

Revision 24e61cce (diff)
Added by Ermal Luçi over 8 years ago

Ticket #317. Unconditionally synchronize users on bootup this might prevent some reports of ssh keys not being there.

History

#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.

#2 Updated by Ermal Luçi over 9 years ago

  • Status changed from New to Feedback

#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

http://forum.pfsense.org/index.php/topic,22655.msg116506.html#msg116506

#4 Updated by Angel Torres over 9 years ago

Sorry that was line 228 in /etc/rc.bootup

#5 Updated by Chris Buechler about 9 years ago

  • Status changed from Feedback to Resolved

#6 Updated by Jim Pingle over 8 years ago

  • Status changed from Resolved to New

This has apparently started happening again:
http://forum.pfsense.org/index.php/topic,31906.0.html

#7 Updated by Ermal Luçi over 8 years ago

  • Status changed from New to Feedback

Can yo please try a snapshot from tomorrow and see if it works?

#8 Updated by Ermal Luçi over 8 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF