Page MenuHomeVyOS Platform

Operator user level permission for "show version"
Closed, ResolvedPublic


The command "show version" throws an error when a user with operator level executed the command.

srivi@vyos> show version

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for srivi:
Sorry, user srivi is not allowed to execute '/usr/libexec/vyos/op_mode/' as root on vyos.

This script "/usr/libexec/vyos/op_mode/" is called with root privileges in the files /opt/vyatta/share/vyatta-op/templates/show/version/, need to remove the parameter "sudo" in front of the script.


Difficulty level
Unknown (require assessment)
VyOS 1.2.7
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)