Re: conf/145887: /usr/sbin/nologin should be in the default

看板FB_bugs作者時間15年前 (2010/04/30 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
At 11:20 AM -0400 4/29/10, Lowell Gilbert wrote: >I haven't been doing a very good job explaining myself. Maybe someone >else will (eventually) do a better job. Or whap me in the head for >being wrong... > >Paul Hoffman <phoffman@proper.com> writes: > >> The problem is that many servers in the ports collection (such as mail access programs like qpoper) will only let clients connect if the client has a shell that is listed in /etc/shells. From a security standpoint, it would be obviously better to give these users the ability to act as clients but not to be able to log in using the shells that are listed by default (sh, csh, or tcsh). >> >> It sounds like you are suggesting that these users should be given a *different* shell, and that shell be added to /etc/shells. Why would that be any better than adding /usr/sbin/nologin to /etc/shells? > >Exactly right. The reason it's better is that you wouldn't be opening >up existing nologin users to be able to receive mail, FTP in, and so >on. It's okay if you want to do that on your box, but doing it by >default would be an unreasonable breach of the so-called "Principle of >Least Astonishment," and one involving potential security problems at >that. I can buy that, but then there should be two shells, not one: - /usr/sbin/sysnologin is not listed by default in /etc/shells - /usr/sbin/nologin is listed by default in /etc/shells The two are the exact same program; the only differences are the name and the inclusion. Do others agree on this thought? _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
文章代碼(AID): #1BsSbvcl (FB_bugs)
討論串 (同標題文章)
文章代碼(AID): #1BsSbvcl (FB_bugs)