Re: [Chrootssh-users] Chroot not working
Brought to you by:
punkball
From: Michael R. <mr...@mr...> - 2003-08-07 13:49:55
|
I did put together a script to start it. I didn't know however you could just replace the binary That would have been a lot easier. Anyway ssh works fine I can log in as my test user but I do not get chrooted. So I login as root and run the chroot command to that dir and it works fine all the necessary libraries are in place and work. When you say " If you have not built a file system under the jail" I assume you mean creating the necessary sub directories with the necessary files in them for the shell which tested fine by manually running the command. Am I missing something with the dot? I just added the dot to the home dir path in the etc/passwd file. --Mike John Robson wrote: >You could have just installed the rpm then replaced the binary. That would >give you all the relevant autostart functionality. > >However, the appropriate /rc.d/ script wouldn't be hard to put together - >your easier alternative would be an inittab entry... > >If you are not getting chrooted then the patch isn't working. Assuming you >have built a complete chroot jail then you should see your path as /test/ >If you have not built a file system under the jail then you'll not get to >log in, because there will be no shell for you to use. > >HTH > >John > > >-----Original Message----- >From: Michael Robokoff [mailto:mr...@mr...] >Sent: 06 August 2003 18:49 >To: chr...@li... >Subject: [Chrootssh-users] Chroot not working > > >I am running redhat 9, I removed all the ssh rpms >and got the pre patched tarball. I installed it as >indicated and I tested the chroot function and >that works fine. The w problems I see is I have to >manually start sshd. I think a /etc/rc.d/init.d/ >script would be nice. Other than that I can ssh in >but chroot does not appear to work I have the >users path as /home/./test in the password file and >the actual path is /home/test. > >Does anyone have any ideas? > >All help is appreciated. > >--Mike > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Chrootssh-users mailing list >Chr...@li... >https://lists.sourceforge.net/lists/listinfo/chrootssh-users > > |