<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Pam on Coding</title>
		<link>http://coding.dong.asia/tags/pam/</link>
		<description>Recent content in Pam on Coding</description>
		<generator>Hugo</generator>
		<language>cn</language>
		
		
		
			<copyright>京ICP备17034023号 © 2019 隨風揚</copyright>
		
		
			<lastBuildDate>Mon, 15 Jan 2018 07:45:54 +0000</lastBuildDate>
		
			<atom:link href="http://coding.dong.asia/tags/pam/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Linux-PAM模块简介</title>
				<link>http://coding.dong.asia/linux/pam/1/</link>
				<pubDate>Mon, 15 Jan 2018 07:45:54 +0000</pubDate>
				<guid>http://coding.dong.asia/linux/pam/1/</guid>
				<description>&lt;p&gt;Linux-PAM工程的目的就是分离应用软件和验证机制的开发。通过验证函数库可以实现上述目的，一个应用程序可以使用这些函数库去进行用户的认证。&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;模块pam_*.so以动态可加载目标文件(使用dloptn(3)函数打开)的形式保存在 /lib/security、 /lib64/security、/lib/x86_64-linux-gnu/security/等。&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;配置文件&#34;&gt;配置文件：&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;/etc/pam.conf&lt;/li&gt;&#xA;&lt;li&gt;/etc/pam.d/&lt;/li&gt;&#xA;&lt;li&gt;/etc/security/*（其他PAM环境的配置文件）。&#xA;&lt;img src=&#34;https://picabstract-preview-ftn.weiyun.com:8443/ftn_pic_abs_v2/de4bc608ede4692b4a6067058d21e6a5a74a6d2763bb3601a9c61d506fabd4f4f4683902d8ab5caa957d630810317167?pictype=scale&amp;amp;from=30113&amp;amp;version=3.3.3.3&amp;amp;uin=535301&amp;amp;fname=QQ%E6%88%AA%E5%9B%BE20180115140217.png&amp;amp;size=750&#34; alt=&#34;&#34;&gt;&#xA;以/etc/pam.d/sudo配置为例：&#xA;[table id=3 /]&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;验证类型&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;控制标记&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;模块路径&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;模块参数&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;session&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;required&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;pam_env.so&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;readenv=1 envfile=/etc/default/locale user_readenv=0&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://picabstract-preview-ftn.weiyun.com:8443/ftn_pic_abs_v2/e503fe2b2681e192e9c89bea52386380f9171b7eb6178c43d6bc06de92e1a82007757d80a5e2fcd6c677de77eb60643c?pictype=scale&amp;amp;from=30113&amp;amp;version=3.3.3.3&amp;amp;uin=535301&amp;amp;fname=pam%E7%AE%80%E4%BB%8B1.jpeg&amp;amp;size=750&#34; alt=&#34;&#34;&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
