Page MenuHomeVyOS Platform

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

Description

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

[email protected]> 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/version.py' as root on vyos.

This script "/usr/libexec/vyos/op_mode/version.py" 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.

Details

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