Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th May 2008, 21:09
nicho12 nicho12 is offline
Junior Member
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Default Chrooted SSH/SFTP Screen problems

Hello,
I followed the guide @ http://www.howtoforge.org/chroot_ssh_sftp_debian_etch

and setup a working chrooted shell/sftp

I managed to add some applications by adding them into the create_chroot_env script written there, and most of them worked fine. I had to copy some lib files to get some working.

However there is one essential application I need, screen.
I cannot get it to work on the chrooted shell.

The first error I had was something like:
Error: Must be connected to a terminal.

I somehow fixed this by mounting proc in the chroot dir and then I get the error:

Cannot open your terminal '/dev/pts/1' - please check.

I then mounted that also and it seemed to work and the screen window would open, but then I would get the error:
No More PTYs


If anyone could help me out I would be extremely greatful. It is pretty essential that screen is able to run in the chroot.

thanks
N
Reply With Quote
Sponsored Links
  #2  
Old 26th May 2008, 02:01
nicho12 nicho12 is offline
Junior Member
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Default

sorry for the double post but I could really do with some help here..
If anyone has any suggestions I am willing to try them
Reply With Quote
  #3  
Old 26th May 2008, 16:07
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

I'm sorry, but I have no idea...
__________________
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
  #4  
Old 26th May 2008, 22:46
nicho12 nicho12 is offline
Junior Member
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Default

damn o well
I will keep working on this hopefully I will find some solution!

I do have another question tho..
Is it possible to create super users in the jail that are chrooted to the jail?
or if not ,is it possible to allow a user to perform sudo in the jail?

I am wondering this becuase is it possible to compile programs specifically inside the jail so the lib etc. etc. are all written to the files inside the jailed directories.

I hope what i said is clear
N
Reply With Quote
  #5  
Old 27th May 2008, 18:13
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

Haven't tried this, but it should be possible.
__________________
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
  #6  
Old 31st May 2008, 11:37
nicho12 nicho12 is offline
Junior Member
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Ok I found a way to get screen working

Firstly add the relevant application path to create_chroot_env or whatever script you are using
copy required lib files (cant be more specific, sorry)

then you need to mount the following (this is how I got it to work):
Code:
mount -o bind /dev /home/chroot/dev
mount -t proc proc /home/chroot/proc
mount -t devpts devpts /home/chroot/dev/pts
remember you will need the directories there to mount to
Reply With Quote
The Following User Says Thank You to nicho12 For This Useful Post:
falko (1st June 2008)
Reply

Bookmarks

Tags
chroot, debian, jail, no more pty, screen

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/SFTP need help docean Installation/Configuration 5 18th March 2008 16:26
Chrooted SSH/SFTP FFEMTcJ HOWTO-Related Questions 1 17th March 2008 14:58
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 09:11
Chrooted SSH/SFTP On Fedora 7 city HOWTO-Related Questions 4 16th November 2007 17:34
Empty Recycle Bin jon335 General 40 6th May 2006 11:56


All times are GMT +2. The time now is 18:46.


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