Difference between revisions of "Talk:DeveloperWiki:UID / GID Database"

From ArchWiki
Jump to: navigation, search
(socket-sentry)
(AUR: rm closed)
 
(38 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 +
{{Note|'''Moderation''': [[AUR]] packages are unsupported content. This page is about packages in the [[official repositories]]. If you wish to reserve groups, or otherwise request features, use the bugtracker: https://bugs.archlinux.org/. -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 17:11, 17 March 2016 (UTC)}}
 +
 +
== Create users at build time ==
 +
 
Why should user and group be created at build time? This sounds really weird to me.
 
Why should user and group be created at build time? This sounds really weird to me.
 
Arch packages aren't supposed to be shared? You can very well build a package and not install it immediately.
 
Arch packages aren't supposed to be shared? You can very well build a package and not install it immediately.
Line 6: Line 10:
 
Now what you might want to do is somehow unifying this task inside the scriptlets.
 
Now what you might want to do is somehow unifying this task inside the scriptlets.
 
If that's the case, please add your proposal with the two functions there :
 
If that's the case, please add your proposal with the two functions there :
[http://bugs.archlinux.org/task/10375 FS#10375]
+
[https://bugs.archlinux.org/task/10375 FS#10375]
 
and maybe edit the wiki accordingly.
 
and maybe edit the wiki accordingly.
 
--[[User:Shining|shining]] 04:42, 19 May 2008 (EDT)
 
--[[User:Shining|shining]] 04:42, 19 May 2008 (EDT)
 
== input group ==
 
 
Would you mind adding the following group to the list?:
 
*input:103
 
I am using this group to allow access to input events for gizmod in AUR.
 
  
 
== Add svn user and group ==
 
== Add svn user and group ==
Line 27: Line 25:
 
EDIT: 91 is used for video apparently, changed to 97
 
EDIT: 91 is used for video apparently, changed to 97
  
== gdm group? ==
+
== kodi ==
 
+
It seems gdm creates a group when installing as well.  There's a bug against its current behaviour ([http://bugs.archlinux.org/task/13690 bug 13690]), I really think it should have a group with the same gid as its uid (120).
+
 
+
== policykit is incomplete ==
+
 
+
The UID entry for policykit is missing.  It creates both a user (102) and a group (102), only the latter is mentioned on the page.
+
 
+
== pulseaudio ==
+
 
+
Pulseaudio creates one user (pulse : 130) and three groups (pulse : 130, pulse-access : 131, pulse-rt : 132).
+
 
+
== system-tools-backends ==
+
 
+
This package creates a user-level group, there's a bug open for this issue ([http://bugs.archlinux.org/task/14787 bug 14787]).
+
 
+
== amanda ==
+
 
+
Can we have UID and GID 112 set aside for amanda?
+
 
+
== cruisecontrol ==
+
 
+
Please add userid 52 for cruisecontrol package ([https://aur.archlinux.org/packages.php?ID=33508])
+
 
+
== Ossec ==
+
 
+
# grep ossec /etc/group
+
## ossec:x:525:
+
# grep ossec /etc/passwd
+
## ossec:x:524:525::/var/ossec:/bin/false
+
## ossecm:x:525:525::/var/ossec:/bin/false
+
## ossecr:x:526:525::/var/ossec:/bin/false
+
 
+
 
+
thanks :)
+
 
+
== What about packages from AUR? ==
+
  
As I started discussing it at [[Talk:Arch_Packaging_Standards#Adding_system_users]], it would be good to have a clearer process for the addition of system users, and maybe a specific sub-namespace (_e.g._ from 500 to 749) for AUR, as well as some authoritative list to avoid collisions ? Maybe another namespace (750-999?) should also be kept strictly reserved for local uses, so admins can create groups knowing that no upstream ArchLinux package will ever use the ID.
+
Before the xbmc package just created a system user and in the install script it always did a chown to make sure the /var/lib/xbmc folder was owned by xbmc.
  
== socket-sentry ==
+
Now the folder is owned by uid 420 and gid 420, the chown is only needed when updating from a previous state.
  
Please add socketsentry group (gid 172) for kdeplasma-addons-applets-socketsentry package ([https://aur.archlinux.org/packages.php?ID=36213]).
+
Could someone add the xbmc uid and gid to the list?
  
:As you can see, this discussion page doesn't get many replies from developers, you may want to use the forum or the mailing lists for this kind of requests. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 09:54, 17 June 2012 (UTC)
+
:Now {{Pkg|kodi}}. -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 15:13, 23 October 2015 (UTC)
  
== oml2 entries ==
+
== lightdm ==
  
Please add oml2 user and group (both 137, arbitrarily, on a Debian system I have at hand). I'm updating the package at https://aur.archlinux.org /packages.php?ID=60321 and https://aur.archlinux.org/packages.php?ID=60322, creating these in the post_install script.
+
The lightdm package uses {{ic|620}} for it's UID/GUID:
  
[[User:OlivierMehani|OlivierMehani]] ([[User talk:OlivierMehani|talk]]) 08:49, 15 August 2012 (UTC)
+
{{bc|1=<nowiki>
 +
post_install() {
 +
    getent group lightdm > /dev/null 2>&1 || groupadd -g 620 lightdm
 +
    getent passwd lightdm > /dev/null 2>&1 || useradd -c 'Light Display Manager' -u 620 -g lightdm -d /var/lib/lightdm -s /usr/bin/nologin lightdm
 +
    passwd -l lightdm > /dev/null
 +
    systemd-tmpfiles --create /usr/lib/tmpfiles.d/lightdm.conf
 +
}
 +
</nowiki>}}

Latest revision as of 11:14, 21 April 2016

Note: Moderation: AUR packages are unsupported content. This page is about packages in the official repositories. If you wish to reserve groups, or otherwise request features, use the bugtracker: https://bugs.archlinux.org/. -- Alad (talk) 17:11, 17 March 2016 (UTC)

Create users at build time

Why should user and group be created at build time? This sounds really weird to me. Arch packages aren't supposed to be shared? You can very well build a package and not install it immediately.

In any cases, I think this task definitively needs to be made at install time. That is why it is always done in scriptlets. Now what you might want to do is somehow unifying this task inside the scriptlets. If that's the case, please add your proposal with the two functions there : FS#10375 and maybe edit the wiki accordingly. --shining 04:42, 19 May 2008 (EDT)

Add svn user and group

Just a suggestion: create/reserve UID 44 and GID 44 for snv user (subversion server)

mailman

Can we have UID and GID 97 set aside for mailman? http://www.list.org

EDIT: 91 is used for video apparently, changed to 97

kodi

Before the xbmc package just created a system user and in the install script it always did a chown to make sure the /var/lib/xbmc folder was owned by xbmc.

Now the folder is owned by uid 420 and gid 420, the chown is only needed when updating from a previous state.

Could someone add the xbmc uid and gid to the list?

Now kodi. -- Alad (talk) 15:13, 23 October 2015 (UTC)

lightdm

The lightdm package uses 620 for it's UID/GUID:

post_install() {
    getent group lightdm > /dev/null 2>&1 || groupadd -g 620 lightdm
    getent passwd lightdm > /dev/null 2>&1 || useradd -c 'Light Display Manager' -u 620 -g lightdm -d /var/lib/lightdm -s /usr/bin/nologin lightdm
    passwd -l lightdm > /dev/null
    systemd-tmpfiles --create /usr/lib/tmpfiles.d/lightdm.conf
}