Is this possible? If so, how would I be able to check the password?
Many thanks,
Claire
I don't have any experience with GUI programming for X, but my guess is
you make a GUI wrapper to su, and then show that wrapper whenever the
user isn't root.
thus producing this process tree;
[user] myfrontend
su
[root] myfrontend
If you get my idea...
basic conceptual code;
if(user!=root) {
wrap("su - -c myfrontend");
return 0;
}
frontend code here
return 0;
--
Morten Nilsen, aka Dr. P
We are the borg^]dbdbiMicrosoft.
Prepare to be assimilated^]dbiembraced and extended.
Resistance is futile^]dbdbdbiWe know you want it.
:wq
See "man consolehelper"
--
Tony Lawrence
SCO/Linux Support Tips, How-To's, Tests and more: http://pcunix.com