diff options
Diffstat (limited to 'etc/rc.initial.password')
-rwxr-xr-x | etc/rc.initial.password | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/rc.initial.password b/etc/rc.initial.password index fd27b77..1c865d8 100755 --- a/etc/rc.initial.password +++ b/etc/rc.initial.password @@ -37,7 +37,7 @@ $fp = fopen('php://stdin', 'r'); echo "\n" . gettext(' -The webConfigurator password will be reset to the default (which is "' . strtolower($g['product_name']) . '").') . "\n" . +The webConfigurator admin password and privileges will be reset to the default (which is "' . strtolower($g['product_name']) . '").') . "\n" . gettext('Do you want to proceed [y|n]?'); if (strcasecmp(chop(fgets($fp)), "y") == 0) { @@ -53,9 +53,7 @@ The webConfigurator password will be reset to the default (which is "' . strtolo $admin_user['name'] = "admin"; $admin_user['scope'] = "system"; - - if (!is_array($admin_user['priv'])) - $admin_user['priv'] = explode(",", "user-lock-webcfg,user-lock-ipages,user-shell-access"); + $admin_user['priv'] = array("user-shell-access"); local_user_set_password($admin_user, strtolower($g['product_name'])); local_user_set($admin_user); |