diff options
author | Matthew Grooms <mgrooms@pfsense.org> | 2008-09-03 17:52:15 +0000 |
---|---|---|
committer | Matthew Grooms <mgrooms@pfsense.org> | 2008-09-03 17:52:15 +0000 |
commit | bfea87fff2d41c97720970ac8ad4861cd743bf57 (patch) | |
tree | ea38abf4173ca09cc1e148901ccc79ce1254b44d /etc/rc.initial.password | |
parent | 89c1777a0b5840c64af7a4105c520656c0bed077 (diff) | |
download | pfsense-bfea87fff2d41c97720970ac8ad4861cd743bf57.zip pfsense-bfea87fff2d41c97720970ac8ad4861cd743bf57.tar.gz |
Remove the page locking privileges after discussion with Scott on IRC. The
feature was confusing and offered little utility that I could see. If we
really need to provide serialized access to sections of the webui, IMO it
should be a global lock option and enabled or disabled manually and not a
privilege that is on all the time.
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); |