Talk:Users and groups

From ArchWiki
Jump to navigation Jump to search

Group list

It is a good idea to add a column with the default gid to every group in the wiki table ? e.g. what is group 102 ?

# ls -la  /usr/share/polkit-1
# drwxr-x--- 1 root  102  44 Dec 22 02:14 rules.d

Also I found in my cups directory files owned by 9xx. My first idea was to look in the wiki article...

Ua4000 (talk) 09:03, 24 December 2017 (UTC)

You can find those in DeveloperWiki:UID / GID Database. Also note that there were recently some changes towards dynamic allocation of the IDs [1], so the table may not be entirely correct. -- Lahwaacz (talk) 09:09, 24 December 2017 (UTC)

useradd primary / secondary group

I am noticing that the group created (with gid=uid) is empty by default in /etc/groups, is that expected or is it safer to also add manually the user in the group? Kewl (talk) 07:20, 20 May 2018 (UTC)

The primary group is set in /etc/passwd, so it's fine that it appears empty in /etc/groups. Run groups to see all current groups. -- Lahwaacz (talk) 07:29, 20 May 2018 (UTC)

Utilities to handle the shadow file in acrh

Referring the template:accuracy in the users and groups#Other tools related to these databases section: chage is just an example how one can modify the shadow file in arch. There are other utilties to modify other aspects of the shadow file. The versions of vipw and vigr in arch has far less options compared to Debian, for example. On arch, vipw -s exits with an error code of 1. Also compare vipw(8) to debian's man page. At the bottom of the later there is a reference to shadow-utils, as well as a link to passwd 1:4.5-1.1. shadow-utils is also mentioned for other distributions. Which is confusing. Can it be that shadow-utils has cease to exist at the upstream level, but continues to exist at the distributions level? Regid (talk) 17:01, 28 January 2019 (UTC)

I'm not even sure how to parse any of this *or* the disputed section.
shadow is the only thing there is to discuss at all -- the upstream "shadow" project is mildly schizophrenic in that it calls itself "shadow" everywhere *except* the manpages which mention "shadow-utils". Debian packages the source package "shadow" as the split binary packages "login", passwd", and "uidmap" and does not package a binary package for either "shadow" or "shadow-utils" or anything else of the sort, while Fedora packages it as "shadow-utils". Arch Linux, Void Linux, Gentoo, OpenSUSE, Slackware, Solus, all have the "shadow" package.
The bug report plainly states that vigr, vipw specifically from util-linux are considered deprecated in favor acquiring those programs from the shadow project instead. (Then it was rejected in favor of un-deprecating the util-linux versions due to the shadow project not being responsible developers.) -- Eschwartz (talk) 21:25, 3 February 2019 (UTC)
See this link for detail. chage,vigr and vipw them self are not deprecated. -- Fengchao (talk) 02:26, 2 April 2020 (UTC)



The installation guide points to this page at the user creation step. Shouldn't this page talk about the possibility of using systemd-homed to manage users and a link to the appropriate article ?

Have a good day

—This unsigned comment is by Cvlc (talk) 08:52, 4 September 2020‎. Please sign your posts with ~~~~!

systemd-homed is completely optional and its page is already linked from the "Related articles" box at the top. -- Lahwaacz (talk) 09:07, 4 September 2020 (UTC)

Unclear note

At the very bottom of Users_and_groups#Group_management, there is a small note

Note: If the user is currently logged in, they must log out and in again for the change to take effect.

This seems to apply to the comment right above it. However, it actually applies to all of the group remove or add commands above. I suggest the wording is at least changed to "these changes"; or the note is made into a normal paragraph, optionally at the very top of the section (my personally preferred solution, since this is important information and without this knowledge the user will unavoidably wonder why the commands appear to do nothing).

PrinzVogelfrei (talk) 14:15, 8 April 2021 (UTC)