ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Понижение прав с root не работает в alt-p8-rootfs-systemd
@ 2020-04-18 14:12 Mikhail Novosyolov
  2020-04-18 14:23 ` Alexey Sheplyakov
  0 siblings, 1 reply; 6+ messages in thread
From: Mikhail Novosyolov @ 2020-04-18 14:12 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Сделал chroot на основе http://ftp.altlinux.org/pub/distributions/ALTLinux/images/p8/cloud/alt-p8-rootfs-systemd-x86_64.tar.xz

Создал пользователя (useradd --uid 1000 user)

но не могу войти под этим пользователем:

[root@pay2 /]# su - user
su: exec failed

[root@pay2 /]# strace -f su - user -c /bin/bash 2>&1 | grep bin/bash
execve("/bin/su", ["su", "-", "user", "-c", "/bin/bash"], 0x7ffccf65b4a8 /* 30 vars */) = 0
[pid 37104] execve("/bin/bash", ["-bash", "-c", "/bin/bash"], 0x12fa9a0 /* 17 vars */) = -1 EAGAIN (Ресурс временно недоступен)

[root@pay2 /]# sudo -u user -i
-bash: fork: Ресурс временно недоступен
-bash-3.2$ ls
-bash: fork: Ресурс временно недоступен

Как такое может быть?!

control su public ожидаемо не помог. В /etc/pam.d/ ничего подозрительного не нашел. pam_securetty отключен.



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

end of thread, other threads:[~2020-04-20 14:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-18 14:12 [devel] Понижение прав с root не работает в alt-p8-rootfs-systemd Mikhail Novosyolov
2020-04-18 14:23 ` Alexey Sheplyakov
2020-04-18 15:37   ` Mikhail Novosyolov
2020-04-18 17:12     ` Ivan A. Melnikov
2020-04-18 17:19       ` Vladimir D. Seleznev
2020-04-20 14:44     ` Alexey Sheplyakov

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