<?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>Dominic.Xu&#039;s 博客 &#187; 安全</title>
	<atom:link href="http://xuplus.com/article/tag/%e5%ae%89%e5%85%a8/feed" rel="self" type="application/rss+xml" />
	<link>http://xuplus.com</link>
	<description>Web 2.0 生活</description>
	<lastBuildDate>Wed, 24 Aug 2011 05:26:12 +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>新装Ubuntu Server版用户安全优化</title>
		<link>http://xuplus.com/article/2008/01/a83.html</link>
		<comments>http://xuplus.com/article/2008/01/a83.html#comments</comments>
		<pubDate>Tue, 29 Jan 2008 12:34:16 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[网站管理]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://xuplus.com/article/2008/01/a83.html</guid>
		<description><![CDATA[使用Ubuntu Server版安装LAMP server之后，Ubuntu给系统添加了一些不必要的用户，多余的用户在会给黑客留下获取shell的可能性，关闭不必要的用户shell使用权限在一定程度上可以加固Ubuntu服务的安全性。 安装完成后默认/etc/passwd文件内容如下： root:x:0:0:root:/root:/bin/bashdaemon:x:1:1:daemon:/usr/sbin:/bin/shbin:x:2:2:bin:/bin:/bin/shsys:x:3:3:sys:/dev:/bin/shsync:x:4:65534:sync:/bin:/bin/syncgames:x:5:60:games:/usr/games:/bin/shman:x:6:12:man:/var/cache/man:/bin/shlp:x:7:7:lp:/var/spool/lpd:/bin/shmail:x:8:8:mail:/var/mail:/bin/shnews:x:9:9:news:/var/spool/news:/bin/shuucp:x:10:10:uucp:/var/spool/uucp:/bin/shproxy:x:13:13:proxy:/bin:/bin/shwww-data:x:33:33:www-data:/var/www:/bin/shbackup:x:34:34:backup:/var/backups:/bin/shlist:x:38:38:Mailing List Manager:/var/list:/bin/shirc:x:39:39:ircd:/var/run/ircd:/bin/shnobody:x:65534:65534:nobody:/nonexistent:/bin/shsyslog:x:101:102::/home/syslog:/bin/falseklog:x:102:103::/home/klog:/bin/falsemysql:x:103:104:MySQL Server,,,:/var/lib/mysql:/bin/falseadmin:x:1000:1000:Administrator,,,:/home/admin:/bin/bash 具体内容根据选择安装的服务不同而不同。Ubuntu默认创建了20多个帐号，大部分人并不知道这些帐号的具体用途，其中有几个帐号对于一个web服务器来说一般是不必要，可以通过更改shell的方式禁用这些帐号的登录（/bin/false）: root:x:0:0:root:/root:/bin/bashdaemon:x:1:1:daemon:/usr/sbin:/bin/shbin:x:2:2:bin:/bin:/bin/shsys:x:3:3:sys:/dev:/bin/shsync:x:4:65534:sync:/bin:/bin/syncgames:x:5:60:games:/usr/games:/bin/falseman:x:6:12:man:/var/cache/man:/bin/shlp:x:7:7:lp:/var/spool/lpd:/bin/falsemail:x:8:8:mail:/var/mail:/bin/falsenews:x:9:9:news:/var/spool/news:/bin/falseuucp:x:10:10:uucp:/var/spool/uucp:/bin/falseproxy:x:13:13:proxy:/bin:/bin/shwww-data:x:33:33:www-data:/var/www:/bin/shbackup:x:34:34:backup:/var/backups:/bin/shlist:x:38:38:Mailing List Manager:/var/list:/bin/falseirc:x:39:39:ircd:/var/run/ircd:/bin/falsenobody:x:65534:65534:nobody:/nonexistent:/bin/falsesyslog:x:101:102::/home/syslog:/bin/falseklog:x:102:103::/home/klog:/bin/falsemysql:x:103:104:MySQL Server,,,:/var/lib/mysql:/bin/falseadmin:x:1000:1000:Administrator,,,:/home/admin:/bin/bash 当然，如果相关服务是需要用到的服务，就不要更改shell了。 标签： ubuntu, 安全]]></description>
			<content:encoded><![CDATA[<p>使用Ubuntu Server版安装LAMP server之后，Ubuntu给系统添加了一些不必要的用户，多余的用户在会给黑客留下获取shell的可能性，关闭不必要的用户shell使用权限在一定程度上可以加固Ubuntu服务的安全性。</p>
<p>安装完成后默认/etc/passwd文件内容如下：</p>
<blockquote><p>root:x:0:0:root:/root:/bin/bash<br />daemon:x:1:1:daemon:/usr/sbin:/bin/sh<br />bin:x:2:2:bin:/bin:/bin/sh<br />sys:x:3:3:sys:/dev:/bin/sh<br />sync:x:4:65534:sync:/bin:/bin/sync<br />games:x:5:60:games:/usr/games:/bin/sh<br />man:x:6:12:man:/var/cache/man:/bin/sh<br />lp:x:7:7:lp:/var/spool/lpd:/bin/sh<br />mail:x:8:8:mail:/var/mail:/bin/sh<br />news:x:9:9:news:/var/spool/news:/bin/sh<br />uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh<br />proxy:x:13:13:proxy:/bin:/bin/sh<br />www-data:x:33:33:www-data:/var/www:/bin/sh<br />backup:x:34:34:backup:/var/backups:/bin/sh<br />list:x:38:38:Mailing List Manager:/var/list:/bin/sh<br />irc:x:39:39:ircd:/var/run/ircd:/bin/sh<br />nobody:x:65534:65534:nobody:/nonexistent:/bin/sh<br />syslog:x:101:102::/home/syslog:/bin/false<br />klog:x:102:103::/home/klog:/bin/false<br />mysql:x:103:104:MySQL Server,,,:/var/lib/mysql:/bin/false<br />admin:x:1000:1000:Administrator,,,:/home/admin:/bin/bash</p>
</blockquote>
<p>具体内容根据选择安装的服务不同而不同。Ubuntu默认创建了20多个帐号，大部分人并不知道这些帐号的具体用途，其中有几个帐号对于一个web服务器来说一般是不必要，可以通过更改shell的方式禁用这些帐号的登录（/bin/false）:</p>
<blockquote></blockquote>
<blockquote><p>root:x:0:0:root:/root:/bin/bash<br />daemon:x:1:1:daemon:/usr/sbin:/bin/sh<br />bin:x:2:2:bin:/bin:/bin/sh<br />sys:x:3:3:sys:/dev:/bin/sh<br />sync:x:4:65534:sync:/bin:/bin/sync<br /><strong>games:x:5:60:games:/usr/games:/bin/false<br /></strong>man:x:6:12:man:/var/cache/man:/bin/sh<br /><strong>lp:x:7:7:lp:/var/spool/lpd:/bin/false<br />mail:x:8:8:mail:/var/mail:/bin/false<br />news:x:9:9:news:/var/spool/news:/bin/false<br />uucp:x:10:10:uucp:/var/spool/uucp:/bin/false<br /></strong>proxy:x:13:13:proxy:/bin:/bin/sh<br />www-data:x:33:33:www-data:/var/www:/bin/sh<br />backup:x:34:34:backup:/var/backups:/bin/sh<br /><strong>list:x:38:38:Mailing List Manager:/var/list:/bin/false</strong><br />i<strong>rc:x:39:39:ircd:/var/run/ircd:/bin/false<br />nobody:x:65534:65534:nobody:/nonexistent:/bin/false</strong><br />syslog:x:101:102::/home/syslog:/bin/false<br />klog:x:102:103::/home/klog:/bin/false<br />mysql:x:103:104:MySQL Server,,,:/var/lib/mysql:/bin/false<br />admin:x:1000:1000:Administrator,,,:/home/admin:/bin/bash</p>
</blockquote>
<p>当然，如果相关服务是需要用到的服务，就不要更改shell了。</p>

	标签： <a href="http://xuplus.com/article/tag/ubuntu" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://xuplus.com/article/tag/%e5%ae%89%e5%85%a8" title="安全" rel="tag">安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2008/01/a83.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web应用安全关注点</title>
		<link>http://xuplus.com/article/2008/01/a82.html</link>
		<comments>http://xuplus.com/article/2008/01/a82.html#comments</comments>
		<pubDate>Tue, 29 Jan 2008 12:33:50 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[网站管理]]></category>
		<category><![CDATA[Web应用]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://xuplus.com/article/2008/01/a82.html</guid>
		<description><![CDATA[当我们将一台服务器部署到互联网时，就难免被攻击，这些攻击包括针对服务器本身的攻击、针对Web服务的攻击、针对Web应用的攻击。而一般Web应用是最薄弱的环节，所以当一个访问者取得Web应用的认证之后，我们还需要跟踪其操作及状态，最好记录所存在安全问题的活动。一般Web应用中安全关注点可以包括以下内容： Session的初始化和创建 登录成功和失败 退出 使用无效密码尝试登录 创建、读取、修改、删除用户帐号 更改配置 启动和关闭服务器 异常系统事件 尝试执行未授权功能 更改密码 授权操作 处理事务 使用GET方法代替POST方法 一般要分析被攻击情况，我们需要知道记录上述活动有关的一些数据： 谁执行了这个操作 操作请求从什么地方发起 什么地方可能发生问题 引用页是什么 事件发生的日期和时间 标签： Web应用, 安全]]></description>
			<content:encoded><![CDATA[<p>当我们将一台服务器部署到互联网时，就难免被攻击，这些攻击包括针对服务器本身的攻击、针对Web服务的攻击、针对Web应用的攻击。而一般Web应用是最薄弱的环节，所以当一个访问者取得Web应用的认证之后，我们还需要跟踪其操作及状态，最好记录所存在安全问题的活动。一般Web应用中安全关注点可以包括以下内容：</p>
<ul>
<li>Session的初始化和创建
<li>登录成功和失败
<li>退出
<li>使用无效密码尝试登录
<li>创建、读取、修改、删除用户帐号
<li>更改配置
<li>启动和关闭服务器
<li>异常系统事件
<li>尝试执行未授权功能
<li>更改密码
<li>授权操作
<li>处理事务
<li>使用GET方法代替POST方法</li>
</ul>
<p>一般要分析被攻击情况，我们需要知道记录上述活动有关的一些数据：</p>
<ul>
<li>谁执行了这个操作
<li>操作请求从什么地方发起
<li>什么地方可能发生问题
<li>引用页是什么
<li>事件发生的日期和时间</li>
</ul>

	标签： <a href="http://xuplus.com/article/tag/web%e5%ba%94%e7%94%a8" title="Web应用" rel="tag">Web应用</a>, <a href="http://xuplus.com/article/tag/%e5%ae%89%e5%85%a8" title="安全" rel="tag">安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2008/01/a82.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

