Am Dienstag, 26. August 2003 22:19 schrieb Eddie:
I am able to use an icon with "chvt 2" set to run as root. However, it brings up a window so I still need to type in the root password. There is a box to check which say "keep password" but it still prompts for a password, so I guess it doesn't store the password (which I suppose it a good thing anyway).
This checkbox only saves the password until the end of the KDE session or the timeout you specified in the control center is reached, which one comes first. So it's not usable for your idea. You can set the chvt program "setuid root". You have to become root at a shell and type: chmod +s /bin/chvt Now if a user starts this program, the program ist automagically run with root privileges. But be aware of the point, that EVERY program running setuid root can be a serious security flaw! Other local users could possibly gain root privileges with the use of setuid root programs. So if someone breaks into your box through a unprivileged service (http, ssh, ftp, etc.), he can become root with the help of your modified chvt. You have been warned. You can try it and you can delete the setuid bit whenever you want with chmod -s /bin/chvt and all will be okay again. Daniel
Thanks again for the replies. It was question borne out of curiosity more than need or desperation.
You're welcome. Greets, Daniel