English 中文(简体)
Linux-PAM和内核之间的关系
原标题:Relationship between Linux-PAM and the kernel

Linux-PAM和内核之间的关系是什么? Linux-PAM是内核的一部分吗?

当我使用 sudo , tty ,这种认证是否在内核空间完成?

最佳回答

PAM完全处于用户空间,它是由需要验证证书的程序所利用的一套图书馆。

例如,我的机器放映中的ld/usr/bin/sudo

    linux-vdso.so.1 =>  (0x00007fff30fff000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f5923fd4000)
    libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f5923dc7000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5923bc2000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f592382d000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f59241fd000)

使用 PAM 图书馆的二进制程序需要作为根运行(例如,图书馆代码可能需要访问/etc/shadow)。

问题回答

暂无回答




相关问题
stat() function doesnt seem to be working in test PAM module

I m trying to write a PAM module. The PAM module creates a directory on first log in. Very similar to the pam_mkhomedir. Here is the code. PAM_EXTERN int pam_sm_open_session (pam_handle_t *pamh, ...

Linux PAM module in Java

I do have a custom authentication mechanism which is written in Java. I was wondering what would be the best way to implement a Linux PAM module without rewriting the code in C? I am aware of this ...

PAM authentication problem

I am using this module to authenticate using pam: http://code.google.com/p/web2py/source/browse/gluon/contrib/pam.py I can call authenticate( username , password ) and it returns True/ False. It ...

Using pam_python in a script running with mod_python

I would like to develop a web interface to allow users of a Linux system to do certain tasks related to their account. I decided to write the backend of the site using Python and mod_python on Apache. ...

PHP pam_auth and cookies

简言之,我开发内部报告引擎。 它是完全基于网络的(利用PHP和各种AJAX技术),并且根据我们的制作解释在MySQL数据库中储存的数据。

Escalating privileges on linux programmatically

I am creating a graphical installer that should run on Linux. Installing should consist of copying files to some places in /usr. Currently the installer is written in Python. How can I escalate the ...

热门标签