Date: Wed, 22 Jan 2003 10:44:22 +0530 From: "Unix Tools" <unixtools@hotmail.com> To: "Mantas Kriauciunas" <mntkz@mntkz.net>, <freebsd-questions@freebsd.org> Subject: Re: FreeBSD 5.0-RELEASE & disabling ssh access Message-ID: <OE38n7fgGoagFe4Kh1Z00008d9a@hotmail.com> References: <200301230439.h0N4dBwu034593@mntkz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Add the line /sbin/nologin to /etc/shells Cheers ----- Original Message ----- From: "Mantas Kriauciunas" <mntkz@mntkz.net> To: <freebsd-questions@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE38n7fgGoagFe4Kh1Z00008d9a>