Re: Must be root to patch the kernel


Subject: Re: Must be root to patch the kernel
From: Michael Feeney (mfeeney@triad.rr.com)
Date: Thu Oct 05 2000 - 16:53:39 MDT


Running mol 0.9.41 on a G3 233, I too wanted to start mol without
superuser privileges. I had unsuccessfully researched this in the
mol-list archives when first installing mol.

This time I followed Christian Jaeger's lucid instructions (below),
and variations on them, which worked, but improved mol beyond
functionality, sort of:-> mol now opened in full-screen mode (in a
separate virtual console possibly?) which I could seem to exit
without quitting mol. The X server resumed gracefully.

Reverting to the original setup allowed me to return to my 640x480
mol X window.
I am puzzled. I never altered molrc. Can anyone enlighten me?

>
>
>>Second problem : after booting my computer, I can't launch MOL without
>>being root, because it has to patch the kernel. It's only possible to
>>run MOL without being root later, after a fisrt-run of MOL as root. Is
>>there any solution avoiding this condition ? Is this a security choice ?
>
>Save the following as root to /usr/local/bin/startmol:
>
>#!/usr/bin/perl -w
>%ENV=();
>$<=$>;
>exec '/usr/bin/startmol_original'
>
>then:
>chmod 755 startmol; chmod u+s startmol; mv /usr/bin/startmol
>/usr/bin/startmol_original
>
>This should not be a security problem. (except everybody is now able to
>start mol)
>



This archive was generated by hypermail 2a24 : Thu Oct 05 2000 - 17:00:40 MDT