Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] xbps-triggers/files/system-accounts: system account with uid and pgroup does not work
@ 2020-02-27 18:47 leahneukirchen
  2020-03-02 17:10 ` [ISSUE] [CLOSED] " leahneukirchen
  0 siblings, 1 reply; 2+ messages in thread
From: leahneukirchen @ 2020-02-27 18:47 UTC (permalink / raw)
  To: ml

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ISSUE] [CLOSED] xbps-triggers/files/system-accounts: system account with uid and pgroup does not work
  2020-02-27 18:47 [ISSUE] xbps-triggers/files/system-accounts: system account with uid and pgroup does not work leahneukirchen
@ 2020-03-02 17:10 ` leahneukirchen
  0 siblings, 0 replies; 2+ messages in thread
From: leahneukirchen @ 2020-03-02 17:10 UTC (permalink / raw)
  To: ml

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-02 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-27 18:47 [ISSUE] xbps-triggers/files/system-accounts: system account with uid and pgroup does not work leahneukirchen
2020-03-02 17:10 ` [ISSUE] [CLOSED] " leahneukirchen

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