Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-31-2012, 03:43 AM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 11
Rep: 
|
Man page showing only <END>
Hi,
When a user is in a jail shell, or chroot shell, the man page can't be displayed correctly (a blank page with only <END>).
I can see no error.
I used strace to compare a standard user with the user in jail (user: test) and can't find much difference. Man seems to find the zip file (ie. ping in this test)
Running Centos 6.2, jailkit.
If you have any idea how to make the page displayed, any settings (manpath, ...), permissions to apply to the manual, let me know.
Here is the log of strace for the user test (in jail).
Quote:
execve("/usr/bin/man", ["man", "ping"], [/* 13 vars */]) = 0
brk(0) = 0x741000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1f86334000
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=4249, ...}) = 0
mmap(NULL, 4249, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1f86332000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\355\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1903208, ...}) = 0
mmap(NULL, 3733672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1f85d86000
mprotect(0x7f1f85f0c000, 2097152, PROT_NONE) = 0
mmap(0x7f1f8610c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x186000) = 0x7f1f8610c000
mmap(0x7f1f86111000, 18600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1f86111000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1f86331000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1f86330000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1f8632f000
arch_prctl(ARCH_SET_FS, 0x7f1f86330700) = 0
mprotect(0x7f1f8610c000, 16384, PROT_READ) = 0
mprotect(0x7f1f86335000, 4096, PROT_READ) = 0
munmap(0x7f1f86332000, 4249) = 0
brk(0) = 0x741000
brk(0x762000) = 0x762000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=99158704, ...}) = 0
mmap(NULL, 99158704, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1f7fef5000
close(3) = 0
getuid() = 504
geteuid() = 504
getgid() = 100
getegid() = 100
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=39, ws_col=143, ws_xpixel=0, ws_ypixel=0}) = 0
open("/etc/man.config", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4940, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1f86333000
read(3, "#\n# Generated automatically from"..., 4096) = 4096
brk(0x784000) = 0x784000
read(3, "T\t\t1:1p:8:2:3:3p:4:5:6:7:9:0p:n:"..., 4096) = 844
read(3, "", 4096) = 0
stat("/usr/local/share/man/overrides/en_US.UTF-8", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/overrides/en_US", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/overrides/en", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/overrides", 0x7fffbe9d1af0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en_US.UTF-8", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en_US", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en", 0x7fffbe9d1aa0) = -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/overrides/en_US.UTF-8", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en_US", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides", 0x7fffbe9d1af0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US.UTF-8", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US", 0x7fffbe9d1aa0) = -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/overrides/en_US.UTF-8", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en_US", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides", 0x7fffbe9d1af0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US.UTF-8", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en_US.UTF-8", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en_US", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides", 0x7fffbe9d1af0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US.UTF-8", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US", 0x7fffbe9d1aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/man/en_US.UTF-8", 0x7fffbe9d2aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en_US", 0x7fffbe9d2aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en", 0x7fffbe9d2aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/man/man", 0x7fffbe9d4b90) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/MAN", 0x7fffbe9d4b90) = -1 ENOENT (No such file or directory)
stat("/usr/local/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/man/en_US.UTF-8", 0x7fffbe9d2aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en_US", 0x7fffbe9d2aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en", 0x7fffbe9d2aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/man", 0x7fffbe9d4b90) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/MAN", 0x7fffbe9d4b90) = -1 ENOENT (No such file or directory)
stat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/en_US.UTF-8", 0x7fffbe9d2aa0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US", 0x7fffbe9d2aa0) = -1 ENOENT (No such file or directory)
stat("/usr/man/overrides/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/man/overrides/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/man/overrides/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/man/overrides", 0x7fffbe9d1b20) = -1 ENOENT (No such file or directory)
stat("/usr/man/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/man/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/man/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/man", 0x7fffbe9d1b20) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/overrides", 0x7fffbe9d1b20) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/share/man/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/overrides/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/overrides/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/overrides/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/overrides", 0x7fffbe9d1b20) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/man/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/overrides/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/overrides/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/overrides/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/overrides", 0x7fffbe9d1b20) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/man/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/overrides/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/overrides/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/overrides/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/overrides", 0x7fffbe9d1b20) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/en_US.UTF-8", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/en_US", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man/en", 0x7fffbe9d1ad0) = -1 ENOENT (No such file or directory)
stat("/usr/X11R6/man", 0x7fffbe9d1b20) = -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/local/share/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fcntl(4, F_GETFD) = 0x1 (flags FD_CLOEXEC)
getdents(4, /* 23 entries */, 32768) = 744
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/local/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 23 entries */, 32768) = 744
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/local/share/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
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|O_CLOEXEC) = 4
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|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 757 entries */, 32768) = 26384
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 757 entries */, 32768) = 26384
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/share/man/html1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/share/man/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/share/man/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/html1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/html1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 2 entries */, 32768) = 48
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 2 entries */, 32768) = 48
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 2 entries */, 32768) = 48
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/man/html1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/man/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/man/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/share/man/html8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/share/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 2 entries */, 32768) = 48
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/local/share/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 2 entries */, 32768) = 48
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/local/share/man/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/html8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/en/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 88
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/en/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 88
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/en/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/html8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 504 entries */, 32768) = 18704
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/share/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 504 entries */, 32768) = 18704
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
access("/usr/share/man/man8/ping.8.gz", R_OK) = 0
open("/usr/local/man/html8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 4 entries */, 32768) = 112
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/local/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 4 entries */, 32768) = 112
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/usr/local/man/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/usr/share/man/man8/ping.8.gz", R_OK) = 0
pipe2([4, 5], O_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f1f863309d0) = 31129
close(5) = 0
fcntl(4, F_SETFD, 0) = 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) = 0x7f1f86332000
read(4, ".\\\" This manpage has been automa"..., 4096) = 4096
close(4) = 0
wait4(31129, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 31129
--- SIGCHLD (Child exited) 0 (0) ---
munmap(0x7f1f86332000, 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) = -1 ENOENT (No such file or directory)
open("/usr/lib64/gconv/gconv-modules", O_RDONLY) = -1 ENOENT (No such file or directory)
pipe2([4, 5], O_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f1f863309d0) = 31130
close(5) = 0
fcntl(4, F_SETFD, 0) = 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) = 0x7f1f86332000
read(4, ".\\\" This manpage has been automa"..., 4096) = 4096
close(4) = 0
wait4(31130, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 31130
--- SIGCHLD (Child exited) 0 (0) ---
munmap(0x7f1f86332000, 4096) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigaction(SIGINT, {0x408050, [INT], SA_RESTORER|SA_RESTART, 0x7f1f85db8900}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f1f85db8900}, {0x408050, [INT], SA_RESTORER|SA_RESTART, 0x7f1f85db8900}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0x7f1f85db8900}, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD, parent_tidptr=0x7fffbe9d4b88) = 31131
wait4(31131, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 31131
rt_sigaction(SIGINT, {0x408050, [INT], SA_RESTORER|SA_RESTART, 0x7f1f85db8900}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7f1f85db8900}, 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, 0x7f1f85db8900}, {0x408050, [INT], SA_RESTORER|SA_RESTART, 0x7f1f85db8900}, 8) = 0
exit_group(0) = ?
|
Thanks in advance.
Last edited by fredo2906; 05-31-2012 at 04:01 AM.
|
|
|
05-31-2012, 04:24 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,223
|
have you checked the variable PAGER? How is it set?
|
|
|
05-31-2012, 04:29 AM
|
#3
|
LQ Newbie
Registered: May 2012
Posts: 11
Original Poster
Rep: 
|
Thank a lot for your reply.
The variable PAGE is set to less in :
/home/jail/./etc/man.config
=> PAGER /usr/bin/less -is
/etc/man.config
=> PAGER /usr/bin/less -is
=========================================
Just did that check in case.
echo $PAGER
<nothing for both std user & jailed user>
env | grep PAGER
<nothing for both std user & jailed user>
I suppose that man is just using the settings for internal use.
Any other idea?
===========================================
Additional info:
/usr/bin/gunzip -c /usr/share/man/man1/man.1.gz | less -is
Since man seems to find the "gz file" looking at the trace, I just tried to unzip it using the "test" user. And that can be displayed using "less -is".
Last edited by fredo2906; 05-31-2012 at 04:31 AM.
|
|
|
06-01-2012, 01:08 AM
|
#4
|
LQ Newbie
Registered: May 2012
Posts: 11
Original Poster
Rep: 
|
Hello again.
I did some progress using man -d "command" ie. man -d ls.
Here is what is coming out :
(cd "/usr/share/man" && (echo ".ll 12.8i"; echo ".nr LL 12.8i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man1/ls.1.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -c -mandoc 2>/dev/null | /usr/bin/less -is)
And when I execute :
# cd "/usr/share/man" && (echo ".ll 12.8i"; echo ".nr LL 12.8i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man1/ls.1.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl
The answer is :
/usr/bin/nroff: line 78: [: too many arguments
I ve tried the same command with a user not in the jail, and the problem does not occur  . The page is formatted correctly.
Any idea/hint about that would be appreciated.
Thanks again. 
|
|
|
06-01-2012, 01:36 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,223
|
you can try to redirect the output of gtbl into a file and compare (for jailed and normal user).
|
|
|
06-01-2012, 01:46 AM
|
#6
|
LQ Newbie
Registered: May 2012
Posts: 11
Original Poster
Rep: 
|
Thank you for the reply.
I did, the files are the same.
So, I am coming to another conclusion. Something wrong with the charset.
When I execute separately /usr/bin/nroff -c -mandoc, I get a
WARNING: old character encoding and/or character set
Which seems to have a strong relation with my issue...now, what is the problem with that charset.
|
|
|
06-01-2012, 02:03 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,223
|
based on the man page: http://www.unix.com/man-page/Linux/1/nroff/ probably you have different locale settings or a related environment variable is not set...
|
|
|
06-01-2012, 02:28 AM
|
#8
|
LQ Newbie
Registered: May 2012
Posts: 11
Original Poster
Rep: 
|
Thanks.
I found where was the problem, thanks to your man page about groff. Since nroff is just a wrapper, I tried to execute :
cd "/usr/share/man" && (echo ".ll 12.8i"; echo ".nr LL 12.8i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man1/ls.1.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/groff -Tutf8 -C mandoc
This told me that grotty was not accessible.
I changed the permission on the file so it could be executed, and boom, the man page came up.
Problem solved. Thanks for your time.
|
|
|
06-01-2012, 02:52 AM
|
#9
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,223
|
what a surprise!
_____________________________________
If someone helps you, or you approve of what's posted, click the "Add to Reputation" button, on the left of the post.
Happy with solution ... mark as SOLVED
(located in the "thread tools")
|
|
|
All times are GMT -5. The time now is 02:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|