visudo is a command-line utility that allows editing the sudo configuration file in a fail-safe manner. It prevents multiple simultaneous edits with
locks and performs
sanity and syntax checks. Sudoedit is a program that symlinks to the sudo binary. When sudo is run via its sudoedit alias, sudo behaves as if the -e flag has been passed and allows users to edit files that require additional privileges to write to. Microsoft released its own tool also called for
Windows in February 2024. Its interface is similar to its Unix counterpart by giving the ability to run elevated commands from an unelevated console session, although its implementation is entirely different. The program
runas provides comparable functionality in Windows, but it cannot pass current directories, environment variables or long command lines to the child. And while it supports running the child as another user, it does not support simple elevation.
Hamilton C shell also includes true and for Windows that can pass all of that state information and start the child either elevated or as another user (or both).
Graphical user interfaces exist for sudo – notably
gksudo – but are deprecated in
Debian and no longer included in
Ubuntu. Other user interfaces are not directly built on sudo, but provide similar temporary privilege elevation for administrative purposes, such as
pkexec in Unix-like operating systems,
User Account Control in
Microsoft Windows and
Mac OS X Authorization Services. gosu is a tool similar to sudo that is popular in containers where the terminal may not be fully functional or where there are undesirable effects from running sudo in a containerized environment. A rewrite of sudo, called sudo-rs, written in the
Rust programming language, became adopted as the default in
Ubuntu. ==See also==