summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorsrividya0208 <68350089+srividya0208@users.noreply.github.com>2021-05-20 00:21:43 +0530
committerGitHub <noreply@github.com>2021-05-19 20:51:43 +0200
commitc23255302bbe4715ec99708b4ea2cca5be27733d (patch)
tree127b5f1dfba48a216c133d315955523efcbb5bc2 /op-mode-definitions
parent9fb7b7560ea8907f4bcae2f44e7373fb2eb99606 (diff)
downloadvyos-1x-c23255302bbe4715ec99708b4ea2cca5be27733d.tar.gz
vyos-1x-c23255302bbe4715ec99708b4ea2cca5be27733d.zip
op-mode: T3521: allowing operator users to execute "show version"
The operator user should atleast be able to see the software version of the server till a proper role-based access control is implemented in the future. Removed "sudo" from the scripts so that "show version" command could be run by non-root user.
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/version.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/version.xml b/op-mode-definitions/version.xml
index caf0dd6ea..5e302c57f 100644
--- a/op-mode-definitions/version.xml
+++ b/op-mode-definitions/version.xml
@@ -6,13 +6,13 @@
<properties>
<help>Show system version information</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/version.py</command>
+ <command>${vyos_op_scripts_dir}/version.py</command>
<children>
<leafNode name="funny">
<properties>
<help>Show system version and some fun stuff</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/version.py --funny</command>
+ <command>${vyos_op_scripts_dir}/version.py --funny</command>
</leafNode>
<leafNode name="all">
<properties>