summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/default/vyatta-cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/default/vyatta-cfg b/etc/default/vyatta-cfg
index dfb4006..ef02233 100644
--- a/etc/default/vyatta-cfg
+++ b/etc/default/vyatta-cfg
@@ -33,6 +33,10 @@ for g in "${groups[@]}"; do
is_users=1
fi
done
+# root is also admin
+if [ "$(id -u)" == 0 ]; then
+ is_admin=1
+fi
# check level from high to low
if [ $is_admin == 1 ]; then
declare -x -r VYATTA_USER_LEVEL_DIR=${vyatta_sysconfdir}/shell/level/admin