From: Mikhail Efremov <sem@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Невозможно создать пользователя при сборке rootfs на хосте с Сизифом
Date: Mon, 24 Jun 2024 15:11:57 +0300
Message-ID: <20240624151157.54b90345@sem-nb2> (raw)
In-Reply-To: <20240624150552.67fd0b8d@sem-nb2>
[-- Attachment #1: Type: text/plain, Size: 2706 bytes --]
On Mon, 24 Jun 2024 15:05:52 +0300 Mikhail Efremov wrote:
> On Sat, 22 Jun 2024 17:28:41 +0700 Антон Мидюков wrote:
> > Здравствуйте
> >
> > Может быть кто-нибудь сможет подсказать, в чём может быть дело.
> > Проблема такая. Собираю при помощи mkimage-profiles rootfs vm/alt-mobile-phosh-un-def.img
> > Пользователь altlinux не создаётся, ошибка такая:
> >
> > useradd: cannot open /etc/gshadow
> > <86>Jun 22 09:33:12 useradd[129602]: failed adding user 'altlinux', exit code: 10
> > *** failed to add user 'altlinux'
> > chpasswd: (user altlinux) pam_chauthtok() failed, error:
> > User not known to the underlying authentication module
> > chpasswd: (line 1, user altlinux) password not changed
> > <85>Jun 22 09:33:12 chpasswd[129605]: pam_tcb(chpasswd:chauthtok): Unable to find user in the selected database
> > mki-image-scripts: /tmp/.private/antohami/mkimage-profiles.build.E5scYkK/image-scripts.d/50-users: unable to run script.
> >
> > Если сделать
> > hsh-shell --rooter build/.work/
> >
> > и выполнить, как в скрипте команду:
> >
> > useradd -m altlinux
> >
> > то пользователь успешно создаётся.
> >
> > Почему может не быть доступа к /etc/gshadow при сборке?
>
> Непонятно как это воспроизвести, на сборке образа отлаживать неудобно
> все-таки.
А профиль, на котором воспроизводится, есть где-нибудь? Я попробую
разобраться что там происходит.
> Как workaround можно попробовать удалить /etc/gshadow перед useradd,
> тогда он вообще не должен пытаться открывать файл.
> > Проблема только на хостах с Сизифом. Если на хосте p10, то пользователь успешно создаётся при сборке.
> > Также, если убрать из образа gnome-software и gnome-control-center, то пользователь создаётся успешно и при сборке на хосте с Сизифом.
> > Но, если в минимальный образ vm/systemd.img добавить эти два пакета, проблема не воспроизводится, пользователь при сборке на хосте с Сизифом.
> >
> >
>
>
--
WBR, Mikhail Efremov
[-- Attachment #2: ЦиÑÑÐ¾Ð²Ð°Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑÑ OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-06-24 12:11 UTC|newest]
Thread overview: 9+ 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 [this message]
2024-06-24 12:19 ` Антон Мидюков
2024-06-27 15:26 ` Mikhail Efremov
2024-06-28 7:19 ` Anton Farygin
2024-06-28 10:18 ` Mikhail Efremov
2024-08-08 18:27 ` Антон Мидюков
2024-08-08 18:38 ` 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=20240624151157.54b90345@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