OpenDoas
sudo-rs
OpenDoas | sudo-rs | |
---|---|---|
29 | 13 | |
600 | 2,828 | |
- | 0.9% | |
0.0 | 9.6 | |
about 2 months ago | 26 days ago | |
C | Rust | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
OpenDoas
-
A simple guide for configuring sudo and doas
Aditionally,because doas was developed for OpenBSD,it also retains some of its quirks,like how user-installed executables are stored in /usr/local/bin,in contrast to /usr/bin where Linux stores them. As a result,doas can have problems on Linux so the following workaround can be used:
-
The First Stable Release of a Rust-Rewrite Sudo Implementation
https://github.com/Duncaen/OpenDoas/issues/106
That's a pretty severe unsolved security issue.
-
Doas – dedicated OpenBSD application subexecutor
2. https://github.com/Duncaen/OpenDoas/blob/master/timestamp.c
-
Testing the memory safe Rust implementation of Sudo/Su
If you want to move away from Sudo, but don't want to try this rust implementation just yet, I have had great success with OpenBSD's doas. It has been ported to every Linux distro I know of as well:
https://github.com/Duncaen/OpenDoas
-
Doas Mastery (2019)
There are, at both ends. Both the "script kiddies" who cannot deviate from scripts because they lack almost any knowledge at all; and the knowledgeable ones who know that there are subtle differences between sudo and doas which require doing things slightly differently to achieve the same effect.
* https://github.com/Duncaen/OpenDoas/issues/116#issuecomment-...
-
Help me on gentoo
Doas makes more in openbsd world In linux there are many api that need to be changed for porting, i'm no expert but the port might be flawed as not many developers has checked the codebase And how can you explain this vulnerability https://github.com/Duncaen/OpenDoas/issues/106
-
Linux users who are paranoid about security.... what's your opinion about OpenBSD?
Personally I'd prefer running Qubes OS, if only my device would have been more powerful. Currently I'm on Fedora Silverblue as I believe it provides a decent middle-ground in which I'm more secure than almost any other Linux distro while not losing any (meaningful) functionality. I do make use of doas and other technologies inspired from OpenBSD to further enhance the security.
-
Sudo and Su Being Rewritten in Rust for Memory Safety
Why not port https://github.com/Duncaen/OpenDoas to rust instead?
If the goal is security, then there is more to it than just using a memory safe language. Otherwise the result of this, possibly unwittingly, seems performative.
- Bringing Memory Safety to sudo and su
- Using doas instead of sudo on Debian 11
sudo-rs
-
Run0 – systemd based alternative to sudo announced
There is also a write of sudo in Rust, which works more akin to the traditional sudo but memory-safe and with fewer bugs: https://www.memorysafety.org/blog/sudo-first-stable-release/
Source code: https://github.com/memorysafety/sudo-rs
And if you are running Debian 13 (trixie) or later, or Ubuntu 24.04 (Noble Numbat) or later, you can already install it using `apt install sudo-rs`.
-
The First Stable Release of a Rust-Rewrite Sudo Implementation
It seems like those changes are noted here: https://github.com/memorysafety/sudo-rs#differences-from-ori...
- Testing the memory safe Rust implementation of Sudo/Su
-
How to spawn a process as root (like sudo). without sudo?
It uses the setuid flag, just like sudo. The readme says
- Way to improve security of sudo: make a daemon instead of setuid bina
- Two core Unix-like utilities, sudo and su, are getting rewrites in Rust
-
Sudo and Su Being Rewritten in Rust for Memory Safety
https://github.com/memorysafety/sudo-rs/blob/main/proofs/sud...
sidenote: why there is no python like syntax language TLA+ and ability to generate a partial implementation you could hook into (complete) from that model.
- Sudo-rs: A memory safe implementation of sudo and su
- memorysafety/sudo-rs: A memory safe implementation of sudo and su. Sudo-rs is currently under active development and is not suited for any production environment
-
Bringing Memory Safety to sudo and su
If you read the README https://github.com/memorysafety/sudo-rs
> Our current target is to build a drop-in replacement for most basic use cases of sudo. ...
What are some alternatives?
doas - A port of OpenBSD's doas which runs on FreeBSD, Linux, NetBSD, and illumos
runas - An alternative to sudo and doas written in Rust
sudo - Utility to execute a command as another user
nixpkgs - Nix Packages collection & NixOS
tempfile - Temporary file library for rust
bedrocklinux-userland - This tracks development for the things such as scripts and (defaults for) config files for Bedrock Linux
nomicon - The Dark Arts of Advanced and Unsafe Rust Programming
tako - Run commands as another user
sudo - Utility to execute a command as another user
koyo - Run commands as another user
rustsec - RustSec API & Tooling