ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Mikhail Efremov <sem@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Невозможно создать пользователя при сборке rootfs на хосте с Сизифом
Date: Thu, 27 Jun 2024 18:26:11 +0300
Message-ID: <20240627182611.02f8c0cb@sem-nb2> (raw)
In-Reply-To: <79f02d1e-5e3b-4d33-8ed6-bccb2c51c9fa@ya.ru>

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

On Mon, 24 Jun 2024 19:19:45 +0700 Антон Мидюков wrote:
> >   
> >>> Проблема только на хостах с Сизифом. Если на хосте p10, то пользователь успешно создаётся при сборке.
> >>> Также, если убрать из образа gnome-software и gnome-control-center, то пользователь создаётся успешно и при сборке на хосте с Сизифом.

Виновником является fwupd, точнее не он сам, а запускаемый из-за
/lib/sysusers.d/fwupd.conf systemd-sysusers. Вот после него useradd
получает "Permission denied" при попытке открыть /etc/gshadow.
Почему - я не понимаю, возможно это связано с тем, что все это под
fakeroot.
В качестве workaround можно сделать в скрипте 50-users
chmod u+w /etc/gshadow{,-}
Ну или вообще rm /etc/gshadow.

-- 
WBR, Mikhail Efremov

[-- Attachment #2: Цифровая подпись OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-06-27 15:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-22 10:28 Антон Мидюков
2024-06-24 12:05 ` Mikhail Efremov
2024-06-24 12:11   ` Mikhail Efremov
2024-06-24 12:19     ` Антон Мидюков
2024-06-27 15:26       ` Mikhail Efremov [this message]
2024-06-28  7:19         ` Anton Farygin
2024-06-28 10:18           ` Mikhail Efremov

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=20240627182611.02f8c0cb@sem-nb2 \
    --to=sem@altlinux.org \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git