[Nut-upsdev] configure: added --with-group

Peter Selinger selinger at mathstat.dal.ca
Mon Mar 5 00:09:56 CET 2007


Peter Selinger wrote:
> 
> Arjen de Korte wrote:
> > 
> > I just committed the --with-group option for configure. One thing is not
> > quite what I like, but I have no idea how to script this in autoconf.
> > Currently both RUN_AS_USER and RUN_AS_GROUP have the defaults "nobody"
> > and "nogroup" respectively. I think this really should be changed to the
> > following:
> > 
> > - if neither --with-user, nor --with-group are specified, we apply the
> > defaults "nobody" and "nogroup" (or whatever are sane defaults)
> 
> Does POSIX (or another standard) specify some minimum set of user and
> group names that must exist and could be used for this purpose? My
> Linux box has a "nobody" user and group, but no "nogroup". 
> 
> > - if both --with-user and --with-group are specified, use the values
> > provided
> > 
> > - if either --with-user or --with-group is specified (but not both) this
> > should result in an error message, stating that specifying either one
> > means that the other is mandatory
> 
> This is easy to do; configure.in is just a shell script (with macros).
> I am waiting for "make distcheck" to finish and then I'll commit
> something.
> 
> As far as I know, the group is not used for anything except ownership
> of USB devices so far, so perhaps we *could* make specifying it
> optional.

More specifically, what I mean is: using the username as a group name
has not lead to any problems so far except in strange cases. By making
it configurable, we have taken care of the strange cases. Perhaps this
leaves us free to continue using the old behavior as a default. 

> > The above changes will make packagers aware that they need to add the
> > --with-group option in order for the hotplug/udev scripts to be of any
> > use and that they have to think about which group to use. Using the
> > username as default groupname, will lead to the same confusion we have
> > already.
> > 
> > Best regards, Arjen
> > 
> > _______________________________________________
> > Nut-upsdev mailing list
> > Nut-upsdev at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
> > 
> 
> 
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
> 




More information about the Nut-upsdev mailing list