[PLUTO-help] CHROOT e fedora core 3 ---> Errore
KieZz
kiezz a libero.it
Mer 17 Nov 2004 16:00:59 CET
Ciao
utilizzo un demone ftpd che ha bisogno di utilizzare il comando chroot.
Con la fedora core 2 tutto bene, con la fedora core 3 quando provo a
utilizzare quel binario come lo usa il demone ottengo:
[root a localhost ~]# chroot /jail/glftpd
chroot: cannot run command `/bin/bash': No such file or directory
Questo non mi fa funzionare bene il demone, alcuni comandi danno errore
proprio a causa di questo.
Vi incollo il risultato di strace (e' un po' lungo) :
[root a localhost ~]# strace chroot /jail/glftpd
execve("/usr/sbin/chroot", ["chroot", "/jail/glftpd"], [/* 21 vars */]) = 0
uname({sys="Linux", node="localhost.localdomain", ...}) = 0
brk(0) = 0x940f000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=71593, ...}) = 0
old_mmap(NULL, 71593, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6fee000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \177G\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0
old_mmap(0x463000, 1207532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x463000
old_mmap(0x584000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x120000) = 0x584000
old_mmap(0x588000, 7404, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x588000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xf6fed000
mprotect(0x584000, 8192, PROT_READ) = 0
mprotect(0x45f000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xf6fed8e0, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
munmap(0xf6fee000, 71593) = 0
brk(0) = 0x940f000
brk(0x9430000) = 0x9430000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38655168, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6ded000
close(3) = 0
chroot("/jail/glftpd") = 0
chdir("/") = 0
execve("/bin/bash", ["/bin/bash", "-i"], [/* 21 vars */]) = -1 ENOENT (No such
file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xf6dec000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2528
read(3, "", 4096) = 0
close(3) = 0
munmap(0xf6dec000, 4096) = 0
open("/usr/share/locale/it_IT.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/it_IT.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/it_IT/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/it.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/it.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/it/LC_MESSAGES/coreutils.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=124989, ...}) = 0
mmap2(NULL, 124989, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6dce000
close(3) = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=21544, ...}) = 0
mmap2(NULL, 21544, PROT_READ, MAP_SHARED, 3, 0) = 0xf6dc8000
close(3) = 0
write(2, "chroot: ", 8chroot: ) = 8
write(2, "cannot run command `/bin/bash\'", 30cannot run command `/bin/bash')
= 30
open("/usr/share/locale/it_IT.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/it_IT.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/it_IT/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/it.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/it.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/it/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=33665, ...}) = 0
mmap2(NULL, 33665, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6dbf000
close(3) = 0
open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\4\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=5336, ...}) = 0
old_mmap(NULL, 8220, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xf6dbc000
old_mmap(0xf6dbd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0) = 0xf6dbd000
close(3) = 0
write(2, ": No such file or directory", 27: No such file or directory) = 27
write(2, "\n", 1
) = 1
Sto provando a fare un update, cmq sembra che il comando chroot non funzioni
in generale.
Qualcuno ha qualche idea?
Tnx
More information about the pluto-help
mailing list