From owner-freebsd-hackers Thu Mar 18 4:37: 0 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 9B08714C83 for ; Thu, 18 Mar 1999 04:36:50 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 2.12 #1) id 10Nc2I-000LDj-00 for hackers@freebsd.org; Thu, 18 Mar 1999 14:36:30 +0200 From: Sheldon Hearn To: hackers@freebsd.org Subject: login_cap(3) waxing or waning? Date: Thu, 18 Mar 1999 14:36:29 +0200 Message-ID: <81574.921760589@axl.noc.iafrica.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, I've added the following command-line option to ftpd(8): -n If /var/run/nologin does not exist, also check for the specified file and, if it exists, display it and exit. I need this work-around because ftpd does not honour the login_cap(3) capabilities ``nologin'' and ``ignorenologin''. I would have preferred to add the following to login.conf(5): ftp:\ :nologin=/var/run/nologin.ftp:\ :tc=default: Is login_cap going to be around long enough for it to be worthwhile investing time in teaching ftpd to respect its ``nologin'' and ``ignorelogin'' capabilities? The alternative is for me to man-handle ftpd into testing for /var/run/nologin.curname, but if login_cap is going to stick around, I'd like to do this properly. As an aside, is curname (see ftpd.c:755) restricted to 10 characters instead of MAXLOGNAME for reasons instrinsic to the FTP protocol, or was it simply not updated when MAXLOGNAME was born? Thanks, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message