From owner-freebsd-security Mon Sep 10 11:20:43 2001 Delivered-To: freebsd-security@freebsd.org Received: from webs1.accretive-networks.net (webs1.accretive-networks.net [207.246.154.13]) by hub.freebsd.org (Postfix) with ESMTP id 6FF7F37B403 for ; Mon, 10 Sep 2001 11:20:40 -0700 (PDT) Received: from localhost (davidk@localhost) by webs1.accretive-networks.net (8.11.1/8.11.3) with ESMTP id f8AHF0V10626; Mon, 10 Sep 2001 10:16:20 -0700 (PDT) Date: Mon, 10 Sep 2001 10:15:00 -0700 (PDT) From: David Kirchner X-X-Sender: To: David Taylor Cc: Adam Laurie , Subject: Re: allow selective RSA AUTH in sshd setup? In-Reply-To: <20010910191552.A61465@gattaca.yadt.co.uk> Message-ID: <20010910101420.W85958-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 10 Sep 2001, David Taylor wrote: > Easy enough > > # mkdir ~user/.ssh > # touch ~user/.ssh/{authorized_keys,config,random,etc,etc,etc} > # chown root:usersprivategroup ~user/.ssh > # chmod 750 ~user/.ssh > # chown user:usersprivategroup ~user/.ssh/* > # chmod 640 ~user/.ssh/* > # chown root:usersprivategroup ~user/.ssh/authorized_keys > > SSH even seems happy to have a root-owned authorized_keys file... And then chflags schg .ssh so the user can't rename and re-create the .ssh directory. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message