It is related to http://savannah.nongnu.org/bugs/?36906#comment3.
Adding the values to jk_chrootsh.ini was the solution:
[DEFAULT]
env= TERM, PATH
Best Regards
Am 19.02.2014 18:17, schrieb Christian
Schulz:
Hello,
I have done some research looking into the process via strace and
here is the output of
the important part:
[pid 927] access("/usr/share/terminfo/u/unknown", R_OK) = 0
[pid 927] open("/usr/share/terminfo/u/unknown", O_RDONLY) = 3
[pid 927] fstat(3, {st_mode=S_IFREG|0644, st_size=320, ...}) = 0
[pid 927] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc63ae7a000
[pid 927] read(3, "\32\1\36\0\7\0\1\0\202\0\10\0unknown|unknown
term"..., 4096) = 320
[pid 927] read(3, "", 4096) = 0
[pid 927] close(3) = 0
[pid 927] munmap(0x7fc63ae7a000, 4096) = 0
[pid 927] ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost
isig icanon echo ...}) = 0
[pid 927] ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost
isig icanon echo ...}) = 0
[pid 927] ioctl(1, TIOCGWINSZ, {ws_row=24, ws_col=80,
ws_xpixel=0, ws_ypixel=0}) = 0
[pid 927] write(2, "Error opening terminal: unknown."..., 33) =
33
[pid 927] exit_group(1) = ?
You can see it finds the file and opens it. But something is
happening and it breaks.
Best Regards,
Christian Schulz
Am 19.02.2014 18:03, schrieb Christian Schulz:
Hello,
I have created a jail with jk_init -v -j ... basicshell and
after it I added the editors
with jk_init -v -j ... editors.
When trying to use nano I get the error "Error opening terminal:
unknown.".
vi is working.
What is wrong?
Do I need to init a jail directly with all sections I need or is
it possible to add other
functions as needed?
Best Regards,
Christian Schulz
_______________________________________________
Jailkit-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/jailkit-users
_______________________________________________
Jailkit-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/jailkit-users
|