Re: [gtkmm] Linux User Authentication



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]