From: "Theodore Ts'o" <tytso@mit.edu>
To: Richard Weinberger <richard@nod.at>
Cc: fstests@vger.kernel.org
Subject: Re: fsgqa group membership?
Date: Sun, 14 Jan 2024 21:57:06 -0500 [thread overview]
Message-ID: <20240115025706.GF911245@mit.edu> (raw)
In-Reply-To: <1998649210.233983.1705246961955.JavaMail.zimbra@nod.at>
On Sun, Jan 14, 2024 at 04:42:41PM +0100, Richard Weinberger wrote:
> It turned out that the test failed because the user "fsgqa" did not
> have the "fsgqa" group assigned. After rectifying this, the test
> passed successfully.
>
> But it is nowhere stated that this has to be that way.
>
> README says only:
> 6. (optional) Create fsgqa test users and groups:
>
> $ sudo useradd -m fsgqa
> $ sudo useradd 123456-fsgqa
> $ sudo useradd fsgqa2
> $ sudo groupadd fsgqa
The useradd program creates the /etc/passwd entry as well as the
/etc/group entry. Demonstration:
% kvm-xfstests shell
...
root@kvm-xfstests:~# grep foobarbaz /etc/passwd
root@kvm-xfstests:~# grep foobarbaz /etc/group
root@kvm-xfstests:~# useradd foobarbaz
root@kvm-xfstests:~# grep foobarbaz /etc/passwd
foobarbaz:x:31418:31418::/home/foobarbaz:/bin/sh
root@kvm-xfstests:~# grep foobarbaz /etc/group
foobarbaz:x:31418:
I don't know why that "sudo groupadd fsgqa" is in the README; it's not
necessary, and it would cause a "group already exists" error message.
For example:
root@kvm-xfstests:~# groupadd foobarbaz
groupadd: group 'foobarbaz' already exists
I did this demonstration using on a Debian-based test appliance. But
it looks like Fedora's "useradd" works exactly the same way. See the
web page here:
https://docs.fedoraproject.org/en-US/fedora/latest/system-administrators-guide/basic-system-configuration/Managing_Users_and_Groups/
- Ted
next prev parent reply other threads:[~2024-01-15 2:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-14 15:42 fsgqa group membership? Richard Weinberger
2024-01-14 20:18 ` Zorro Lang
2024-01-14 20:48 ` Richard Weinberger
2024-01-15 2:58 ` Zorro Lang
2024-01-15 2:57 ` Theodore Ts'o [this message]
2024-01-15 21:28 ` Richard Weinberger
2024-01-16 16:26 ` Zorro Lang
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=20240115025706.GF911245@mit.edu \
--to=tytso@mit.edu \
--cc=fstests@vger.kernel.org \
--cc=richard@nod.at \
/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