|
|
Run applications as another user without switching
I have been trying to get chroot to work which will add further security to this approach. chroot sets the root directory for a process so that it cannot access anything outside a particulat directory structure e.g. /users/dummy
Run applications as another user without switching
Regarding chroot, I seriously doubt that this is going to work. When you use chroot, everything else above the new root directory becomes inaccessible.
chrooting OSX works fine
it's perfectly possible and very useful, see
Chroot Probelm
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.
Chroot Probelm
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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|