Date: Fri, 30 Apr 2004 00:34:54 -0500 (CDT) From: m03 <m03@manshadow.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/66101: adduser NOLOGIN_PATH incorrect Message-ID: <200404300534.i3U5YsLJ091864@manshadow.org> Resent-Message-ID: <200404300540.i3U5eJmZ040238@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66101 >Category: bin >Synopsis: adduser NOLOGIN_PATH incorrect >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 29 22:40:18 PDT 2004 >Closed-Date: >Last-Modified: >Originator: m03 >Release: FreeBSD 5.1-RELEASE i386 >Organization: manshadow.org >Environment: System: FreeBSD www.manshadow.org 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 AMD 1.8GHz, 1 GB RAM FreeBSD 5.1-RELEASE >Description: Instances of the NOLOGIN_PATH in the adduser script are incorrectly set to /usr/sbin/nologin, which does not exist. This should be changed to /sbin/nologin. >How-To-Repeat: Run adduser in interactive mode. "nologin" isn't displayed as an option when the Shell choice is shown. If nologin is used, the shell shows up as /usr/sbin/nologin, which of course doesn't exist. >Fix: Instances of /usr/sbin/nologin should be changed to /sbin/nologin. This should fix an existing file in /usr/sbin/adduser: sed "s/\/usr\/sbin\/nologin/\/sbin\/nologin/g" /usr/sbin/adduser > /usr/sbin/adduser.new; mv /usr/sbin/adduser.new /usr/sbin/adduser; chmod 555 /usr/sbin/adduser >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404300534.i3U5YsLJ091864>