bin/66101: adduser NOLOGIN_PATH incorrect
m03
m03 at manshadow.org
Thu Apr 29 22:40:19 PDT 2004
>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 at 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:
More information about the freebsd-bugs
mailing list