-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo must be owned by uid 0 and have the setuid bit set #22914
Comments
It was just a broken env. Sorry to bother you. |
nix-user-chroot breaks sudo for instance with the same error message. There might a fix for that, but I have not yet looked into it. |
@pstn's occurence was due to the setuid sudo binary being moved from |
I was bit by this and was very confused for some time, but it turns out that the PATH was being overwritten by ~/.zshenv. With that line deleted and a reboot, everything works. So if you're a zsh user bit by this bug, please check both your .zshrc and .zshenv for any lines setting PATH, and remove them. |
Let's keep this issue open until the temporary symlink is added so this isn't forgotten. |
What's the symlink fix? I'd like to get |
The idea of the symlink fix is just to make |
Ohhh, I tried |
I upgraded from 17.03 to 18.03 and I have this problem.
This did not help. |
This makes setuid wrappers not fail after upgrading. references NixOS#23641, NixOS#22914, NixOS#19862, NixOS#16654 (cherry picked from commit e82baf0)
Issue description
The sudo binary doesn't have an setuid bit that it needs to be useful.
Could be because of the pcap wrappers merge.
Steps to reproduce
Install sudo, try to run it.
Technical details
The text was updated successfully, but these errors were encountered: