misc/80058: adduser -f exits silently if file has empty line or line starting with #

Hans Meyer ss at matik.com.br
Mon Apr 18 03:40:17 PDT 2005


>Number:         80058
>Category:       misc
>Synopsis:       adduser -f exits silently if file has empty line or line starting with #
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 18 10:40:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Hans Meyer
>Release:        5.3-R
>Organization:
Infomatik
>Environment:
FreeBSD msrv.matik.com.br 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Sun Feb 13 01:35:32 BRST 2005     hmm at msrw.matik.com.br:/usr/src/sys/i386/compile/msrv  i386
>Description:
adduser -f file exits without any advice or error when the named file has an empty line or a line starting with # without adding any user

manpage tells in the FORMAT section:
All empty lines or lines beginning with a `#' will be ignored.

file example
_emptyline_
usr1::nobody:::::::password1
usr2::nobody:::::::password2
EOF

adduser.conf
defaultLgroup=nobody
defaultclass=
defaultgroups=
passwdtype=yes
homeprefix=/home
defaultshell=/bin/sh
udotdir=/usr/share/skel
msgfile=/etc/mail/bemvindo_novusr
disableflag=

>How-To-Repeat:
executing adduser -f file
>Fix:
      eliminating empty lines
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list