LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2010, 06:04 AM   #1
Dig
Member
 
Registered: Nov 2009
Posts: 50

Rep: Reputation: 1
man pages blanks in chroot enviroment


i've just finished my chrooted enviroment succesfully after facing many problems , now i can't open man page for any command and it just gave me blank page ,

I copied the man directories into the jailed enviroment with the needed libraries and commands

below strace for man ls

strace man ls
execve("/usr/bin/man", ["man", "ls"], [/* 16 vars */]) = 0
brk(0) = 0x19df8000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b2a54f2a000
uname({sys="Linux", node="italy", ...}) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=11169, ...}) = 0
mmap(NULL, 11169, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b2a54f2b000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\332\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1712536, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b2a54f2e000
mmap(NULL, 3498328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b2a5512b000
mprotect(0x2b2a55279000, 2093056, PROT_NONE) = 0
mmap(0x2b2a55478000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14d000) = 0x2b2a55478000
mmap(0x2b2a5547d000, 16728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b2a5547d000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b2a55482000
arch_prctl(ARCH_SET_FS, 0x2b2a554826e0) = 0
mprotect(0x2b2a55478000, 16384, PROT_READ) = 0
mprotect(0x2b2a55129000, 4096, PROT_READ) = 0
munmap(0x2b2a54f2b000, 11169) = 0
brk(0) = 0x19df8000
brk(0x19e19000) = 0x19e19000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=56462720, ...}) = 0
mmap(NULL, 56462720, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b2a55483000
close(3) = 0
getuid() = 500
geteuid() = 500
getgid() = 500
getegid() = 500
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=44, ws_col=177, ws_xpixel=0, ws_ypixel=0}) = 0
open("/etc/man.config", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4617, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b2a58a5c000
read(3, "#\n# Generated automatically from"..., 4096) = 4096
brk(0x19e3b000) = 0x19e3b000
read(3, "packages).\n#\nMANSECT\t\t1:1p:8:2:3"..., 4096) = 521
read(3, "", 4096) = 0
stat("/usr/kerberos/bin/man", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/usr/kerberos/bin/MAN", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/usr/kerberos/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/kerberos/man/en_US.UTF-8", 0x7fffb8d175a0) = -1 ENOENT (No such file or directory)
stat("/usr/kerberos/man/en_US", 0x7fffb8d175a0) = -1 ENOENT (No such file or directory)
stat("/usr/kerberos/man/en", 0x7fffb8d175a0) = -1 ENOENT (No such file or directory)
stat("/usr/kerberos/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/share/man/en_US.UTF-8", 0x7fffb8d175d0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en_US", 0x7fffb8d175d0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en", 0x7fffb8d175d0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/en_US.UTF-8", 0x7fffb8d175d0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US", 0x7fffb8d175d0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/en_US.UTF-8", 0x7fffb8d175d0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US", 0x7fffb8d175d0) = -1 ENOENT (No such file or directory)
stat("/home/admin/bin/man", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/bin/MAN", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man1", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man8", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/bin/man", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/bin/MAN", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man1", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man8", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/bin/man", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/bin/MAN", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man1", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/home/admin/man8", 0x7fffb8d196a0) = -1 ENOENT (No such file or directory)
stat("/usr/man/en_US.UTF-8", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/man/en_US", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/man/en", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/man", 0x7fffb8d17660) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US.UTF-8", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en_US.UTF-8", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en_US", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/local/man", 0x7fffb8d17660) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en_US.UTF-8", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en_US", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/en_US.UTF-8", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/en_US", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/en", 0x7fffb8d17600) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man", 0x7fffb8d17660) = -1 ENOENT (No such file or directory)
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
open("/usr/kerberos/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/kerberos/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 18 entries */, 32768) = 592
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/kerberos/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 18 entries */, 32768) = 592
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/kerberos/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 2 entries */, 32768) = 48
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/local/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 2 entries */, 32768) = 48
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/local/share/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 5 entries */, 32768) = 144
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/en/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 5 entries */, 32768) = 144
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/en/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/share/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 910 entries */, 32768) = 32752
getdents(4, /* 637 entries */, 32768) = 23056
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 910 entries */, 32768) = 32752
getdents(4, /* 637 entries */, 32768) = 23056
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
access("/usr/share/man/man1/ls.1.gz", R_OK) = 0
access("/usr/share/man/man1/ls.1.gz", R_OK) = 0
pipe([4, 5]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b2a55482770) = 23821
close(5) = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b2a58a5d000
read(4, ".\\\" DO NOT MODIFY THIS FILE! It"..., 4096) = 4096
close(4) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(23821, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 23821
munmap(0x2b2a58a5d000, 4096) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=25464, ...}) = 0
mmap(NULL, 25464, PROT_READ, MAP_SHARED, 4, 0) = 0x2b2a58a5d000
close(4) = 0
pipe([4, 5]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b2a55482770) = 23822
close(5) = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b2a58a64000
read(4, ".\\\" DO NOT MODIFY THIS FILE! It"..., 4096) = 4096
close(4) = 0
wait4(23822, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 23822
--- SIGCHLD (Child exited) @ 0 (0) ---
munmap(0x2b2a58a64000, 4096) = 0
rt_sigaction(SIGINT, {0x407840, [INT], SA_RESTORER|SA_RESTART, 0x2b2a5515b2d0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x1, [], SA_RESTORER, 0x2b2a5515b2d0}, {0x407840, [INT], SA_RESTORER|SA_RESTART, 0x2b2a5515b2d0}, 8) = 0
rt_sigaction(SIGQUIT, {0x1, [], SA_RESTORER, 0x2b2a5515b2d0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD, parent_tidptr=0x7fffb8d19688) = 23823
wait4(23823, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 23823
rt_sigaction(SIGINT, {0x407840, [INT], SA_RESTORER|SA_RESTART, 0x2b2a5515b2d0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x2b2a5515b2d0}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGINT, {SIG_DFL, [INT], SA_RESTORER|SA_RESTART, 0x2b2a5515b2d0}, {0x407840, [INT], SA_RESTORER|SA_RESTART, 0x2b2a5515b2d0}, 8) = 0
exit_group(0) = ?



the non existence directories not exist on the server itself


Thanks
 
Old 12-20-2010, 05:27 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi, check the manpath in your /etc/profile!
If you have the manpages installed in your chroot-environment, the manpath has to be in your /etc/profile and don't forget to
Code:
source /etc/profile
after chrooting!

Markus

Last edited by markush; 12-20-2010 at 05:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
named-checkzone not working on Centos 5.3 in chroot-ed enviroment? MheAd Linux - Software 2 03-29-2010 08:04 AM
How to setup a chroot enviroment for wu-ftpd rince Linux - Newbie 1 10-01-2009 10:48 AM
man not working within chroot Roosta21 Linux - Security 6 10-10-2007 05:00 AM
Now Bash isnt working within the chroot enviroment matthewa Linux From Scratch 2 06-02-2005 06:37 PM
I cant get into the chroot enviroment...help matthewa Linux From Scratch 2 06-02-2005 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration