Re: Mac-on-Linux must be started by root?


Subject: Re: Mac-on-Linux must be started by root?
space19@earthlink.net
Date: Thu Feb 24 2000 - 04:00:45 MST


On Sun, Feb 13, 2000 at 12:05:39PM -0500, Kyle Wheeler wrote:
> > MOL 0.9.40-1, LinuxPPC kernel 2.2.12 on an
> > Apple 1999 PowerBook G3 ("bronze") with 128 MB RAM
> >
> >startmol seems to be happy only when it's run by root. I only vaguely
> >remember how to set the sticky bit; can I do something to startmol so
> >that I may run it as a regular user?
>
> Setting the SUID bit is easy. First, you have to make sure that the
> owner of the startmol file is root, by doing "chown root
> /path/to/startmol". Then set the other bit with "chmod u+s
> /path/to/startmol". Now if this works, tell me - I'd love to not have
> to be root to start up mol the first time. (note: after you run it
> once as root, (actually, once it patches the kernel as root - it
> doesn't even have to completely start up) you can run it again as
> your regular user)
>
I dont know if this is a properly secure way do do it but, I just set up
sudo so I can initially start mol without su'ing. All I had to do is put
this in /etc/sudoers:
my_username ALL = NOPASSWD: /usr/bin/startmol

It's kind of nice because if mol dies on me I can ^C^C it without a
hassle.:-)

sa



This archive was generated by hypermail 2a24 : Wed Mar 01 2000 - 00:06:20 MST