From owner-freebsd-bugs Sat Jul 8 15:15:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from gateway.posi.net (c1096725-a.smateo1.sfba.home.com [24.20.139.104]) by hub.freebsd.org (Postfix) with ESMTP id 972CC37B5B1 for ; Sat, 8 Jul 2000 15:15:02 -0700 (PDT) (envelope-from kbyanc@posi.net) Received: from localhost (kbyanc@localhost) by gateway.posi.net (8.9.3/8.9.3) with ESMTP id PAA28959; Sat, 8 Jul 2000 15:18:38 -0700 (PDT) (envelope-from kbyanc@posi.net) Date: Sat, 8 Jul 2000 15:18:37 -0700 (PDT) From: Kelly Yancey To: James Howard Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/19755: nologin not configurable In-Reply-To: <200007081600.JAA20281@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 8 Jul 2000, James Howard wrote: > But this does not permit me to customize the message for each user. It > also globally disables logins. > > To put it simply, we have temporarily disabled new account creation (done > through an automatic script) and wish to display (securely) a message > saying so. To try this out, telnet to m-net.arbornet.org and login as > newuser (no password). If you login as me (a staff account), you are > are granted access. If you login as someone who is non-staff, you are > given another message entirely. > > Jamie > Again, I like to apologize for my hasty response earlier. Now that I'm awake again and grok what you originally said, I think this is somewhat useful. However, you should be able to do what you want via the nologin login.conf option (man 5 login.conf). You should be able to set nologin to ~/.nologin and get the desired effect. I keep saying "should" because my read of libutil/libc indicates that it doesn't expand ~'s in login.conf lines. I think the ideal fix would be to teach libutil/libc about ~ expansion (cgetstr already understands certain escapes). Kelly -- Kelly Yancey - kbyanc@posi.net - Belmont, CA System Administrator, eGroups.com http://www.egroups.com/ Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/ Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message