From bfea87fff2d41c97720970ac8ad4861cd743bf57 Mon Sep 17 00:00:00 2001 From: Matthew Grooms Date: Wed, 3 Sep 2008 17:52:15 +0000 Subject: 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. --- etc/rc.initial.password | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'etc/rc.initial.password') 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); -- cgit v1.1