-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  .- Knowledge Base  . 

pam authentication example

   0.0.0  

Qt Security

Score 53%
waitmanwaitman
puf - photographer productivity too
Home
-
Waitman Gobble 4

puf - photographer productivity too
United States of America, San Jose California
Last visit Jul 17 2012
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--
pam authentication example
zoom


pam authentication example
zoom


pam authentication example
zoom


Version Control:  Link
Minimum required   Qt 4.x
Downloads:  93
Submitted:  Jul 1 2012
Updated:  Jul 2 2012

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








Changelog:

updated download link, added homepage link




LicenseBSD
FreeBSD(qt pam example on github)
Donate
Send to a friend
Subscribe
Other  Apps  from waitman
Report inappropriate content



Add commentBack






-
Cool Sites
QtitanDataGrid Advanced Grid for Qt

 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About Qt-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2006-2014 Qt-Apps.org Team  
All rights reserved. Qt-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
Qt is a trademarks of Nokia