<?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>ubuntu,debian,redhat -linuxany.com &#187; su</title>
	<atom:link href="http://www.linuxany.com/archives/tag/su/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>linux下如何限制su &#8211; 权限</title>
		<link>http://www.linuxany.com/archives/807.html</link>
		<comments>http://www.linuxany.com/archives/807.html#comments</comments>
		<pubDate>Mon, 17 Aug 2009 17:31:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[su]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=807</guid>
		<description><![CDATA[因为root用户对系统具有全权的操作权限，为了避免一些失误的操作，建议在一般情况下，以一般用户登录系统，必要的时候需要root操作权限时，再通过“su -”命令来登录为root用户进行操作。       在 一般情况下，一般用户通过执行“su -”命令、输入正确的root密码，可以登录为root用户来对系统进行管理员级别的配置。但是，为了更进一步加强系统的安全性，有必要建立一个管理员的组，只允许这个组的用户来执行“su -”命令登录为root用户，而让其他组的用户即使执行“su -”、输入了正确的root密码，也无法登录为root用户。在UNIX下，这个组的名称通常为“wheel”。 首先我们创建两个普通的用户tom john [root@www ~]# useradd tom [root@www ~]# passwd tom 输入你的密码 [root@www ~]# useradd john [root@www ~]# passwd john 输入你的密码 引用 [root@www ~]# usermod -g wheel tom 将tom用户加入到wheel组中 [root@www ~]# vi /etc/pam.d/su 　← 打开这个配置文件找到这句 话在第六行将其前面的#注释掉 # auth required pam_wheel.so use_uid 执行： [root@www ~]# echo “SU_WHEEL_ONLY yes” &#62;&#62; /etc/login.defs [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/807.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux上su的安全</title>
		<link>http://www.linuxany.com/archives/137.html</link>
		<comments>http://www.linuxany.com/archives/137.html#comments</comments>
		<pubDate>Mon, 14 Jan 2008 04:07:47 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[1.Application]]></category>
		<category><![CDATA[su]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/137</guid>
		<description><![CDATA[首先我们看su在man帮助页中的解释su &#8211; run a shell with substitute user and group IDs, 也就是说通过su我们不用提供用户和组名就可以启动一个shell程序. su是一个二进制的可执行文件, 命令所在的文件路径是/bin/su, 下面是通过命令行查询su文件的类型及所在路径: 例一: islab$ which su /bin/su 例二: islab$ file /bin/su /bin/su: setuid ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, stripped 例三: islab$ll /bin/su -rwsr-xr-x 1 root root 24060 Jan 10 2007 /bin/su 例三和例二中我们可以看到su是一个setuid程序(setuid位可以使用chmod u+s进行设置, 如ls显示su文件所有者属性起用了setuid位), [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/137.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

