Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Chroot Probelm' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Chroot Probelm
Authored by: CrazyDuke on May 21, '04 10:55:04AM

I think your problem is that initially you were not allowed to do it, but when you did "sudo sh" you created a new shell but I don't think any of the path information was passed along. You should simply do "su -" (that is the same command above without a user) and that will prompt you for your root password and you will then be in as root.

Reason I say this is that "chroot: /bin/bash: No such file or directory" is referring to the command "chroot" it can't find it cuz there probably is no path variable set.

Now as far as whether it won't work due to losing frameworks, etc, I don't know I guess that's something you'll have to try.



[ Reply to This | # ]
Chroot Probelm
Authored by: thochman on May 22, '04 07:19:55PM

Reason I say this is that "chroot: /bin/bash: No such file or directory" is referring to the command "chroot" it can't find it cuz there probably is no path variable set.

Actually, it's chroot saying that /bin/bash cannot be found. If it was bash, the line would start with "bash" and not "chroot". :) The reason this is occurring is because chroot is using /jail as the / directory. Well, since no command is specified, chroot attempts to load up a shell. Namely, /bin/bash. If there's no /jail/bin/bash then chroot spits out the error seen here.



[ Reply to This | # ]