I installed rssh from packages, and used the mkchroot.sh script to create a
chroot jail for a user. The script threw up errors, and when I tried to
connect, I got the "Connection closed" message.

The FAQ says:

"However it seems that on recent Linux distros, the script is missing
something important, and I haven't yet figured out what that is... If you
are able to identify it, please post to the mailing list to let me (and
everyone else) know."

So, to get it to work, I altered the lines that referred to libnss file to
change /lib/ to /lib/x86_64-linux-gnu/

Here's a simple diff:

$ diff mkchroot.sh.orig mkchroot.sh
151c151
<             /lib/libnss_compat* /lib/libnss_files*; do
---
>             /lib/x86_64-linux-gnu/libnss_compat* 
> /lib/x86_64-linux-gnu/libnss_files*; do
164c164
< tar -cf - /lib/libnss_compat* /lib/libnss_files* | tar -C "$jail_dir" -xvf - 
|sed 's/^/\t/'
---
> tar -cf - /lib/x86_64-linux-gnu/libnss_compat* 
> /lib/x86_64-linux-gnu/libnss_files* | tar -C "$jail_dir" -xvf - |sed 's/^/\t/'

Gaz


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to