summaryrefslogtreecommitdiff
path: root/templates/show
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-06 21:32:29 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-06 21:32:29 -0700
commit0e5441219e9e3ca70bb11bd91622cd8028141475 (patch)
tree7098c965f80e6b448b41772b3f50bdf5dca9a7d5 /templates/show
parent187f457e33f40c4f370700b5dd22d0d2de903450 (diff)
downloadvyatta-op-0e5441219e9e3ca70bb11bd91622cd8028141475.tar.gz
vyatta-op-0e5441219e9e3ca70bb11bd91622cd8028141475.zip
Add show login commands
Bug 5554 Add CLI interface to user state commands (who, id, etc)
Diffstat (limited to 'templates/show')
-rw-r--r--templates/show/login/groups/node.def2
-rw-r--r--templates/show/login/level/node.def2
-rw-r--r--templates/show/login/node.def2
-rw-r--r--templates/show/login/user/node.def2
4 files changed, 8 insertions, 0 deletions
diff --git a/templates/show/login/groups/node.def b/templates/show/login/groups/node.def
new file mode 100644
index 0000000..953f866
--- /dev/null
+++ b/templates/show/login/groups/node.def
@@ -0,0 +1,2 @@
+help: Show current login group information
+run: id -gn
diff --git a/templates/show/login/level/node.def b/templates/show/login/level/node.def
new file mode 100644
index 0000000..a732234
--- /dev/null
+++ b/templates/show/login/level/node.def
@@ -0,0 +1,2 @@
+help: Show current login level
+run: [ -n "$VYATTA_USER_LEVEL_DIR" ] && basename $VYATTA_USER_LEVEL_DIR
diff --git a/templates/show/login/node.def b/templates/show/login/node.def
new file mode 100644
index 0000000..02061ef
--- /dev/null
+++ b/templates/show/login/node.def
@@ -0,0 +1,2 @@
+help: Show current login credentials
+run: ${vyatta_bindir}/vyatta-show-current-user
diff --git a/templates/show/login/user/node.def b/templates/show/login/user/node.def
new file mode 100644
index 0000000..eae80c6
--- /dev/null
+++ b/templates/show/login/user/node.def
@@ -0,0 +1,2 @@
+help: Show current login user id
+run: id -un