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

Peter Selinger selinger at mathstat.dal.ca
Sun Mar 4 23:42:33 CET 2007


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.

> 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
> 




More information about the Nut-upsdev mailing list