[Bug]: sudo: The "no new privileges" flag is set, which prevents sudo from running as root. sudo:
Current Behavior
Hi,
Executing a command via sudo in a wave terminal generates the following error:
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
Expected Behavior
I expect that commands via sudo will work and not generate an error.
sudo works on my platform from other terminal emulators, e.g. Terminator.
Steps To Reproduce
Execute a sudo command from a wave terminal.
Wave Version
Client Version 0.11.0 (202501250008)
Platform
Linux
OS Version/Distribution
Linux Mint: Linux 6.8.0-51-generic #52~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Dec 9 15:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linu
Architecture
x64
Anything else?
Thank you for considering this ticket.
Questionnaire
- [ ] I'm interested in fixing this myself but don't know where to start
- [ ] I would like to fix and I have a solution
- [ ] I don't have time to fix this right now, but maybe later
Is there a workaround for this issue?
ditto. this blocks my normal work.
I'm having the same issue now.
Operating System: Pardus 23.3 - (Debian 12.9 based distribution) Kernel Version: 6.12.9+bpo-amd64 Client Version 0.11.1 (202502280141)
Plus one to this. I'd like to use wave but this totally blocks my work so I unfortunately can't use it.
OS: Manjaro Linux (Arch based) Kernel: Linux 6.13.7-1-MANJARO Client: Client Version 0.11.2 (202503082051)
Edit: This happened when I installed the native .pacman package. When I installed the AppImage instead, the error no longer happened. Wonder if this only happens to the native packages?
This is still an issue.
OS: Kubuntu Focus Suite (Kubuntu 24.04 LTS) Kernel: Linux 6.8.0-51-kfocus Client: Client Version 0.11.3 (202505051801)
The .deb package was installed.
Edit: After logging out and then logging back in, the sudo command is working properly in waveterm.
Clearly the developer hasn't replied to this, which is kind of sad. But judging solely by the distros mentioned in the comments, this seems to exist at least on all Debian-based distros like Ubuntu, Manjaro, and Linux Mint, which I first experienced this on. You can solve this issue by starting wave with the --no-sandbox option, or if you start from gnome or cinnamon, then just edit the properties for the shortcut and add that option. Sudo will examine any program that calls it, and if it's not directly from the command-line then it will consider that to be a call from within a container. The no sandbox option tells the calling program to shell out as though it's not a sand boxed container.
@kbtrotman Thank you for the workaround. I've pretty much moved on from wave, but may give your solution a shot to see if there is a reason to go back.
I recently update my wave and have this problem . anybody has a solution for this problem?
OS: Linux io 6.14.0-33-generic #33~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 17:02:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
wave version: Client Version 0.12.1 (202510210646)