pam authentication example

Security

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.7

Available as/for:
Description:
Sample Qt application
use pam to authenticate root.

(c) 2012 Waitman Gobble
See License in source.

this allows you setuid your Qt app to allow a non-root user to run it as root,
but require the user to authenticate as root to run. In order to authenticate
root using pam, the app must be setuid root

(for example see "su")

$ ls -l /usr/bin/su
-r-sr-xr-x 1 root wheel 17304 Jun 10 17:10 /usr/bin/su


1) chmod 4755 app_name
2) chown root:wheel app_name

This example has two buttons, 'Authenticate', and 'Touch Test'. If the user
authenticates as root, the 'Touch Test' button will touch a file in /root.

Built on FreeBSD 10.0-CURRENT but should work on other versions of FreeBSD,
and may or may not work on other systems which use pam.

Ref:

/usr/include/security/pam.h
http://www.freebsd.org/doc/handbook/permissions.html
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pam/pam-sample-conv.html
Last changelog:

updated download link, added homepage link


Ratings & Comments

0 Comments

Be the first to comment
Pling
0 Affiliates
Details
license
version 0.0.0
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Security:

KPSAD
joeinnes
last update date: 18 years ago

Score 5.0

userdatadefence
ch-40
last update date: 13 years ago

Score 5.0

kpwg
wusel1007
last update date: 12 years ago

Score 5.0

MyPasswordSafe
sneakin
last update date: 20 years ago

Score 5.0

NewPKI
newpki
last update date: 21 years ago

Score 5.0

knetfilter
genoni
last update date: 20 years ago

Score 5.0



System Tags