<?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>Just My Life &#187; recovery</title>
	<atom:link href="http://imrgill.com/tag/recovery/feed/" rel="self" type="application/rss+xml" />
	<link>http://imrgill.com</link>
	<description>I&#039;m mrGilL, I&#039;m Newbie Admin</description>
	<lastBuildDate>Thu, 02 Sep 2010 08:25:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>แก้ปัญหาใช้คำสั่ง sudo ไม่ได้บน ubuntu</title>
		<link>http://imrgill.com/2009/11/10/how-to-troubleshooting-when-cant-use-sudo-command-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/11/10/how-to-troubleshooting-when-cant-use-sudo-command-on-ubuntu.html#comments</comments>
		<pubDate>Tue, 10 Nov 2009 15:58:37 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[trobleshooting]]></category>
		<category><![CDATA[usermod]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=343</guid>
		<description><![CDATA[จะทำอย่างไรเมื่อคุณเผลอไปเปลี่ยน group ของ user ปัจจุบันของคุณ ตัวอย่างผมเผลอไปสั่ง root@mrgill-laptop:~# usermod -G vboxusers mrgill นั้นก็มีความหมายเหมือน usermod -g vboxusers mrgill เลยครับเพียง แค่ผมลืมใส่ -a เข้าไป ทำให้เกิดปัญหาเลย ปัญหาคือมันทำให้ผมหลุดออกจาก group ที่เป็น admin ทำให้ผมสั่ง sudo ไม่ได้ mrgill@mrgill-laptop:~$ sudo -s [sudo] password for mrgill: mrgill is not in the sudoers file. This incident will be reported. mrgill@mrgill-laptop:~$ วิธีแก้ก็ต้องเข้าไปใน recovery mode แล้วเข้าไปแก้ในไฟล์ /etc/group ครับ หรือจะใช้คำสั่งด้านล้างก็ได้ [...]]]></description>
			<content:encoded><![CDATA[<p>จะทำอย่างไรเมื่อคุณเผลอไปเปลี่ยน group ของ user ปัจจุบันของคุณ ตัวอย่างผมเผลอไปสั่ง</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# usermod -G vboxusers mrgill</div>
</pre>
<p>นั้นก็มีความหมายเหมือน usermod -g vboxusers mrgill เลยครับเพียง แค่ผมลืมใส่ -a เข้าไป ทำให้เกิดปัญหาเลย ปัญหาคือมันทำให้ผมหลุดออกจาก group ที่เป็น admin ทำให้ผมสั่ง sudo ไม่ได้ </p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ sudo -s
[sudo] password for mrgill:
mrgill is not in the sudoers file.  This incident will be reported.
mrgill@mrgill-laptop:~$</div>
</pre>
<p>วิธีแก้ก็ต้องเข้าไปใน recovery mode แล้วเข้าไปแก้ในไฟล์ /etc/group ครับ หรือจะใช้คำสั่งด้านล้างก็ได้</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# usermod -G adm,admin -a mrgill</div>
</pre>
<p>ขั้นต้นแค่ add user ของคุณให้อยู่ใน group adm กับ admin ก็พอครับ แล้วค่อยมา add group อื่นๆ ตามในหน้า gnome ก็ได้<br />
ผลที่ได้คือ</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ sudo -s
[sudo] password for mrgill:
root@mrgill-laptop:~#</div>
</pre>
<p>แล้วก็มา add group อื่นๆ ตามเข้าไป</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# usermod -G adm,admin,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lpadmin -a mrgill</div>
</pre>
<p>หวังว่าคงมีประโยชน์กับผู้อ่าน</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/10/how-to-troubleshooting-when-cant-use-sudo-command-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>จะเข้า Recovery Mode บน Ubuntu 9.10 Karmic Koala ยังไง</title>
		<link>http://imrgill.com/2009/11/09/how-to-ubuntu-910-boot-as-recovery-mode.html</link>
		<comments>http://imrgill.com/2009/11/09/how-to-ubuntu-910-boot-as-recovery-mode.html#comments</comments>
		<pubDate>Mon, 09 Nov 2009 00:13:00 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[grub2]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[rescue]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=323</guid>
		<description><![CDATA[สวัสดีตอนเช้าครับ ฮาๆ ยังไม่ได้นอนเลย เมื่อคืนนั่งลง Ubuntu Server ให้เพื่อนทั้งคืนจนถึงเช้า นั่งทำให้ Ubuntu Server หน้าตาเหมือน Ubuntu Desktop วิธีการก็ง่ายๆ ครับ $ sudo apt-get install ubuntu-desktop ก็ลงไว้ให้เพื่อนมันใช้งานง่ายๆ ครับ ลงไปลงมามีปัญหาจำเป็นต้องเข้า Recovery Mode เอ๊ะแต่เจ้า 9.10 นี่มันเข้า Boot Menu ของ Grub2 ยังไงหวา ปกติมันวิ่งๆ แล้วก็เข้าหน้า login เลย กด Esc เหมือน 9.04 แล้วก็ยังเข้าไม่ได้ ก็ลอง Search ใน Google ดูก็พบคำตอบครับคือต้องกด Shift ค้างไว้ตอน Boot มันก็จะแสดงหน้าเมนูของ Grub2 มาให้เลือกนั้นเอง]]></description>
			<content:encoded><![CDATA[<p>สวัสดีตอนเช้าครับ ฮาๆ ยังไม่ได้นอนเลย เมื่อคืนนั่งลง Ubuntu Server ให้เพื่อนทั้งคืนจนถึงเช้า นั่งทำให้ Ubuntu Server หน้าตาเหมือน Ubuntu Desktop วิธีการก็ง่ายๆ ครับ</p>
<pre>
<div class="codesnip-container" >$ sudo apt-get install ubuntu-desktop</div>
</pre>
<p>ก็ลงไว้ให้เพื่อนมันใช้งานง่ายๆ ครับ ลงไปลงมามีปัญหาจำเป็นต้องเข้า Recovery Mode เอ๊ะแต่เจ้า 9.10 นี่มันเข้า Boot Menu ของ Grub2 ยังไงหวา ปกติมันวิ่งๆ แล้วก็เข้าหน้า login เลย กด Esc เหมือน 9.04 แล้วก็ยังเข้าไม่ได้ ก็ลอง Search ใน Google ดูก็พบคำตอบครับคือต้องกด <strong><em>Shift</em></strong> ค้างไว้ตอน Boot มันก็จะแสดงหน้าเมนูของ Grub2 มาให้เลือกนั้นเอง</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/09/how-to-ubuntu-910-boot-as-recovery-mode.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
