qmetrics.net

Sudo Rs

Memory-safe Rust sudo and su implementation

sudo-rs implements sudo and su in Rust for FreeBSD and Linux, aiming to replace common privilege-elevation workflows with a smaller, safety-oriented feature set.

Overview

sudo-rs provides sudo, sudoedit, visudo, and su-style commands for elevating privileges or switching users. It is actively maintained but does not yet mirror every legacy sudo capability; unsupported options or sudoers flags surface as clear errors in most cases.

Distributions package it under names like sudo-rs or su-rs to avoid clashing with Todd Miller's sudo, and several Linux flavors enable it by default or offer it in their repositories. You can also install project-provided x86-64 Linux tarballs under /usr/local so the usual command names take precedence in PATH. PAM configuration and a valid sudoers file are required for a working setup.

Authentication always goes through PAM using the sudo and sudo-i service names, so resource limits and umasks belong in PAM rather than sudoers. The sudoers file must be UTF-8. Wildcard semantics for command arguments differ from classic sudo in ways documented to reduce risky patterns. Optional build features cover pam-login naming, AppArmor profile selection, and translated messages.

Key features

  • Rust implementation of sudo and su
  • PAM-based authentication
  • Distribution packages on major Linux BSD
  • Prebuilt x86-64 Linux tarball installs
  • sudoers syntax for common distro defaults
  • Optional AppArmor profile support
  • Optional translated user messages
  • Documented gaps versus classic sudo

Use cases

  • Replacing distro sudo with sudo-rs
  • Hardened privilege elevation on Linux
  • FreeBSD ports-based sudo deployment
  • Local /usr/local install without package swap
  • su replacement alongside sudo-rs

Similar software

Keycloak

Identity and access management for applications and services

Keycloak adds authentication and single sign-on to applications so they do not store or verify users themselves. It supports standard protocols and central admin tools.

  • Single sign-on across applications
  • OpenID Connect, OAuth 2.0, and SAML
  • Social login and identity brokering
JavaDockerDetails →
★ 38.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+7

JumpServer

Open-source bastion host for privileged access

JumpServer is a privileged access management platform that unifies secure access to SSH, RDP, Kubernetes, databases, and web assets.

  • SSH and RDP session access
  • Kubernetes pod connections
  • Database connector via web
PythonWeb, Linux, DockerDetails →
★ 32.1k⟳ todayGPL-3.0
Open Source Alternative to:BeyondTrust

Better Auth

Composable TypeScript authentication and authorization framework

Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.

  • TypeScript auth configuration in code
  • Email and password sessions
  • Social OAuth providers
TypeScriptDetails →
★ 31k⟳ todayMIT
Open Source Alternative to:Amazon CognitoAuth0+3

Authelia

Self-hosted SSO portal with multi-factor authentication

Authentication and authorization server that sits in front of reverse proxies. Provides a web portal for login, OpenID Connect, and granular access rules with several second-factor methods.

  • OpenID Connect and OAuth 2.0 provider
  • WebAuthn passkeys and FIDO2 keys
  • TOTP and Duo push second factors
GoWeb, DockerDetails →
★ 29.8k⟳ 2 days agoApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+7

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

  • OAuth 2.0 and OIDC providers
  • Email and passwordless sign-in
  • WebAuthn passkey support
TypeScriptDetails →
★ 28.4k⟳ 4 months agoISC
Open Source Alternative to:Amazon CognitoAuth0+4

authentik

Self-hosted identity provider for SSO protocols

authentik centralizes authentication with SAML, OAuth2, OIDC, LDAP, RADIUS, and related flows. It targets small labs through production clusters you deploy yourself.

  • SAML and OAuth2/OIDC
  • LDAP and RADIUS
  • Application proxy
PythonDockerDetails →
★ 26.6k⟳ todayMIT · open core
Open Source Alternative to:Amazon CognitoAuth0+7