summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-21 19:08:58 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-21 19:08:58 -0800
commit8db8c057e889839fed65353070a15a8b70212e19 (patch)
tree6951e645648deffcfc00596c83ac2f63a02b9633
parent7df04d877673f74523315d2750a232fdcad2cb5d (diff)
downloadvyatta-cfg-quagga-8db8c057e889839fed65353070a15a8b70212e19.tar.gz
vyatta-cfg-quagga-8db8c057e889839fed65353070a15a8b70212e19.zip
fix for bug 2764: rename user level
-rwxr-xr-xscripts/system/vyatta_update_login_user.pl2
-rw-r--r--templates/system/login/user/node.tag/level/node.def6
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/system/vyatta_update_login_user.pl b/scripts/system/vyatta_update_login_user.pl
index 745b85d1..a059c227 100755
--- a/scripts/system/vyatta_update_login_user.pl
+++ b/scripts/system/vyatta_update_login_user.pl
@@ -138,7 +138,7 @@ if ($user eq "-d") {
my %level_map = (
'admin' => [ 'users', 'quaggavty', 'vyattacfg', 'sudo', ],
- 'users' => [ 'users', 'quaggavty', ],
+ 'operator' => [ 'users', 'quaggavty', ],
);
exit 4 if (!defined($user) || !defined($full) || !defined($encrypted)
|| !defined($level));
diff --git a/templates/system/login/user/node.tag/level/node.def b/templates/system/login/user/node.tag/level/node.def
index 66561e12..2596bd7a 100644
--- a/templates/system/login/user/node.tag/level/node.def
+++ b/templates/system/login/user/node.tag/level/node.def
@@ -1,7 +1,7 @@
type: txt
help: User privilege level
default: "admin"
-syntax:expression: $VAR(@) in "admin", "users"; "Allowed levels are \"admin\" and \"users\""
+syntax:expression: $VAR(@) in "admin", "operator"; "Allowed levels are \"admin\" and \"operator\""
comp_help:Possible completions:
- admin\t\tAdministrators
- users\t\tNormal users
+ admin Administrators
+ operator Operators