Ask root?

Started by
4 comments, last by stefu 21 years, 6 months ago
Hi? How can I make so that when I run i.e. GDMconfig from gnome menu it asks password and runs GDMconfig as super user? Now when I open gdmconfig if says I must be the superuser. Thanks ----------- RacingTreme - for fun multiplayer racing: http://users.utu.fi/stkibr
Advertisement
Open a console
su -
type the root password
start up GDMconfig from the console
do your stuff
exit
close the console.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
quote:Original post by Fruny
Open a console
su -
type the root password
start up GDMconfig from the console
do your stuff
exit
close the console.

Yes yes yes yes, that''s how I have to do it currently
But that didn''t answer the question I know there''s way to do it but can find.



-----------
RacingTreme - for fun multiplayer racing:
http://users.utu.fi/stkibr
Download and install 'xsu'. Then create a shortcut of some kind that executes this: xsu -u root -c 'gdmconfig'



[edited by - Null and Void on October 3, 2002 5:40:56 PM]
quote:Original post by stefu
Yes yes yes yes, that''s how I have to do it currently
But that didn''t answer the question I know there''s way to do it but can find.

-----------
RacingTreme - for fun multiplayer racing:
<a href="http://users.utu.fi/stkibr">http://users.utu.fi/stkibr</a>


The way to do it would be using setuid, but there are issues with that, take a look at:

http://www.gtk.org/setuid.html


--
Aaron

quote:Original post by Null and Void
Download and install ''xsu''. Then create a shortcut of some kind that executes this: xsu -u root -c ''gdmconfig''


Exactly, this is what I was looking for!!
Thanks

This topic is closed to new replies.

Advertisement