From: David Eduardo Gomez Noguera <davidgn@servidor.unam.mx>
To: linux-c-programming@vger.kernel.org
Subject: PAM programming with gtk.
Date: Wed, 16 Jul 2003 16:10:06 -0500 [thread overview]
Message-ID: <3F15BF2E.7000107@servidor.unam.mx> (raw)
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?
next reply other threads:[~2003-07-16 21:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-16 21:10 David Eduardo Gomez Noguera [this message]
2003-07-17 1:49 ` PAM programming with gtk Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F15BF2E.7000107@servidor.unam.mx \
--to=davidgn@servidor.unam.mx \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).