LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   HowTo allow a user to call PAM APIs (https://www.linuxquestions.org/questions/linux-security-4/howto-allow-a-user-to-call-pam-apis-263322/)

EddyHahn 12-06-2004 02:58 PM

HowTo allow a user to call PAM APIs
 
Hi,
I have written a code to call PAM APIs. The code works as long as I'm logged in as root ( I can authenticae a user with username and password). I want my process to run under a different user account and I want it to be able to call PAM_Authenticate. At this point it fails if I use any other account but root.
Any idea how to grant this right to a user or an application?

Thanks,

Eddy

EddyHahn 12-07-2004 01:51 AM

I've got it! The user account must be in the shadow group, which under the process is running.

Cheers,

Eddy


All times are GMT -5. The time now is 07:05 PM.