Bug #574
closedConfig upgrade for non-default admin username broken
50%
Description
Configs with an admin username other than 'admin' don't upgrade properly.
Updated by Seth Mos over 14 years ago
- Category changed from Configuration Upgrade to User Manager / Privileges
- Status changed from New to Feedback
- % Done changed from 0 to 50
Fixed the local user account sync, this had the admin user account hardcoded. It also attempted to perform a usermod operation before the user existed.
Changed the order of the local_user_set() function and corrected the hard coded username.
Appended -o to the user add operation to allow for multiple uid 0 users, which is required for the admin account.
Updated by Jim Pingle over 14 years ago
- Status changed from Resolved to New
This is now giving admin a shell of /bin/sh when it should be /etc/rc.initial
Updated by Erik Fonnesbeck over 14 years ago
The line already said /bin/sh, but if that part wasn't working before, then it wouldn't have changed it. It is probably the line that looks like this:
$cmd = "/usr/sbin/pw usermod -q -n {$user_name} -s /bin/sh -H 0";
If it is only used for users that should get the console menu, then it should probably look like this instead:
$cmd = "/usr/sbin/pw usermod -q -n {$user_name} -s /etc/rc.initial -H 0";
Updated by Seth Mos over 14 years ago
- Status changed from New to Feedback
Changed the pw usermod for the administrator account from /bin/sh to /etc/rc.initial. This should fix the wrong shell.
Updated by Seth Mos over 14 years ago
- Status changed from Feedback to Resolved
Verified that this change correctly sets the shell for the administrator user.