On Monday 17 February 2014 18:26:03 Dirk Müller wrote:
Hi,
is there any kind of policy for the name of a user that is created by an opensuse package %pre script? Does it have to match the name of the package? the init script?
Not to my knowledge. LSB Core only briefly covers this [1] but from my past experience, we have some soft rules. We try to stick to prior art, i.e. if a package existed for years in $distro, there's no need to deviate. Sometimes things are developed in parallel so everyone ends up with a slightly different solution. There is no "it has to", there's just what people did so far. If that helps you we can certainly clarify and produce some rules.
https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups
is quite vague on that.
Is there a way to "register" usernames ? if so, which one is it? I looked at FHS but couldn't find a good pointer. Is there one?
Things like these are usually handled by LANANA, but they don't have a list of user / group names either, only init / cron script names [2]. When it comes to openSUSE, the way to "register" usernames should be known to you actually. Citing rpmlint's "config" file: addDetails('non-standard-uid', '''A file in this package is owned by an unregistered user id. To register the user, please branch the devel:openSUSE:Factory:rpmlint rpmlint package, add the user to the "config" file and send a submitrequest. ''', [1] http://refspecs.linux-foundation.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-gen... [2] http://www.lanana.org/ -- With kind regards, Sascha Peilicke SUSE Linux GmbH, Maxfeldstr. 5, D-90409 Nuernberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org