Re: [gtkmm] Linux User Authentication
- From: Ole Laursen <olau hardworking dk>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] Linux User Authentication
- Date: Mon, 27 Sep 2004 18:27:59 +0200
Paulo Pinto <pjmlp progtools org> writes:
> Just check the user id.
> Only root is 0 (zero)
>
> Check getuid() and geteuid()
> function calls.
>
> Right now I'm not sure how
> to change the UID on the
> fly for non-root processes.
Perhaps 'gksu' or whatever it is called these days. It will prompt the
user for the password with a nice dialog box.
Take a look at gnome-system-tools. They've solved this problem somehow.
--
Ole Laursen
http://www.cs.aau.dk/~olau/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]