#1  
Old 16th October 2006, 19:09
3molo 3molo is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default chroot in debian doesnt work.

Hi and thanks for the guides Falko.

I cant get the chroot patch to work although I followed your guide. Im running debian sarge/sid mix. Only difference between your installation process is that I choosed the chroot patch that matches my openssh version, and I assume this is the correct thing to do?
I did create all the dirs, copied all the files and changed the passwd entries.
Restarted my sshd after each change I did. also tried the suggested pam entries to be used with the patch (openssh-3.8.1p1-chroot/contrib/sshd.pam.generic).

no result:
test@w00t:~$ pwd
/home/chroot/./home/test

passwd entry in both passwd files:
test:x:1005:1005:,,,:/home/chroot/./home/test:/bin/bash

ls -l /home/chroot/
drwxr-sr-x 2 root staff 1024 Oct 14 17:47 bin
drwxr-sr-x 2 root staff 1024 Oct 14 17:43 dev
drwxr-sr-x 2 root staff 1024 Oct 14 17:50 etc
drwxr-sr-x 3 root staff 1024 Oct 14 17:51 home
drwxr-sr-x 3 root staff 1024 Oct 14 17:49 lib
drwxr-sr-x 5 root staff 1024 Oct 14 17:47 usr

versions:
SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4, openssh-3.8.1p1-chroot.

Any clue?
Reply With Quote
Sponsored Links
  #2  
Old 17th October 2006, 17:53
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 3molo
Only difference between your installation process is that I choosed the chroot patch that matches my openssh version, and I assume this is the correct thing to do?
Please use the commands exactly as shown in the tutorial. You don't patch your existing SSH installation, you install a completely new SSH daemon (which has the chroot patch):

Code:
cd /tmp
apt-get install libpam0g-dev openssl libcrypto++-dev libssl0.9.7 libssl-dev ssh
wget http://chrootssh.sourceforge.net/download/openssh-4.2p1-chroot.tar.gz
tar xvfz openssh-4.2p1-chroot.tar.gz
cd openssh-4.2p1-chroot
./configure --exec-prefix=/usr --sysconfdir=/etc/ssh --with-pam
make
make install
__________________
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
  #3  
Old 20th October 2006, 11:32
3molo 3molo is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

oh, right.
Thanks
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 kernel, needs work without internet. EmpJohnIV Kernel Questions 2 11th June 2006 06:36
Problem installing 2.2 on Debian Sarge 3.1 bwrob Installation/Configuration 3 3rd March 2006 23:40
sasldb2 on Debian in chroot not updated.... andreaskorte Installation/Configuration 2 17th February 2006 00:22
ssh chroot works, but no scp for chroot users zokahn HOWTO-Related Questions 5 30th January 2006 09:33
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


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


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