Subject: pkg/23061: allow sysutils/user for non-NetBSD or custom switches for USERADD
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 10/04/2003 23:18:56
>Number:         23061
>Category:       pkg
>Synopsis:       allow sysutils/user for non-NetBSD or custom switches for USERADD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 05 06:19:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        BSD/OS 4.3.1
>Organization:
http://bsd.reedmedia.net/
>Environment:
>Description:
	
After a minor patch for sendmail, I got it to build for BSD/OS.
(See my other PR pkg/23060.)

BSD/OS provides a adduser and groupadd commands.

     adduser [-dDv] [-c change_time] [-C class] [-e expire_time] [-g
             primary_group] [-G gecos] [-h home_directory_basedir] [-H
             home_directory] [-m home_directory_mode] [-p passwd] [-P
             encrypted_passwd] [-s shell] [-S skeleton_dir] [-u uid]
             [username...]

But mk/install/install has:

                                ${USERADD} -c "${descr}"                \
                                        ${userid_option} ${userid}      \
                                        -g "${group}"                   \
                                        -d "${home}"                    \
                                        -s "${shell}"                   \
                                        "${user}"


Creating user: smmsp
Sendmail Message Submission Program: invalid change time.
...
chown smmsp /var/spool/clientmqueue
chown: smmsp: illegal user name
*** Error code 1

>How-To-Repeat:
On BSD/OS, have missing users and have PKG_CREATE_USERGROUP as default.
>Fix:
I think it would be good to allow some settings like:
userdescr_option="-c"
userhome_option="-d"

And for BSDOS would use:
userdescr_option="-G"
userhome_option="-H"

Or allow sysutils/user to build (using libnbcompat) for other operating
systems. (That would be good too.)
>Release-Note:
>Audit-Trail:
>Unformatted: