Project

General

Profile

Actions

Bug #317

closed

SSH authorized keys lost on upgrade on embedded

Added by Chris Buechler almost 12 years ago. Updated almost 11 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:

Description

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

Actions #1

Updated by Jim Pingle almost 12 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.

Actions #2

Updated by Ermal Luçi almost 12 years ago

  • Status changed from New to Feedback
Actions #3

Updated by Angel Torres almost 12 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

Actions #4

Updated by Angel Torres almost 12 years ago

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

Actions #5

Updated by Chris Buechler over 11 years ago

  • Status changed from Feedback to Resolved
Actions #6

Updated by Jim Pingle almost 11 years ago

  • Status changed from Resolved to New

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

Actions #7

Updated by Ermal Luçi almost 11 years ago

  • Status changed from New to Feedback

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

Actions #8

Updated by Ermal Luçi almost 11 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF