ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] ssh и chroot
@ 2008-07-15  5:41 Serge
  2008-07-15 14:27 ` Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Serge @ 2008-07-15  5:41 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Система Server 4.0 + updates
пользователь находится в chroot. Файловая система для chroot организована.
При попытке входа под этим пользователем по ssh  (после набора пароля) сессия 
виснет. В логах наблюдаю:
Jul 15 08:34:33 ns sshd[10852]: pam_tcb(sshd:session): Session opened for user 
by (uid=0)
Jul 15 08:34:33 ns sshd[10852]: pam_chroot(sshd:session): chroot(/home/user) 
succeeded
Jul 15 08:34:33 ns sshd[10852]: error: openpty: No such file or directory
Jul 15 08:34:33 ns sshd[10852]: error: session_pty_req: session 0 alloc failed

обновил udev из Server 4.1, сделал service udevd restart - не помогло
что еще можно предпринять?

P.S. что интерестно, раньше работало, когда было сломано не знаю, обнаружил 
только вчера

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

* Re: [Comm] ssh и chroot
  2008-07-15  5:41 [Comm] ssh и chroot Serge
@ 2008-07-15 14:27 ` Dmitry V. Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2008-07-15 14:27 UTC (permalink / raw)
  To: ALT Linux Community general discussions

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

On Tue, Jul 15, 2008 at 08:41:40AM +0300, Serge wrote:
> Система Server 4.0 + updates
> пользователь находится в chroot. Файловая система для chroot организована.
> При попытке входа под этим пользователем по ssh  (после набора пароля) сессия 
> виснет. В логах наблюдаю:
> Jul 15 08:34:33 ns sshd[10852]: pam_tcb(sshd:session): Session opened for user 
> by (uid=0)
> Jul 15 08:34:33 ns sshd[10852]: pam_chroot(sshd:session): chroot(/home/user) 
> succeeded
> Jul 15 08:34:33 ns sshd[10852]: error: openpty: No such file or directory
> Jul 15 08:34:33 ns sshd[10852]: error: session_pty_req: session 0 alloc failed
> 
> обновил udev из Server 4.1, сделал service udevd restart - не помогло
> что еще можно предпринять?

Смонтировать /dev/pts

P.S. А почему не контейнер?


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2008-07-15 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-15  5:41 [Comm] ssh и chroot Serge
2008-07-15 14:27 ` Dmitry V. Levin

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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