about authenticating a user through c programming
Gordon Messmer
yinyang at eburg.com
Wed Jan 18 02:50:53 UTC 2012
On 01/17/2012 07:56 AM, shreyas m wrote:
> I am developing a c based application which needs authenticating the
> user as a root- user. I'm wiling to provide the responsibility of
> password verification to fedora os, as in the case of built in
> applications such as NFS,HTTP. I would prefer a similar interface for
> authentication as provided by NFS while opening it. Is there
> any possibility to do it? By giving a link to a system related file or
> creating a file in some location so that when i open my application
> authentication of the root user should be done in a similar way as that
> of NFS or HTTP.
Your question is very unclear, especially since neither NFS nor HTTP
authenticate the root user by default.
If you'd like to prompt for a password for authentication, then you
should be using PAM to process it.
https://www.google.com/search?q=linux+pam+tutorial
More information about the users
mailing list