From owner-freebsd-questions Thu Jan 23 4:26: 2 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88BFC37B401 for ; Thu, 23 Jan 2003 04:26:01 -0800 (PST) Received: from hotmail.com (oe38.pav2.hotmail.com [64.4.36.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 322B243F43 for ; Thu, 23 Jan 2003 04:26:01 -0800 (PST) (envelope-from unixtools@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 23 Jan 2003 04:25:56 -0800 X-Originating-IP: [202.63.172.98] From: "Unix Tools" To: "Mantas Kriauciunas" , References: <200301230439.h0N4dBwu034593@mntkz.net> Subject: Re: FreeBSD 5.0-RELEASE & disabling ssh access Date: Wed, 22 Jan 2003 10:44:22 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: X-OriginalArrivalTime: 23 Jan 2003 12:25:56.0096 (UTC) FILETIME=[93F80800:01C2C2DA] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Add the line /sbin/nologin to /etc/shells Cheers ----- Original Message ----- From: "Mantas Kriauciunas" To: Sent: Thursday, January 23, 2003 10:09 AM Subject: FreeBSD 5.0-RELEASE & disabling ssh access > Heya! > ermmm... I just Installed 5.0-RELEASE two days ago and i have a question about adduser. > i am using adduser to add users. on my 4.5 machine i was able to choose, to let users use ssh access or don't let them use by adding shell: no , what i found in 5.0 that there is no such choise, only this: > Shell (sh csh tcsh bash) [sh]: /sbin/nologin > adduser: ERROR: Invalid shell selection. Using default shell /bin/sh. > > so how to disable ssh access for the user? i looked in /etc/passwd , some accounts have /sbin/nologin but i wasn't able to do old stile like 4.5 used to let me do. so how should i fix this one? > Thanks for your replies! > mNTkz > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message