summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-29 16:29:21 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-29 16:29:21 -0700
commit89fe48dea3fd1e3cbbacc0e78f58d277d72168b8 (patch)
treed0f3b226b1524ed5612f7b83eb2e1335ad879f63 /templates/system
parent5439d0bb321b8121d0d25060c1b74086b7aa9be5 (diff)
downloadvyatta-cfg-quagga-89fe48dea3fd1e3cbbacc0e78f58d277d72168b8.tar.gz
vyatta-cfg-quagga-89fe48dea3fd1e3cbbacc0e78f58d277d72168b8.zip
Rework how user accounts are managed
Rewrite the scripts that manage user accounts to: 1) use Posix standard useradd, userdel scripts rather than modifying passwd/group files directly. 2) add home-directory field to account management 3) support adding accounts to additional groups Note: this code should now also work with NIS since it has no direct access to /etc/passwd.
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/login/user/node.tag/group/node.def10
-rw-r--r--templates/system/login/user/node.tag/home-directory/node.def2
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/system/login/user/node.tag/group/node.def b/templates/system/login/user/node.tag/group/node.def
new file mode 100644
index 00000000..4466c5de
--- /dev/null
+++ b/templates/system/login/user/node.tag/group/node.def
@@ -0,0 +1,10 @@
+multi:
+type: txt
+help: Set additional group membership
+syntax:expression: ! $VAR(@) in "quaggavty", "vyattacfg", "sudo", "adm", "operator" ;
+ "Use configuration level to change membership of operator and admin groups"
+allowed: awk -F: '
+ $1 == "quaggavty" || $1 == "vyattacfg" || \
+ $1 == "sudo" || $1 == "adm" || $1 == "operator" { next; }
+ {printf "%s ", $1}' </etc/group
+comp_help: Enter group name or numerical group id
diff --git a/templates/system/login/user/node.tag/home-directory/node.def b/templates/system/login/user/node.tag/home-directory/node.def
new file mode 100644
index 00000000..3dbd8a19
--- /dev/null
+++ b/templates/system/login/user/node.tag/home-directory/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: Set home directory