#1  
Old 31st October 2007, 23:46
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to gral
Unhappy Chroot ssh login problem

Hello everyone, im having troubles installing a ssh chrooted envioroment; at first look everything works fine, doing a "chroot /chroot/ /bin/sh" i enter to the chroot system Ok.

But loggin via ssh to the account i enter to the home directory config in the passwd but the user is not chrooted, i can see the system normally..

here are my passwd files;

/etc/passwd

gjail:x:603:603::/chroot/./home/gjail/:/bin/sh

/chroot/etc/passwd

gjail:x:603:603::/home/gjail:/bin/sh


Any tip or clue will be very helpfully!!


Best Regards!
Reply With Quote
Sponsored Links
  #2  
Old 1st November 2007, 20:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Which distribution do you use?
Did you follow any of the howtos from HowtoForge?
__________________
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 2nd November 2007, 02:17
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to gral
Default

Hello Falko, always answering very quickly!

Im using CentOS 3, i was following the HOWto of the official site (http://chrootssh.sourceforge.net/docs/chrootedsftp.html)

OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003

Hope Helps!
Reply With Quote
  #4  
Old 2nd November 2007, 19:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

You might want to try this tutorial instead: http://www.howtoforge.com/chroot_ssh_sftp_fedora7
__________________
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
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
SSH Problem - Receive signal 15 Terminating joelee Technical 1 28th September 2007 19:47
Unable to authenticate to SMTP server ashkev Installation/Configuration 15 6th February 2007 18:46
ssh chroot works, but no scp for chroot users zokahn HOWTO-Related Questions 5 30th January 2006 10:33
Problem with POP3 Login masterkain Installation/Configuration 6 15th January 2006 19:11


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


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