1
0
mirror of https://github.com/rd235/cado synced 2024-12-29 15:30:01 +01:00
cado/man/cado.1

90 lines
3.0 KiB
Groff
Raw Normal View History

2016-06-25 14:12:41 +02:00
.TH CADO 1 "June 23, 2016" "VirtualSquare Labs"
.SH NAME
cado \- Capability Ambient DO
.SH SYNOPSIS
.B cado
[
.I OPTIONS
]
.I capability_list
2016-11-29 09:35:26 +01:00
[
2016-06-25 14:12:41 +02:00
.I command
[
.I args
]
]
.SH DESCRIPTION
2020-05-03 15:37:15 +02:00
Cado allows the system administrator to delegate capabilities to users.
2016-06-25 14:12:41 +02:00
Cado is a capability based sudo. Sudo allows authorized users to run programs as root (or as another user),
cado allows authorized users to run programs with specific (ambient) capabilities.
Cado is more selective than sudo, users can be authorized to have only specific capabilities (and not others).
\fIcapability_list\fR is a comma separated list of capability names or capability masks (exadecimal numbers).
For brevity, the \fBcap_\fR prefix of capability names can be omitted (e.g. \fBnet_admin\fR and \fBcap_net_admin\fR
have the same meaning).
If it is allowed for the current user to run processes with the requested capabilities, the user is asked to
type their password (or to authenticate themselves as required by pam unless \fB-S\fR or \fB--scado\fR).
2016-06-25 14:12:41 +02:00
Once the authentication succeeds, \fBcado\fR executes the command granting the required ambient capabilities.
2016-11-29 09:35:26 +01:00
If \fIcommand\fR is omitted cado launch the command specified in the environment
variable $SHELL.
2016-06-25 14:12:41 +02:00
The file /etc/cado.conf (see \fBcado.conf\fR(5)) defines which capabilities can be provided by \fBcado\fR to each user.
2016-06-25 15:50:54 +02:00
Cado itself is not a setuid executable, it uses the capability mechanism and it has an option to
2016-06-25 14:12:41 +02:00
set its own capabilities. So after each change in the /etc/cado.conf, the capability set should be
recomputed by root using the command \fBcado -s\fR or \fBcado --setcap\fR.
When \fBcado\fR runs is scado mode (by the option \fB-S\fR or \fB--scado\fR), if
.br
\ \ - the current user is allowed to run processes with the requested capabilities,
.br
\ \ - the \fBcommand\fR argument is an absolute pathname and
.br
\ \ - there is a specific authorization line in the user's scado file,
.br
\fBcado\fR runs the command granting the required ambient capabilities without any further authentication request
(it does not prompt for a password).
.br
2016-06-25 14:12:41 +02:00
.SH OPTIONS
.I cado
accepts the following options:
.TP
\fB\-v
.TQ
\fB\-\-verbose
run in verbose mode. \fBcado\fR shows the set of allowed capabilities, requested cababilities, unavailable capabilities and
(in case of -s) the set of capabilities assigned to \fBcado.conf\fR itself.
.TP
\fB\-f
2016-06-25 14:12:41 +02:00
.TQ
\fB\-\-force
2016-08-22 18:59:04 +02:00
do not fail in case the user asks for unavailable capabilities, \fBcado\fR in this case grants the intersection between the
2016-06-25 14:12:41 +02:00
set of requested cababilities and the set of allowed capabilities
.TP
\fB\-s
.TQ
\fB\-\-setcap
\fBcado\fR computes the miminal set of capability required by itself and sets the file capability of the cado executable.
.TP
\fB\-S
.TQ
\fB\-\-scado
launch \fBcado\fR with \fBscado\fR(1) support. \fIcommand\fR must be an absolute pathname and a specific authorization line must
appear in the user's scado file.
.TP
2016-06-25 14:12:41 +02:00
\fB\-h
.TQ
\fB\-\-help
print a short usage banner and exit.
.SH SEE ALSO
\fBcado.conf\fR(5),
\fBcaprint\fR(1),
\fBscado\fR(1),
2016-06-25 14:12:41 +02:00
\fBcapabilities\fR(7)