[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53631: coreutils id(1) incorrect behavior
From: |
Vladimir D. Seleznev |
Subject: |
bug#53631: coreutils id(1) incorrect behavior |
Date: |
Sun, 30 Jan 2022 05:40:17 +0300 |
On Sat, Jan 29, 2022 at 06:46:00PM -0700, Bob Proulx wrote:
> Vladimir D. Seleznev wrote:
> > Expected behavior is:
> > # id user1
> > uid=1027(user1) gid=1027(user1) groups=1027(user1)
> > # id user2
> > uid=1027(user1) gid=1027(user1) groups=1027(user1),1028(somegroup)
>
> I just tried a test on both FreeBSD and NetBSD and both FreeBSD and
> NetBSD behave as you expect. That would give weight for GNU Coreutils
> matching that behavior.
>
> > Example:
> > # useradd user1
> > # groupadd somegroup
> > # useradd -o -u "$(id -u user1)" -g "$(id -G user1) -G somegroup user2
>
> I'll just note that there is a missing ending quote character. It's
Oops! Wrong copying, sorry.
> also missing the -m option to create a home directory.
Yes, but in my system it is handled by CREATE_HOME of /etc/login.defs.
But perhaps I should've provided more general example.
--
WBR,
Vladimir D. Seleznev