only available when the administrator has enabled the
_\bc_\bl_\bo_\bs_\be_\bf_\br_\bo_\bm_\b__\bo_\bv_\be_\br_\br_\bi_\bd_\be option in sudoers(4).
- -\b-c\bc _\bc_\bl_\ba_\bs_\bs The -\b-c\bc (_\bc_\bl_\ba_\bs_\bs) option causes s\bsu\bud\bdo\bo to run the specified
- command with resources limited by the specified login class.
- The _\bc_\bl_\ba_\bs_\bs argument can be either a class name as defined in
- _\b/_\be_\bt_\bc_\b/_\bl_\bo_\bg_\bi_\bn_\b._\bc_\bo_\bn_\bf, or a single `-' character. Specifying a
- _\bc_\bl_\ba_\bs_\bs of - indicates that the command should be run
- restricted by the default login capabilities for the user the
- command is run as. If the _\bc_\bl_\ba_\bs_\bs argument specifies an
- existing user class, the command must be run as root, or the
- s\bsu\bud\bdo\bo command must be run from a shell that is already root.
+ -\b-c\bc _\bc_\bl_\ba_\bs_\bs The -\b-c\bc (_\bc_\bl_\ba_\bs_\bs) option causes s\bsu\bud\bdo\bo to run the command with
+ resource limits and scheduling priority of the specified
+ login _\bc_\bl_\ba_\bs_\bs. The _\bc_\bl_\ba_\bs_\bs argument can be either a class name
+ as defined in _\b/_\be_\bt_\bc_\b/_\bl_\bo_\bg_\bi_\bn_\b._\bc_\bo_\bn_\bf, or a single `-' character. If
+ _\bc_\bl_\ba_\bs_\bs is -, the default login class of the target user will
+ be used. Otherwise, the command must be run as the superuser
+ (user ID 0), or s\bsu\bud\bdo\bo must be run from a shell that is already
+ running as the superuser. If the command is being run as a
+ login shell, additional _\b/_\be_\bt_\bc_\b/_\bl_\bo_\bg_\bi_\bn_\b._\bc_\bo_\bn_\bf settings, such as the
+ umask and environment variables, will be applied, if present.
This option is only available on systems with BSD login
classes.
file distributed with s\bsu\bud\bdo\bo or http://www.sudo.ws/sudo/license.html for
complete details.
-Sudo 1.7.10 July 10, 2012 Sudo 1.7.10
+Sudo 1.7.10 December 8, 2013 Sudo 1.7.10
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
.\"
-.TH "SUDO" "@mansectsu@" "July 10, 2012" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
+.TH "SUDO" "@mansectsu@" "December 8, 2013" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
.nh
.if n .ad l
.SH "NAME"
\fB\-c\fR (\fIclass\fR)
option causes
\fBsudo\fR
-to run the specified command with resources limited by the specified
-login class.
+to run the command with resource limits and scheduling priority of
+the specified login
+\fIclass\fR.
The
\fIclass\fR
argument can be either a class name as defined in
or a single
`\-'
character.
-Specifying a
-\fIclass\fR
-of
-\fR-\fR
-indicates that the command should be run restricted by the default
-login capabilities for the user the command is run as.
-If the
+If
\fIclass\fR
-argument specifies an existing user class, the command must be run
-as root, or the
+is
+\fR-\fR,
+the default login class of the target user will be used.
+Otherwise, the command must be run as the superuser (user ID 0), or
\fBsudo\fR
-command must be run from a shell that is already root.
+must be run from a shell that is already running as the superuser.
+If the command is being run as a login shell, additional
+\fI/etc/login.conf\fR
+settings, such as the umask and environment variables, will
+be applied, if present.
This option is only available on systems with BSD login classes.
.TP 12n
\fB\-E\fR
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
.\"
-.Dd July 10, 2012
+.Dd December 8, 2013
.Dt SUDO @mansectsu@
.Os Sudo @PACKAGE_VERSION@
.Sh NAME
.Fl c No ( Em class Ns No )
option causes
.Nm sudo
-to run the specified command with resources limited by the specified
-login class.
+to run the command with resource limits and scheduling priority of
+the specified login
+.Ar class .
The
.Em class
argument can be either a class name as defined in
or a single
.Ql \-
character.
-Specifying a
-.Ar class
-of
-.Li -
-indicates that the command should be run restricted by the default
-login capabilities for the user the command is run as.
-If the
+If
.Ar class
-argument specifies an existing user class, the command must be run
-as root, or the
+is
+.Li - ,
+the default login class of the target user will be used.
+Otherwise, the command must be run as the superuser (user ID 0), or
.Nm sudo
-command must be run from a shell that is already root.
+must be run from a shell that is already running as the superuser.
+If the command is being run as a login shell, additional
+.Pa /etc/login.conf
+settings, such as the umask and environment variables, will
+be applied, if present.
This option is only available on systems with BSD login classes.
.It Fl E
The