HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Chroot ssh login problem (http://www.howtoforge.com/forums/showthread.php?t=16812)

gral 31st October 2007 22:46

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!

falko 1st November 2007 19:17

Which distribution do you use?
Did you follow any of the howtos from HowtoForge?

gral 2nd November 2007 01:17

Hello Falko, always answering very quickly! :D

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!

falko 2nd November 2007 18:25

You might want to try this tutorial instead: http://www.howtoforge.com/chroot_ssh_sftp_fedora7


All times are GMT +2. The time now is 17:28.

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