#1  
Old 17th July 2006, 19:53
bkrausz bkrausz is offline
Junior Member
 
Join Date: Jun 2006
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default Chrooted SSH apps

I'm trying to provide Nano and a couple of other apps for my users (I just upgraded to the latest ispconfig). I edited /root/ispconfig/scripts/shell/creat_chrooted_env.sh and added /bin/nano and /usr/bin/nano to APPS, and reran it, but whenever I try to run nano I get an "Error opening terminal: xterm." error. Any way I can include xterm in the chroot?

Thanks!!
Reply With Quote
Sponsored Links
  #2  
Old 17th July 2006, 20:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

Maybe you can find the dependencys with strace as described here:

http://olivier.sessink.nl/jailkit/ho...bug_jails.html
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th July 2006, 02:54
bkrausz bkrausz is offline
Junior Member
 
Join Date: Jun 2006
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

I spent a few hours hunting and I can't find exactly what you need to do to run xterm. I'm gonna try copying some more libs tomorrow...if anybody else is looking into this, please post, otherwise thanks for the recommendation till, I'll post if I find something.
Reply With Quote
  #4  
Old 18th July 2006, 13:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Did you have a look at this tutorial? http://www.howtoforge.com/chrooted_ssh_howto_debian
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 18th July 2006, 17:35
bkrausz bkrausz is offline
Junior Member
 
Join Date: Jun 2006
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

I did follow that howto...I found my problem.

There needs to be a couple of xterm files from the etc dir in the folder. Here's how to add nano:

EDIT /root/ispconfig/scripts/shell/create_chroot_env.sh
ADD /bin/nano to the end of the APPS= line (before the last ")
ADD at the bottom:
#Allow nano to work
mkdir ./etc/terminfo/x/
cp /etc/terminfo/x/* ./etc/terminfo/x/

And viola!
Reply With Quote
The Following User Says Thank You to bkrausz For This Useful Post:
mbria (31st December 2007)
  #6  
Old 30th July 2006, 01:35
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,266
Thanks: 82
Thanked 24 Times in 20 Posts
Default

ok, but how would I add more apps (i.e. nano ) after having done all that, shall I simply rerun the whole how-to with the changed settings including more libbs and apps?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chrooted SSH HowTo question??? ctroyp HOWTO-Related Questions 86 24th February 2007 14:14
Chrooted SSH HowTo for Fedora Core 4? ctroyp HOWTO-Related Questions 3 26th May 2006 02:00
ssh chrooted unkn0wn Server Operation 16 20th May 2006 10:42
Chrooted SSH linuxuser1 Server Operation 6 18th April 2006 08:09


All times are GMT +2. The time now is 07:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.