[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: A problem using pam library in C
- From: Steve Langasek <vorlon debian org>
- To: pam-list redhat com
- Subject: Re: A problem using pam library in C
- Date: Fri, 3 Aug 2007 15:40:41 -0700
On Fri, Aug 03, 2007 at 05:45:51PM -0400, Chu Qiu wrote:
> I'm studying on pam library , and I run the code given by "The Linux-PAM
> Application Developer's Guide" on redhat linux.
> "retval = pam_authenticate(pamh, 0);" is running successfully
> but the next "retval = pam_acct_mgmt(pamh, 0);" return
> "PAM_AUTHINFO_UNAVAIL"
> I don't know what problem is it? Please do me a favour.
Are you running your program as root?
> # check authorization
> auth required pam_unix.so
> account required pam_unix.so
The pam_unix module's accounting component requires being able to access
/etc/shadow to retrieve this information. In recent versions of pam_unix,
a helper binary can be used to retrieve this information on behalf of a
non-root application; but you may not have a new enough pam_unix or you may
have a configuration problem elsewhere.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
vorlon debian org http://www.debian.org/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]