RE: [Chrootssh-users] Chroot not working
Brought to you by:
punkball
From: John R. <JR...@da...> - 2003-08-07 13:57:28
|
The passwd file needs /./ (which your directory has) Are you sure that is still present (in the passwd file)? You are sure you have the right tarball... (Worth checking) Have you got debug output from the server (run it manually with -ddd) It is only a few lines of code change to the server binary so a straight swap of that would have done the trick. (Still would if you decided to reinstall) As your chroot jail is working FOR ROOT (who may have extra permisisons on the files therein) we can assume that the file system in yout chroot jail is OK. [The sysmptoms of it not being OK would be that the SSH session would log straight back out again, we're not there yet so I'll ignore it for the mo.] The debug output should help determine why it isn't chrooting. Cheers -----Original Message----- From: Michael Robokoff [mailto:mr...@mr...] Sent: 07 August 2003 14:50 To: John Robson Cc: chr...@li... Subject: Re: [Chrootssh-users] Chroot not working 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 > > |