linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PAM programming with gtk.
@ 2003-07-16 21:10 David Eduardo Gomez Noguera
  2003-07-17  1:49 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: David Eduardo Gomez Noguera @ 2003-07-16 21:10 UTC (permalink / raw)
  To: linux-c-programming

Hello. I am having some problems writing a small app that will shutdown 
the pc, and I have a few questions, if someone of you know the answers 
please?

shutdown needs root to execute it, so how can I get to do it? I was 
thinking of a suid app that will authenticate the user via login and 
password and if all is right, then execl shutdown, but gtk wont let an 
app be suid. So how can I get root priviledges with pam? is it possible 
at all?

Then, I dont quite understand how pam works. I compiled the demo app, 
but root can authenticate to any user (using only pam_unix_auth), but 
other users can authenticate to no one but themselves.

in an nutshell, any user that knows a password (to an account, not 
necessarily theirs, that belongs to a certain group) should be able to 
reboot.

Any help?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-17  1:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-16 21:10 PAM programming with gtk David Eduardo Gomez Noguera
2003-07-17  1:49 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).