Closed Rasmus-Bertell closed 3 years ago
After a quick search and glance through man pages I can't find a way to use su
with user ID, however, id -un <user id>
gets the username and could be used in conjunction with su
. I'll fork and try to implement this, but it might take a while.
I ended up installing sudo on my systems since doas had it's own problems so I no longer need this and implementing it is beyond my skills with Rust.
Environment
Description
Running
dotter
withoutsudo
fails.Reproduction
Have a file that requires elevation and run
dotter
on a system withoutsudo
.Expected behavior
Use
su
as a backup whensudo
is not available, not all systems havesudo
. I can also symlinkdoas
tosudo
on my gentoo system and it seems to work.Actual behavior
I understand that
sudo
is quite popular and implementing this edge case scenario might be a bit out of scope. I can also try to create a solution for this, but I have very little experience with Rust. Let me know if I can help.