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


Click here to return to the 'Run applications as another user without switching' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run applications as another user without switching
Authored by: kianga on May 21, '04 10:48:51AM

Regarding chroot, I seriously doubt that this is going to work. When you use chroot, everything else above the new root directory becomes inaccessible.

This includes things like the shell (/bin/bash), but more importantly all the system frameworks (e.g. Cocoa), which are located in /System/Library/Frameworks.

Basically, you have to copy all important system files into the appropriate directories below the chrooted directory, e.g. /jail/System/Library/Frameworks, /jail/bin/bash, etc. Also, the /Volumes directory wouldn't be available either.

Using a chroot on a GUI-less UNIX server is difficult enough; I doubt it will work on a system as complex as OS X.



[ Reply to This | # ]
chrooting OSX works fine
Authored by: daniel_steffen on May 25, '04 11:57:57AM

it's perfectly possible and very useful, see
http://darwinports.gene-hacker.net/docs/howto/chroot_10.2/
you have to set aside ~ 4GB for a disk image containing the chroot though



[ Reply to This | # ]