[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dchroot script (was Re: running openoffice from chroot)



Alexandru Cabuz wrote:

The suggestion with the openoffice \"%u\" worked. But if you say there is a cleaner solution...

Yes, but a better thing is to fix dchroot's / su's stupidity with a
script (make this do_chroot):
I don't understand. What should I do with this script?
From the FAQ:

   You can make things slightly simpler even than this. Write a small
   shell script like the following, and place it in your PATH: eg.
   /usr/local/bin/do_dchroot

[Use the new script from the mailing list]
   Make it executable:

chmod 755 /usr/local/bin/do_dchroot
   Now create a symlink to this script from each command you want to
   run inside the chroot to this shell script:

cd /usr/local/bin
ln -s do_dchroot openoffice
ln -s do_dchroot oowriter
ln -s do_dchroot oocalc
   Now you can execute openoffice by simply typing openoffice or oowriter.

-Peter



Reply to: