LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-31-2012, 04:43 AM   #1
fredo2906
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
Lightbulb 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 05:01 AM.
 
Old 05-31-2012, 05:24 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
have you checked the variable PAGER? How is it set?
 
Old 05-31-2012, 05:29 AM   #3
fredo2906
LQ Newbie
 
Registered: May 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
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 05:31 AM.
 
Old 06-01-2012, 02:08 AM   #4
fredo2906
LQ Newbie
 
Registered: May 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Lightbulb

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.
 
Old 06-01-2012, 02:36 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
you can try to redirect the output of gtbl into a file and compare (for jailed and normal user).
 
Old 06-01-2012, 02:46 AM   #6
fredo2906
LQ Newbie
 
Registered: May 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-01-2012, 03:03 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
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...
 
Old 06-01-2012, 03:28 AM   #8
fredo2906
LQ Newbie
 
Registered: May 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thumbs up

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.
 
Old 06-01-2012, 03:52 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
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")
 
  


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
man page is not found although $MANPATH and man.conf changed Abbraxas Linux - Newbie 3 09-05-2011 07:40 PM
Does "mtd write" clear/erase the end of the mtd block by default? (no man page found) maddes.b Linux - Kernel 0 08-17-2009 04:07 AM
man command - (END) michshelly Linux - Newbie 6 04-27-2006 04:04 AM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 09:52 AM
why all man(help) pages not showing at a time? pradeepsamale Linux - General 3 12-11-2003 09:46 AM


All times are GMT -5. The time now is 02:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration