﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gavin&#039;s Blog &#187; Linux操作</title>
	<atom:link href="http://laigw.name/tag/linux%e6%93%8d%e4%bd%9c/feed" rel="self" type="application/rss+xml" />
	<link>http://laigw.name</link>
	<description>Keep it simple, stupid. Simplicity is beauty.</description>
	<lastBuildDate>Sun, 29 Jan 2012 07:14:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux管理、使用点滴</title>
		<link>http://laigw.name/post/79.html</link>
		<comments>http://laigw.name/post/79.html#comments</comments>
		<pubDate>Sat, 15 Nov 2008 07:56:55 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[Linux操作]]></category>

		<guid isPermaLink="false">http://www.laigw.name/?p=79</guid>
		<description><![CDATA[1、添加用户并决定是否将之加入root用户组
   在一般情况下，一般用户通过执行“su -”命令、输入正确的root密码，可以登录为root用户来对系统进行管理员级别的配置。但是，为了更进一步加强系统的安全性，有必要建立一个管理员的 组，只允许这个组的用户来执行“su -”命令登录为root用户，而让其他组的用户即使执行“su -”、输入了正确的root密码，也无法登录为root用户。在UNIX下，这个组的名称通常为“wheel”。

[root@sample ~]# useradd test 　         ← 新增用户test
[root@sample ~]# usermod -G wheel test 　← 将一般用户 test 加在管理员组wheel组中
[root@sample ~]# vi /etc/pam.d/su 　     ← 打开这个配置文件
#auth required /lib/security/$ISA/pam_wheel.so use_uid 　     ← 找到此行，去掉行首的“#”
auth required /lib/security/$ISA/pam_wheel.so use_uid　  [...]]]></description>
		<wfw:commentRss>http://laigw.name/post/79.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

