kindly is a simple Rust implementation of a set-user-ID-root program, similar to sudo but in a much reduced way.
MIT License
kindly
is a (hopefully) well-commented Rust implementation of a set-user-ID-root program, similar to sudo
but in a much reduced way.
Notice: this is not a security-hardened application (although it does take a few security measures, described below) and does not aim to replace battle-hardened tools like sudo
or doas
.
rpassword
# Let's get the code and build it
git clone https://github.com/vrmiguel/kindly
cd kindly && cargo build --release
# We now need to make `kindly` officially a set-user-ID-root program by enabling the set-user-ID bit for it
sudo chown root:root target/release/kindly && sudo chmod u+s target/release/kindly