summaryrefslogtreecommitdiff
path: root/sshd_config.5
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-01-25 22:36:22 +0000
committerDamien Miller <djm@mindrot.org>2020-01-26 10:15:13 +1100
commitbf986a9e2792555e0879a3145fa18d2b49436c74 (patch)
tree7c882f47638dbc75d2b804317aa49ca0617453db /sshd_config.5
parent022ce92fa0daa9d78830baeb2bd2dc3f83c724ba (diff)
upstream: clarify order of AllowUsers/DenyUsers vs
AllowGroups/DenyGroups; bz1690, ok markus@ OpenBSD-Commit-ID: 5637584ec30db9cf64822460f41b3e42c8f9facd
Diffstat (limited to 'sshd_config.5')
-rw-r--r--sshd_config.526
1 files changed, 7 insertions, 19 deletions
diff --git a/sshd_config.5 b/sshd_config.5
index 63a7dfdde..d47cb0d24 100644
--- a/sshd_config.5
+++ b/sshd_config.5
@@ -33,7 +33,7 @@
33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: sshd_config.5,v 1.300 2020/01/25 07:09:14 tedu Exp $ 36.\" $OpenBSD: sshd_config.5,v 1.301 2020/01/25 22:36:22 djm Exp $
37.Dd $Mdocdate: January 25 2020 $ 37.Dd $Mdocdate: January 25 2020 $
38.Dt SSHD_CONFIG 5 38.Dt SSHD_CONFIG 5
39.Os 39.Os
@@ -113,11 +113,8 @@ If specified, login is allowed only for users whose primary
113group or supplementary group list matches one of the patterns. 113group or supplementary group list matches one of the patterns.
114Only group names are valid; a numerical group ID is not recognized. 114Only group names are valid; a numerical group ID is not recognized.
115By default, login is allowed for all groups. 115By default, login is allowed for all groups.
116The allow/deny directives are processed in the following order: 116The allow/deny groups directives are processed in the following order:
117.Cm DenyUsers ,
118.Cm AllowUsers ,
119.Cm DenyGroups , 117.Cm DenyGroups ,
120and finally
121.Cm AllowGroups . 118.Cm AllowGroups .
122.Pp 119.Pp
123See PATTERNS in 120See PATTERNS in
@@ -173,12 +170,9 @@ are separately checked, restricting logins to particular
173users from particular hosts. 170users from particular hosts.
174HOST criteria may additionally contain addresses to match in CIDR 171HOST criteria may additionally contain addresses to match in CIDR
175address/masklen format. 172address/masklen format.
176The allow/deny directives are processed in the following order: 173The allow/deny users directives are processed in the following order:
177.Cm DenyUsers , 174.Cm DenyUsers ,
178.Cm AllowUsers , 175.Cm AllowUsers .
179.Cm DenyGroups ,
180and finally
181.Cm AllowGroups .
182.Pp 176.Pp
183See PATTERNS in 177See PATTERNS in
184.Xr ssh_config 5 178.Xr ssh_config 5
@@ -552,11 +546,8 @@ Login is disallowed for users whose primary group or supplementary
552group list matches one of the patterns. 546group list matches one of the patterns.
553Only group names are valid; a numerical group ID is not recognized. 547Only group names are valid; a numerical group ID is not recognized.
554By default, login is allowed for all groups. 548By default, login is allowed for all groups.
555The allow/deny directives are processed in the following order: 549The allow/deny groups directives are processed in the following order:
556.Cm DenyUsers ,
557.Cm AllowUsers ,
558.Cm DenyGroups , 550.Cm DenyGroups ,
559and finally
560.Cm AllowGroups . 551.Cm AllowGroups .
561.Pp 552.Pp
562See PATTERNS in 553See PATTERNS in
@@ -573,12 +564,9 @@ are separately checked, restricting logins to particular
573users from particular hosts. 564users from particular hosts.
574HOST criteria may additionally contain addresses to match in CIDR 565HOST criteria may additionally contain addresses to match in CIDR
575address/masklen format. 566address/masklen format.
576The allow/deny directives are processed in the following order: 567The allow/deny users directives are processed in the following order:
577.Cm DenyUsers , 568.Cm DenyUsers ,
578.Cm AllowUsers , 569.Cm AllowUsers .
579.Cm DenyGroups ,
580and finally
581.Cm AllowGroups .
582.Pp 570.Pp
583See PATTERNS in 571See PATTERNS in
584.Xr ssh_config 5 572.Xr ssh_config 5