UID error in User Manager/SSH password sync with Web Admin User
New install of 2.0 Beta from jan 8, 2010 using a 2.0 config.xml backup. Web Admin User password is not the same as SSH password (default 'pfsense'). Have to go to User Manager and type password anew to sync passwords between SSH and Web Admin. This works and does sync passwords but I get the following error when clicking Save:
Warning: chown(): Unable to find uid for username in /etc/inc/auth.inc on line 307 Warning: chown(): Unable to find uid for username in /etc/inc/auth.inc on line 314 Warning: chown(): Unable to find uid for username in /etc/inc/auth.inc on line 318 Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/auth.inc:307) in /etc/inc/functions.inc on line 69
Updated by Chris Buechler almost 12 years ago
- Status changed from New to Closed
The password sync portion is a duplicate of #287.
I can't replicate the "Unable to find uid for username" portion, so I believe it's since been fixed. If you can still replicate that part when a new snapshot is available (newer than January 16), please add details on how to do so.
Updated by Angel Torres almost 12 years ago
I'm still seeing this on the Jan 18 Snapshot. Only reason I can assume that you're not seeing it is possibly because this config was upgraded from a 1.2.3. So try changing username and pw in 1.2.3 from admin/pfsense, upgrade to 2.0 and then try changing the password in 2.0 with that username.
Updated by Larry Titus over 11 years ago
There is still a password sync issue as of pfSense-2.0-BETA1-20100324-1017. When upgrading from 1.2.3. to this snapshot the SSH password is reset back to its default "pfsense". The WebUI password remains the same as it was under 1.2.3. Setting the password via the WebUI after the upgrade syncs the SSH password with the WebUI password again.
Updated by Erik Fonnesbeck over 11 years ago
This is probably related to an issue I've seen that the root/admin password on the console is not updated after I do an upgrade + config restore (nanobsd platform; I upgrade from 1.2.3, reset to defaults, then restore my 2.0 config). I think it may have to do with these lines in /etc/rc.bootup:
echo "Synchronizing user settings..."; if (!isset($config['system']['webgui']['backend'])) local_sync_accounts(); echo "done.\n";
That setting looks like this in my config (with other stuff removed):
<system> <webgui> <backend/> </webgui> </system>
Meaning that it is set. Should it maybe be using empty() instead of !isset()? I don't know a lot about that setting or the internals of the user manager, so I'm not really sure.
Updated by Seth Mos over 11 years ago
- Status changed from Feedback to Resolved
I recently committed code for alternate usernames in ticket #574 for alternate usernames on upgrades. That also produced the can not find uid for <user>.
I confirmed that both the root and admin account have the correct password in snapshot 2010-05-16