<?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/"
	>

<channel>
	<title>Web Server</title>
	<atom:link href="http://www.webserverthai.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webserverthai.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Wed, 13 May 2009 04:25:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ขั้นตอนการทำ Secure /tmp ป้องกัน hacker</title>
		<link>http://www.webserverthai.com/linux/%e0%b8%82%e0%b8%b1%e0%b9%89%e0%b8%99%e0%b8%95%e0%b8%ad%e0%b8%99%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-secure-tmp-%e0%b8%9b%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99-hacker/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b8%82%e0%b8%b1%e0%b9%89%e0%b8%99%e0%b8%95%e0%b8%ad%e0%b8%99%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-secure-tmp-%e0%b8%9b%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99-hacker/#comments</comments>
		<pubDate>Wed, 13 May 2009 04:17:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=16</guid>
		<description><![CDATA[1. สร้าง file ขนาด 512 MB สำหรับใช้เป็น /tmp
dd if=/dev/zero of=/var/TMP bs=1024 count=524288
2. สร้างเป็น ext3
mke2fs j /var/TMP
3. Backup /tmp เดิมไว้ก่อน
mv  /tmp /tmp_backup
4. สร้าง ไดเร็กทรอรี่ /tmp
mkdir /tmp
5. ลอง Mount ดู
mount -o loop,noexec,nosuid,rw /var/TMP /tmp
6. กำหนด Permission ของ /tmp
chmod 1777 /tmp
7. Restore /tmp กลับ และลบ Backup ทิ้ง
cp -R /tmp_backup/* /tmp/
rm -rf /tmp_backup
]]></description>
			<content:encoded><![CDATA[<p>1. สร้าง file ขนาด 512 MB สำหรับใช้เป็น /tmp</p>
<p>dd if=/dev/zero of=/var/TMP bs=1024 count=524288</p>
<p>2. สร้างเป็น ext3</p>
<p>mke2fs j /var/TMP</p>
<p>3. Backup /tmp เดิมไว้ก่อน</p>
<p>mv  /tmp /tmp_backup</p>
<p>4. สร้าง ไดเร็กทรอรี่ /tmp</p>
<p>mkdir /tmp</p>
<p>5. ลอง Mount ดู</p>
<p>mount -o loop,noexec,nosuid,rw /var/TMP /tmp</p>
<p>6. กำหนด Permission ของ /tmp</p>
<p>chmod 1777 /tmp</p>
<p>7. Restore /tmp กลับ และลบ Backup ทิ้ง</p>
<p>cp -R /tmp_backup/* /tmp/<br />
rm -rf /tmp_backup</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b8%82%e0%b8%b1%e0%b9%89%e0%b8%99%e0%b8%95%e0%b8%ad%e0%b8%99%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-secure-tmp-%e0%b8%9b%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99-hacker/feed/</wfw:commentRss>
		</item>
		<item>
		<title>การ Format Harddisk ใหม่ใน Linux</title>
		<link>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3-format-harddisk-%e0%b9%83%e0%b8%ab%e0%b8%a1%e0%b9%88%e0%b9%83%e0%b8%99-linux/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3-format-harddisk-%e0%b9%83%e0%b8%ab%e0%b8%a1%e0%b9%88%e0%b9%83%e0%b8%99-linux/#comments</comments>
		<pubDate>Thu, 07 May 2009 01:50:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://webserverthai.com/?p=8</guid>
		<description><![CDATA[การ Format Harddisk ใหม่ใน Linux
[root@server1 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won&#8217;t be recoverable.
The number of cylinders for this disk is set to 121601.
There [...]]]></description>
			<content:encoded><![CDATA[<p>การ Format Harddisk ใหม่ใน Linux</p>
<p>[root@server1 ~]# fdisk /dev/sdb<br />
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel<br />
Building a new DOS disklabel. Changes will remain in memory only,<br />
until you decide to write them. After that, of course, the previous<br />
content won&#8217;t be recoverable.<br />
The number of cylinders for this disk is set to 121601.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
   (e.g., DOS FDISK, OS/2 FDISK)<br />
Warning: invalid flag 0&#215;0000 of partition table 4 will be corrected by w(rite)</p>
<p>Command (m for help): p</p>
<p>Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes<br />
255 heads, 63 sectors/track, 121601 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System</p>
<p>Command (m for help): n<br />
Command action<br />
   e   extended<br />
   p   primary partition (1-4)<br />
p<br />
Partition number (1-4): 1<br />
First cylinder (1-121601, default 1):<br />
Using default value 1<br />
Last cylinder or +size or +sizeM or +sizeK (1-121601, default 121601):<br />
Using default value 121601</p>
<p>Command (m for help): p</p>
<p>Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes<br />
255 heads, 63 sectors/track, 121601 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdb1               1      121601   976760001   83  Linux</p>
<p>Command (m for help): w<br />
The partition table has been altered!</p>
<p>Calling ioctl() to re-read partition table.<br />
Syncing disks.</p>
<p>[root@server1 ~]# mkfs -t ext3 /dev/sdb1</p>
<p>mke2fs 1.39 (29-May-2006)<br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
122109952 inodes, 244190000 blocks<br />
12209500 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=0<br />
7453 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
16384 inodes per group<br />
Superblock backups stored on blocks:<br />
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br />
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,<br />
        102400000, 214990848</p>
<p>Writing inode tables: done                           <br />
Creating journal (32768 blocks): done<br />
Writing superblocks and filesystem accounting information: done</p>
<p>This filesystem will be automatically checked every 36 mounts or<br />
180 days, whichever comes first.  Use tune2fs -c or -i to override.</p>
<p> </p>
<p>แก้ไข /etc/fstab เพิ่ม</p>
<p>/dev/sdb1           /backup                 ext3    defaults        1 2</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3-format-harddisk-%e0%b9%83%e0%b8%ab%e0%b8%a1%e0%b9%88%e0%b9%83%e0%b8%99-linux/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
