On 2 Mar 2002, Molotov wrote:

> Hello
>
> I think my question is some kind of basic, anyway I'm needing some help.
> I use a little script which inits my dxr3 card (NB: Hollywood+) and make
> it available for MPlayer. Two things:
> 1/ the script calls insmod, so it has to be executed by root
> 2/ in order to work properly, it must be run after an X session is
> started (I think this is a sound-related problem). So calling it in
> /etc/rc.local doesn't work.
>
> I want my girl-friend to be able to log in and play dvds, but I'd prefer
> not to give her the root password and ask her to type command lines.
>
> Tried to give the script SUID flag, owned by root: it is still executed
> with the end-user privilege.
>
First, you can't make a script SUID. As you found out, it won't work.

If you need to make it run after X initializes, consider putting it as
an rc command in /etc/rc.d/init.d. Then either manually create the links
to the rc5 runlevel or make the appropriate chkconfig entries in the
script.

What does your script do, BTW? It's possible you may also be able to add
it to the modules.conf file and skip the scripts altogether.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to