[fpc-pascal]Svga
Michael Van Canneyt
michael.vancanneyt at wisa.be
Mon Sep 23 09:29:49 CEST 2002
On Mon, 23 Sep 2002, James Mills wrote:
> Concerning Svga, and the graph unit and anything really to do with
> graphics...
>
> It seems the only way to run such programs wether compiled with fpc or
> not, is to run them logged in as root.
>
> Is there no other way to run these programs? It's so annoying logging in
> as root. And what happens if you go to someone else's computer and have
> no root access, how do you run your program then?
>
> cheers
> James
> PS: I know root access is probably needed as the svga library accesses
> the memory that probably requires root access (I think this is correct),
> but there has to be a better way...
There isn't any. Make the program suid root:
chown root.root yourprogram
chmod 4755 yourprogram
The initialization of the svga library then restores the 'real' user ID.
Michael.
More information about the fpc-pascal
mailing list