<?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>LinuxLane.com &#187; user</title>
	<atom:link href="http://www.linuxlane.com/tag/user/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxlane.com</link>
	<description>เรียนรู้การใช้งาน ลีนุกซ์ [ Linux ]</description>
	<lastBuildDate>Mon, 19 Jul 2010 09:04:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=6039</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>รู้จักกับ sudo</title>
		<link>http://www.linuxlane.com/sudo/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.linuxlane.com/sudo/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 16:38:57 +0000</pubDate>
		<dc:creator>Chatpong Duangbung</dc:creator>
				<category><![CDATA[บทความ]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.linuxlane.com/?p=124</guid>
		<description><![CDATA[







ถ้าเครื่องลินุกซ์เซิร์ฟเวอร์ของท่าน มีผู้ดูแลช่วยกันหลายคน คงไม่ค่อยดีแน่ ถ้าหากจะให้ทุกคนล็อกอินโดยใช้ผู้ใช้ root เนื่องจากเป็นการยากที่จะตรวจสอบว่า ใครทำอะไร แก้ไข เปลี่ยนแปลงระบบตรงไหนบ้าง sudo เป็นเครื่องมือที่จะมาช่วยเหลือตรงจุดนี้



sudo เป็นเครื่องมือที่อนุญาตให้ผู้ใช้บางคน หรือบางกลุ่ม สามารถมีสิทธิ์ในการเข้าถึงทรัพยากรบางสิ่งบางอย่าง ได้เหมือนผู้ใช้ root หรือในบางทีสามารถกำหนดให้มีสิทธิ์เท่าเทียมกับ root ก็ได้ ซึ่งขึ้นอยู่กับการปรับแต่งค่าต่างๆ ในไฟล์ /etc/sudoers
การปรับตั้งค่าต่างๆ ของ sudo
ในการปรับตั้งค่าต่างๆ ของ sudo นั้น จะทำการแก้ไขในไฟล์ /etc/sudoers โดยมีรูปแบบของการปรับแต่งค่าต่างๆ ดังนี้
ชื่อผู้ใช้/กลุ่ม ชื่อเครื่องเซิร์ฟเวอร์ = ( รันคำสั่งด้วยผู้ใช้ใด ) คำสั่ง
ตัวอย่างการใช้งาน
แบบที่ 1. กำหนดแบบระบุผู้ใช้งาน
จากก่อนหน้านี้ ( การจัดการกับบัญชีผู้ใช้ ) เราได้ทำการเพิ่มผู้ใช้งานที่ชื่อว่า chujai กับ somsak อยู่ในกลุ่มของ admin ซึ่งสามารถกำหนดให้ chujai กับ somsak ทำหน้าที่ได้เหมือน root ทุกประการ [...]]]></description>
		<wfw:commentRss>http://www.linuxlane.com/sudo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การจัดการกับบัญชีผู้ใช้ (Users)</title>
		<link>http://www.linuxlane.com/user-management/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.linuxlane.com/user-management/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 16:36:50 +0000</pubDate>
		<dc:creator>Chatpong Duangbung</dc:creator>
				<category><![CDATA[บทความ]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.linuxlane.com/?p=121</guid>
		<description><![CDATA[ระบบทุกระบบต่างออกแบบมาเพื่อสนับสนุนการทำงานของผู้ใช้ ผู้ใช้แต่ละคนก็มีบทบาทและหน้าที่ต่างกันไป ในลินุกซ์ก็เช่นเดียวกัน จะมีผู้ดูแลระบบที่ทำหน้าที่แบ่งหมวดหมู่ของการทำงาน ให้สอดคล้องกับความเป็นจริงของแต่ละคน หรือกลุ่มคน ในหัวข้อนี้เราจะได้รู้ถึงการกำหนดบทบาทและหน้าที่ของแต่ละคน






รู้จักกับซูเปอร์ยูสเซอร์

ซูเปอร์ยูสเซอร์ คือผู้ใช้งานที่มีสิทธิ์ในการเข้าถึงทรัพยากรทุกอย่าง และไฟล์ทุกไฟล์ในลินุกซ์ ผู้ใช้นี้ก็คือผู้ใช้ root นั่นเอง หรืออีกนัยหนึ่งก็คือผู้ใช้ที่มีหมายเลข user id เป็น 0 นั่นเอง ในบางโปรแกรมต้องใช้สิทธิ์ของผู้ใช้ root ในการรันโปรแกรมนั้นๆ อย่างเช่นโปรแกรมสำหรับการเพิ่มผู้ใช้
การเพิ่มผู้ใช้งานเข้าสู่ระบบ
ขั้นตอนที่ 1  : เพิ่มกลุ่มของผู้ใช้งาน
ในการเพิ่มผู้ใช้งานเข้าสู่ระบบนั้น ควรมีการวางแผนให้ดีก่อนว่า ผู้ใช้ที่จะเพิ่มเข้าไปนั้น เป็นผู้ใช้กลุ่มไหน ควรมีสิทธิ์ทำอะไรได้บ้าง หรือว่ามีหน้าที่ทำอะไร อย่างเช่น กลุ่ม webmaster มีหน้าที่ในการจัดการเว็บไซต์ , กลุ่ม admin ผู้ดูแลระบบ , กลุ่ม developer นักพัฒนาซอฟต์แวร์ ตัวอย่างการสร้างกลุ่มมีดังนี้




webmaster


admin


developer



manee
chujai
sawasdee


mana
somsak
piti



หลังจากที่ได้วางแผนเรียบร้อยแล้ว  ทำการเพิ่มกลุ่มด้วยคำสั่ง groupadd ดังนี้




# groupadd webmaster
# groupadd admin
# groupadd developer





ขั้นตอนที่ 2 [...]]]></description>
		<wfw:commentRss>http://www.linuxlane.com/user-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>


