|
From: | Marcus |
Subject: | Re: [Jailkit-users] jailed users can't use arrow keys or syntax highlighting in vim |
Date: | Thu, 30 May 2013 23:32:10 -0400 |
I tried this but it said that the files already existed so I think that I ran that command before: jk_cp -v -f /home/jail /usr/share/vim I also tried to also do it with this directory because a strace said some of the files were being used: jk_cp -v -f /home/jail /var/lib/vim Still with no luck I tried to run strace on the jailed user, and then grepped for "no such file" errors, and this is what I got: strace -o jailst su testuser -c vim cat jailst | grep -i such | sort | uniq access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or directory) connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) stat("/home/jail/./home/testuser/.pam_environment", 0x7fff152ef770) = -1 ENOENT (No such file or directory) after a bit of looking on google I see that the "hang" may be due to the "connect" command that has the "110" timeout - but I'm not sure if " /var/run/nscd/socket " should be copied to the jail. I'm also not getting any colors in vim. |
[Prev in Thread] | Current Thread | [Next in Thread] |