[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Q - what acct does PAM use?

Try the command /usr/bin/id .

The module runs with the identity of the application that loads it.

Incidentally, system() is actually a dangerous function to use in
security sensitive programs, you should look into using fork() and the
exec() family of calls.



Leo Wierzbowski wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hello,
> When PAM is doing authentication, which acct/permissions does the PAM
> auth module use/have?
> Sincerely,
> Leo Wierzbowski
> who is still trying to system("/usr/sbin/useradd test") in his PAM
> auth module
> http://grove.ufl.edu/~leo/
> Martin Luther King Jr. Day Quotes: http://grove.ufl.edu/~leo/mlk.html
> "The University of Florida does not endorse or
>  disendorse the content of this document.
>  Everything is the author's private opinion."
> -- 
> To unsubscribe: mail -s unsubscribe pam-list-request@redhat.com < /dev/null

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []