Re: [gtkmm] Linux User Authentication



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.

Cheers,
Paulo

gamehack wrote:

Hello all,

I don't know if  here is the right place to ask for this, but I'm
doing gtkmm application and want to know if there are some docs and
tutorials about linux user authentication i.e. how to see if the user
who started my application is root and if he isn't, how to ask him for
password and so on.

Thanks in advance
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]