Github messages for voidlinux
 help / color / mirror / Atom feed
From: leahneukirchen <leahneukirchen@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] xbps-triggers/files/system-accounts: system account with uid and pgroup does not work
Date: Mon, 02 Mar 2020 18:10:48 +0100	[thread overview]
Message-ID: <20200302171048.BK-93bcgSa6Wukwxl3YvUObNLyO-NPslxgFCoUjy2q0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19589@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 742 bytes --]

Closed issue by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/issues/19589

Description:
If an account has a fixed uid and a pgroup set, the uid is still used as gid (but not created, so this fails).

This is due to

```
                        [ "${_uid}" != "${_uname}" ] && use_id="-u ${_uid} -g ${_uid}"
```

and later

```
                                useradd -c "$descr" -d "$homedir" -s "$shell" ${user_groups} \
                                        ${pgroup:+-N} ${use_id:=-g ${pgroup:-${_uname}}} -r ${_uname} && \
                                        passwd -l ${_uname} >/dev/null 2>&1
```

This needs more logic to handle the case when use_id and pgroup are set.

      reply	other threads:[~2020-03-02 17:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27 18:47 [ISSUE] " leahneukirchen
2020-03-02 17:10 ` leahneukirchen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200302171048.BK-93bcgSa6Wukwxl3YvUObNLyO-NPslxgFCoUjy2q0@z \
    --to=leahneukirchen@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).