Closed 41Leahcim closed 11 months ago
Thanks for your report Michael.
sudo-rs is a "setuid" program, the binary needs to be owned by root
and have the "setuid" flag set in order to escalate privileges, just like the original sudo. See https://github.com/memorysafety/sudo-rs/blob/main/README.md?plain=1#L31
You can fix this by running the following as root:
chown root /path/to/sudo-rs
chmod 4755 /path/to/sudo-rs
Describe the bug When I try to use sudo-rs, I get the following error:
sudo-rs: sudo must be owned by uid 0 and have the setuid bit set -> error refreshing databases - exit status 1
I don't get this error with the original sudo written in C.To Reproduce Steps to reproduce the behavior:
cargo install sudo-rs
Expected behavior Yay should update my software, but can't because it can't get root access.
Environment (please complete the following information):
sudo-rs
version: 0.2.1Additional context Add any other context about the problem here.