Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-09

Svga

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

James Mills

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...

Reply by email

Andreas K. Foerster
to James Mills
James Mills wrote 6 lines
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?

Make the program setuid root:
chown root <prog>
chmod u+s <prog>

Tschuess Andreas

Reply by email

Michael Van Canneyt
to James Mills: Concerning Svga, and the graph unit and anything really to do with graphics... It seems…
James Mills wrote 15 lines
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.

Reply by email

Martyn Ranyard
to James Mills: Concerning Svga, and the graph unit and anything really to do with graphics... It seems…
James Mills wrote
Concerning Svga, and the graph unit and anything really to do with graphics...

<snip>

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...

yes, svgalib requires root, and is no longer maintained, and quite often leaves machines in graphics mode if they crash.

Am I hallucinating or did somebody mention that they had bindings for SDL translated? SDL does not need root, and works well as far as I can tell and will work in a window for X. AND it's cross-platform.

-
Martyn Ranyard
Free Software Advocate

jabber -
icq - 122500800
irc - Joran on oftc
msn -
e -

Reply by email

Michael Van Canneyt
to Martyn Ranyard
Martyn Ranyard wrote 16 lines
At 10:40 AM 9/23/02 +1000, James Mills wrote: >Concerning Svga, and the graph unit and anything really to do with >graphics... <snip> >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... yes, svgalib requires root, and is no longer maintained, and quite often leaves machines in graphics mode if they crash. Am I hallucinating or did somebody mention that they had bindings for SDL translated? SDL does not need root, and works well as far as I can tell and will work in a window for X. AND it's cross-platform.

I think you can find them in the contributed units.

Michael.

Reply by email