67 lines
1.2 KiB
Groff
67 lines
1.2 KiB
Groff
.TH RDO 1 "August 2025" "rdo 1.4.3" "User Commands"
|
|
.SH NAME
|
|
rdo \- execute commands as the superuser
|
|
.SH SYNOPSIS
|
|
.B rdo
|
|
[\fB-\fP]
|
|
\fIcommand\fP [\fIargs ...\fP]
|
|
.SH DESCRIPTION
|
|
The
|
|
.B rdo
|
|
utility allows a user to run a command as the superuser.
|
|
.B rdo
|
|
authenticates the user by asking for their password.
|
|
Once authenticated,
|
|
.B rdo
|
|
can optionally cache the successful authentication for a configurable duration.
|
|
.PP
|
|
The security policy is configured in the
|
|
.I /etc/rdo.conf
|
|
file. This file determines which users are permitted to use
|
|
.BR rdo .
|
|
.SH OPTIONS
|
|
.TP
|
|
.B \-
|
|
Read the password from standard input instead of the terminal.
|
|
.SH EXIT STATUS
|
|
The
|
|
.B rdo
|
|
utility exits with one of the following values:
|
|
.TP
|
|
\fB0\fP
|
|
The usage message was printed and
|
|
.B rdo
|
|
exited.
|
|
.TP
|
|
\fB1\fP
|
|
An error occurred.
|
|
.PP
|
|
Otherwise, the exit status is that of the command executed.
|
|
.SH FILES
|
|
.TP
|
|
.I /etc/rdo.conf
|
|
The
|
|
.B rdo
|
|
configuration file.
|
|
.SH EXAMPLES
|
|
Run the
|
|
.I id
|
|
command as the superuser:
|
|
.IP
|
|
.EX
|
|
$ rdo id -u
|
|
.EE
|
|
.PP
|
|
Run a shell as the superuser:
|
|
.IP
|
|
.EX
|
|
$ rdo /bin/sh
|
|
.EE
|
|
.SH SEE ALSO
|
|
.BR doas (1),
|
|
.BR sudo (8),
|
|
.BR rdo.conf (5)
|
|
.SH AUTHOR
|
|
The
|
|
.B rdo
|
|
project was created by sw1tchbl4d3 and was heavily modified by coast and soccera.
|