From: "Konstantin S. Uvarin" <khedin@mail.ru> To: ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] mc в chroot Date: Thu, 21 Jun 2007 14:39:17 +0400 Message-ID: <1956201362.20070621143917@mail.ru> (raw) In-Reply-To: <200706211255.21285.skompan@kspu.kr.ua> Hello Serge, Thursday, June 21, 2007, 1:55:21 PM, you wrote: > Здравствуйте! > Пользователь удаленно логинится на сервер. Попадает в chroot окружение > Запускает mc - все ОК. Когда нажимает ctrl+O появляется ошибка > mc > subshell.c: couldn't open master side of pty > pty_open_master: No such file or directory > что еще я не добавил в chroot для mc? Не уверен, но не может ли быть так, что МС пытается открыть файл устройства псевдотерминала (/dev/pty_smth)? А то, что в чруте нет /dev/, так это для безопасности. Попробовал у себя, без чрута, но со strace. -bash$ strace mc 2>mc.log -bash$ cat mc.log | grep /dev/ open("/dev/tty", O_RDWR) = 3 open("/dev/ptmx", O_RDWR) = 4 statfs("/dev/pts", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 stat64("/dev/pts/6", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 6), ...}) = 0 statfs("/dev/pts/6", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 stat64("/dev/pts/6", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 6), ...}) = 0 open("/dev/pts/6", O_RDWR|O_LARGEFILE) = 5 read(8, "/dev/sda2 / ext2 rw 0 0\nproc /pr"..., 4096) = 631 readlink("/proc/self/fd/0", "/dev/pts/5", 511) = 10 readlink("/proc/self/fd/0", "/dev/pts/5", 511) = 10 readlink("/proc/self/fd/0", "/dev/pts/5", 511) = 10 readlink("/proc/self/fd/0", "/dev/pts/5", 511) = 10 readlink -- это значит, "посмотреть, на что ссылается". /proc/self/0 -- стандартный ввод текущего процесса пытается хитро его открыть, видимо. Похоже на правду, но возможно я и не прав. -- Best regards, Konstantin mailto:khedin@mail.ru
next prev parent reply other threads:[~2007-06-21 10:39 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-21 9:55 Serge 2007-06-21 10:39 ` Konstantin S. Uvarin [this message] 2007-06-21 11:33 ` Andrew Borodin
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=1956201362.20070621143917@mail.ru \ --to=khedin@mail.ru \ --cc=community@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 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