On Fri, Oct 29, 2010 at 02:29:50PM +0200, Ingo Schwarze wrote: > Hi Tobias, > > i'm not sure as i don't use tools like adduser(8) and useradd(8), > and i doubt they are widely used among developers anyway. I think > they are around mostly because some people are used to them from > other systems.
Moin Ingo, useradd(8) is a different utility, it defaults to the users group unless specified otherwise. > So, gratuitously changing the defaults is not necessarily a wise move. > As far as i can see, FreeBSD adduser(8) defaults to per-user-groups as > well, even though it's a different implementation. Very probably, > that's what people expect from this particular tool. > > Of course, in case adduser(8) users like the change, i'm not > opposed to it. Well I'm an adduser(8) user and I don't like the default, since it's inconsistent with the rest of the system. On OpenBSD, I expect it to behave like the other user management tools and especially the install script. It's not some mandated POSIX behaviour, so I'm not that concerned with compatability to XMLBsd in this particular case. This topic came up last year as well, including the same useradd/adduser confusion: http://kerneltrap.org/mailarchive/openbsd-tech/2009/5/8/5660874 "useradd really does that? A new group for every user? I think that is stupid behaviour." So, I stand by my patch, Tobias > > Yours, > Ingo > > > Tobias Ulmer wrote on Fri, Oct 29, 2010 at 10:52:46AM +0200: > > > The installer defaults to creating accounts with group "users", adduser > > creates a group for each user. Sync the two. > > Takes effect only if /etc/addusers.conf is regenerated, ie. new > > installations. > > > > Index: adduser.perl > > =================================================================== > > RCS file: > > /srv/boron/data/vcs/cvs/openbsd/src/usr.sbin/adduser/adduser.perl,v > > retrieving revision 1.53 > > diff -u -p -r1.53 adduser.perl > > --- adduser.perl 3 Jan 2007 15:26:04 -0000 1.53 > > +++ adduser.perl 29 Oct 2010 08:38:27 -0000 > > @@ -102,7 +102,7 @@ sub variables { > > > > $defaultshell = 'ksh'; # defaultshell if not empty > > $group_uniq = 'USER'; > > - $defaultgroup = $group_uniq;# login groupname, $group_uniq means > > username > > + $defaultgroup = 'users'; # login groupname, $group_uniq means > > username > > $defaultclass = 'default'; # default user login class > > > > $uid_start = 1000; # new users get this uid