From 3fdbde8ca0342f8cc2f744f25a7e9491577abedb Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 4 Jun 2020 16:09:44 +0200 Subject: op-mode: T2546: add "show login" commands --- op-mode-definitions/show-login.xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 op-mode-definitions/show-login.xml (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-login.xml b/op-mode-definitions/show-login.xml new file mode 100644 index 000000000..6d8c782c4 --- /dev/null +++ b/op-mode-definitions/show-login.xml @@ -0,0 +1,33 @@ + + + + + + + Show current login credentials + + ${vyos_op_scripts_dir}/show_current_user.sh + + + + Show current login group information + + /usr/bin/id -Gn + + + + Show current login level + + if [ -n "$VYATTA_USER_LEVEL_DIR" ]; then basename $VYATTA_USER_LEVEL_DIR; fi + + + + Show current login user id + + /usr/bin/id -un + + + + + + -- cgit v1.2.3