Page MenuHomeVyOS Platform

Operational mode commands cannot be executed when the effective UID is already zero
Closed, ResolvedPublicBUG

Description

vyos@vyos-rt:~$ ping www.baidu.com
PING www.a.shifen.com (110.242.69.21) 56(84) bytes of data.
64 bytes from 110.242.69.21 (110.242.69.21): icmp_seq=1 ttl=55 time=8.02 ms
^C
--- www.a.shifen.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 8.020/8.020/8.020/0.000 ms

vyos@vyos-rt:~$ sudo su

root@vyos-rt:/home/vyos# ping www.baidu.com
Internal error: User vyos is not assigned to any operator group

root@vyos-rt:/home/vyos# $(which ping) www.baidu.com
PING www.a.shifen.com (110.242.69.21) 56(84) bytes of data.
64 bytes from 110.242.69.21 (110.242.69.21): icmp_seq=1 ttl=55 time=8.89 ms
^C
--- www.a.shifen.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 8.885/8.885/8.885/0.000 ms

Details

Version
2025.10.01-0021-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Seems all commands by op mode report same error

root@vyos-rt:~# show
Internal error: User vyos is not assigned to any operator group
root@vyos-rt:~# set
Internal error: User vyos is not assigned to any operator group
root@vyos-rt:~# update
Internal error: User vyos is not assigned to any operator group
Unknown Object (User) triaged this task as Normal priority.Oct 3 2025, 1:20 PM
dmbaturin renamed this task from "User vyos is not assigned to any operator group" when execute command after sudo su. to Operational mode commands cannot be executed by the root user.Thu, Dec 4, 2:31 PM
dmbaturin claimed this task.
dmbaturin removed a project: VyOS Rolling.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin added subscribers: L0crian, dmbaturin, Viacheslav.
dmbaturin renamed this task from Operational mode commands cannot be executed by the root user to Operational mode commands cannot be executed when the effective UID is already zero.Thu, Dec 4, 2:34 PM