Hmm. (cross-posting to ppc@)

Something's odd, here.

On Thu, 30 Dec 2010 12:54:16 -0500
Ted Unangst <ted.unan...@gmail.com> wrote:

> On Thu, Dec 30, 2010 at 6:19 AM, Joel Rees <joel_r...@sannet.ne.jp> wrote:
> > I noticed when the installer created my first non-root (erg, first 
> > administration) user, it set the primary group to "user", and not even to 
> > "staff".
> > [stuff about the useradd utilities that had me confused]
> 
> I'm not sure if your use of "user" means "same as username" or
> "users".  There is no "user" group.

Yeah, I meant, "users".

> By default, I think we intend for a new user to get a new group, but
> there's been some confusion in that department.

Related to adduser vs. useradd, I suppose?

But, I thought I'd check the source to see which was being invoked in the 
install script (neither), and I discovered something odd.

http://www.openbsd.org/cgi-bin/cvsweb/src/distrib/miniroot/install.sh?rev=1.214;content-type=text%2Fplain

        
uline="${user}:${_encr}:1000:1000:staff:0:0:${username}:/home/${user}:/bin/ksh"
        echo "$uline" >> /mnt/etc/master.passwd

and 

        chown -R 1000:1000 /mnt/home/$user /mnt/var/mail/$user

But that's not what happened in my install, and it's not what is in the 
"install" script in my "/bsd.rd" .

Having a bit of a hard time finding the install script for the macppc iso in 
the source, so I'll copy those lines out of a boot of /bsd.rd:

        
userline="$${user}:${_encr}:1000:10:staff:0:0:${username}:/home/${user}:/bin/ksh"

which explains why my initial administrator user declared from the install 
ended up in the "users" group. And

        chown -R 1000.10 /mnt/home/$user /mnt/var/mail/$user

which seems to mean that assigning the group as "users" might have been 
intentional?

Is this a bug that I should file?

-- 
Joel Rees <joel_r...@sannet.ne.jp>

Reply via email to