From owner-freebsd-questions@freebsd.org Wed Mar 25 05:01:40 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B87CF275C43 for ; Wed, 25 Mar 2020 05:01:40 +0000 (UTC) (envelope-from dave.mehler@gmail.com) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48nGDV4801z4Ndm for ; Wed, 25 Mar 2020 05:01:30 +0000 (UTC) (envelope-from dave.mehler@gmail.com) Received: by mail-io1-xd33.google.com with SMTP id n21so974408ioo.10 for ; Tue, 24 Mar 2020 22:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gCxt+P97h4FAda9co1abIpDpVSJx8GYHzKKP/WHGbOA=; b=dvOiDGPCSJeOH67DBPpA4G1pmXCGNG1dMWS+4sRql2E3mZfdRR/FVA0oLKhc1A8bej LMEgheOzLeVk1qulB3Uux9pZUNrYlMoBDRlsDEgF3hmKbbzJvddv+j4zzZV8I6PciWaD ZXq/zrk71EaegKQl46TZAwhagY1UeYV14FDSfzok3Q0Y6RhUyAmmoJfU7BGewXvxEP22 98Auybwwp/JQ8ZjvOalfHqLtsA2FoUFeCmUbcx5Ssosy6XE20BBnZZWb5rQuqmMuizoE vtTPFuHTf5k4agHNfjCIqB8k2nVJRYqNS5eFLGe560cmIVWLn56aRwz8UtyFgjrLWe7F xMsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gCxt+P97h4FAda9co1abIpDpVSJx8GYHzKKP/WHGbOA=; b=VNKxWMPlofVswL64mN9wbKjdgi37QgL8Py3l+JVOuEhODCLEemvho4G6o3LFIbPkhR qGGAB82CM+zYhZNPiYjHaprXTU7QauwVLPVe3CycIIiwGiTKPadxz2kOCDhnZMxxYL8i LXoGZsK+t1kY3HGKSGhZOkbRBs25JQSIzICDMw8fUdDej31bR+TxrNhrqZw1Ief1girj uRtm66Ra0L+lKmSbvRuVKIU9sEXSpzm7xnESmcNwZhBAGa2QXDWGEfEdrsRN3NKlsWp+ 1KLSH1ej2fOVpNbTaaejbVLhAYTb1ceuTMZe969sca0MM9WzjN5MZDOdGdjt49h/pxmM DM0g== X-Gm-Message-State: ANhLgQ0XyEtLeCeCP4PNna9dqCae4b0aIIn8xvQHq4MDw4ewh2Z899w1 4W5XQlErmMxVRhzMP/aGsYGS8zB1ljrMqmS6td0GqSzT X-Google-Smtp-Source: ADFU+vvGWvvi8QWPVvEg5IPaCkAgjmJeU7Qk4o8FQVqQcDsrVbmS4Dem8za/4O6MRW16FNymI1OEnGOyoZOjwGaNH8w= X-Received: by 2002:a5d:878c:: with SMTP id f12mr1350549ion.164.1585112483699; Tue, 24 Mar 2020 22:01:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:8487:0:0:0:0:0 with HTTP; Tue, 24 Mar 2020 22:01:23 -0700 (PDT) In-Reply-To: <208460FC-FD0D-48F8-987A-A3B589B3A8B0@huiekin.org> References: <208460FC-FD0D-48F8-987A-A3B589B3A8B0@huiekin.org> From: David Mehler Date: Wed, 25 Mar 2020 01:01:23 -0400 Message-ID: Subject: Re: sshd not allowing a subgroup to authenticate according to it's authentication method To: Jim Trigg Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 48nGDV4801z4Ndm X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=dvOiDGPC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of davemehler@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) smtp.mailfrom=davemehler@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-5.68), ipnet: 2607:f8b0::/32(-0.38), asn: 15169(-0.48), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 05:01:41 -0000 Hello, Thanks, actually it's not anyone in the sshusers group, that's working fine, and I am not in sftpusers. Other users are in that group and they're being prompted for public keys and rejected because they're trying to use passwords. Thanks. Dave. On 3/25/20, Jim Trigg wrote: > At a guess, you're also a member of sshusers. Try putting the sftpusers > stanza before the sshusers stanza. > > Thanks, > Jim Trigg > > > On March 24, 2020 7:52:00 PM EDT, David Mehler > wrote: >>Hello, >> >>I'm running sshd on FreeBSD 12.1. I'm having an issue, I want users in >>a group sftpusers to be able to be logged in via password and to be >>chrooted to their home directories. Everytime I try to log in I'm >>getting no supported authenticationmethods publickey. From the man >>page I thought that a group definition overrode a global configuration >>setting. Here's a config snipet: >> >># Authentication: >>AuthenticationMethods publickey >>#StrictModes yes >>#PubkeyAuthentication yes >>#PasswordAuthentication no >>#PermitEmptyPasswords no >>ChallengeResponseAuthentication no >>UsePAM no >>AllowAgentForwarding no >>AllowTcpForwarding no >>#GatewayPorts no >>#ChrootDirectory none >>Subsystem sftp internal-sftp >># Set up groups for different types of logins >>AllowGroups sshusers sftpusers >> >>Match Group sshusers >>PubkeyAuthentication yes >>PasswordAuthentication no >>X11Forwarding no >>AllowTcpForwarding no >> AllowAgentForwarding no >> PermitTunnel no >> >>Match Group sftpusers >>ChrootDirectory /home/%u >>ForceCommand internal-sftp >>X11Forwarding no >>AllowTcpForwarding no >> AllowAgentForwarding no >> PermitTunnel no >> PermitTTY no >>PasswordAuthentication yes >> >>Suggestions welcome. >>Thanks. >>Dave. >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>https://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to >>"freebsd-questions-unsubscribe@freebsd.org" > > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity.