Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th August 2007, 13:34
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default chrooted SSH + Debian Etch

Hi,

has any body an idea how to chroot SSH in Debian Etch 4.0?
I know this howto here: http://howtoforge.com/chrooted_ssh_howto_debian
but it's sadly only for Debian Sarge ... and the Scripts won't work for Etch ;-/



Thanks


Leander
Reply With Quote
Sponsored Links
  #2  
Old 12th August 2007, 14:18
thanis thanis is offline
Member
 
Join Date: Aug 2007
Location: somewhere over the rainbox
Posts: 30
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Hi, were you able to install all necessary packages with apt-get (newer ssl is openssl-0.9.8 I believe). And if so, did you get any error output when running the script ?

Except for Falko's "incredimail" script, all the rest are basic linux/shell commands.

Kind regards,
Thanis
Reply With Quote
  #3  
Old 13th August 2007, 12:18
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

????? Waht are you talking about ??? Do you mean if I got openssl-0.9.8 ready for a jailed user?

I am even not able to jail anybody, beause the script of Falko is only for Sarge users.


But, I fund something ....

http://howtoforge.com/forums/attachm...2&d=1175003548

BUT I don't realy understand how to use it .... I don't know if I still have to install software how Falkos howto describes that ... like 1 Install The Newest Zlib Version, or 2 Install The Chrooted SSH and so on ...

It would be helpful if somebody can give me some ideas how to go on.

Thank you very much!


Leander

:-)
Reply With Quote
  #4  
Old 13th August 2007, 19:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

I haven't tried this on Etch, but I'll try to write a tutorial about it.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
LeoLinux (17th August 2007)
  #5  
Old 16th August 2007, 20:31
thanis thanis is offline
Member
 
Join Date: Aug 2007
Location: somewhere over the rainbox
Posts: 30
Thanks: 0
Thanked 7 Times in 7 Posts
Default

The tutorial is fine actually, it only needs a VERY small bit of tweaking for it to work on Debian Etch:

1.Don't do the zlib install !
2.
Code:
apt-get install libpam0g-dev openssl libcrypto++-dev libssl0.9.8 libssl-dev ssh zlib1g zlib1g-dev zlibc build-essential
3. then just follow the tutorial (the script is not actually important). But what falko forgot to mention, is that you need to copy the "script" contents to a file (e.g.: /home/chroot/chroot.sh) and then run that script:
Code:
 chmod +x /home/chroot/chroot.sh
/home/chroot/chroot.sh
Then follow the rest of the tutorial.

Like I said, its just a question of updating your apt packages to etch level !

GRtz,
Thanis
Reply With Quote
The Following User Says Thank You to thanis For This Useful Post:
LeoLinux (17th August 2007)
  #6  
Old 17th August 2007, 02:19
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

Hi,

thank you for your helpful response - but I seem to stupid for it ;-)

just step for step:


1. Don't install the zlib

2. Install The Chrooted SSH ? What about that? Should I do this step?

3. Create The Chroot Environment ? What about that? Should I do this step exactly how it's described in the Howto?

What about the part with the script? Should I skip executing his script?

What about the steps written under the script part ... like
Quote:
cp /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_files.so.2 ./lib/
Should I go one from there until step 4 ?


And _what_ script are you talking about ... the script I linked up in this thread or the one from Falko's howto?

Sorry for those stupid questions .. - I just want to make sure before I kill my installation again ;-)


Regards,

Leander
Reply With Quote
  #7  
Old 17th August 2007, 08:39
thanis thanis is offline
Member
 
Join Date: Aug 2007
Location: somewhere over the rainbox
Posts: 30
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Well ... all answers are positive to your questions.
Yes, install the chrooted SSH (download from sourceforge).
Yes, execute the script (use the one you mentioned, it's better than in the tutorial )
Yes, copy the files.
Yes, keep following the tutorial untill the end.
No, never use root as your chrooted user

Grtz,
Thanis
Reply With Quote
  #8  
Old 17th August 2007, 18:26
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

hmm thanks .... but the script which I mentioned didn't work ;-( nearly every command endet in a mess .. ... and those mysql pathes aren't there ...

and I'm still not sure if I should do step
Quote:
3 Create The Chroot Environment
Code:
mkdir /home/chroot/
mkdir /home/chroot/home/
cd /home/chroot
mkdir etc
mkdir bin
mkdir lib
mkdir usr
mkdir usr/bin
mkdir dev
mknod dev/null c 1 3
mknod dev/zero c 1 5
before I execute any of those both scripts or not?!


Thank you very much

;-)

Leander
Reply With Quote
  #9  
Old 19th August 2007, 10:24
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

Hi,

has no body an idea, or any good howto?

How far is Falko with his new howto for Etch? ;-)


Leander
Reply With Quote
  #10  
Old 20th August 2007, 18:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Quote:
Originally Posted by LeoLinux
How far is Falko with his new howto for Etch? ;-)
I haven't started yet - so many other things to do... But it's on my list.
__________________
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
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
Debian Etch (Debian 4.0) apache2 file needed Dekalb Installation/Configuration 3 1st June 2007 23:40
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
Moving ISPConfig from Suse 10.1 to Debian Etch grasomega Installation/Configuration 3 27th April 2007 12:42
Pls Help - Problem installing OpenVZ with Debian Etch. joelee HOWTO-Related Questions 3 14th January 2007 18:37
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 09:48.


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