<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5180343002973468556</id><updated>2024-09-22T20:05:45.527-07:00</updated><category term="filesystem"/><category term="Journal"/><category term="/info/Quick_Notes"/><category term="security"/><category term="iptables"/><category term="/info/RHCE_Exam_Objectives"/><category term="LVM"/><category term="YUM"/><category term="accounts"/><category term="apache"/><category term="parted"/><category term="rpm"/><category term="."/><category term="Archive and Compression"/><category term="KVM"/><category term="Lab station"/><category term="RAID"/><category term="RHCSA/RHEL Books and Sites"/><category term="bind"/><category term="grub"/><category term="kickstart"/><category term="luks"/><category term="mail servers"/><category term="nfs"/><category term="ntp"/><category term="ports"/><category term="remote access"/><category term="runlevels"/><category term="selinux"/><category term="ssh"/><category term="swap"/><category term="system messages"/><title type='text'>RHCE/RHCSA Exam Notes</title><subtitle type='html'>This is my personal notes on RHCSA/RHCE exam. Site still work in progress. For comments and suggestions email me at mctofferatgmaildotcom</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-4620082452673712037</id><published>2012-02-02T19:21:00.000-08:00</published><updated>2012-02-02T19:52:01.745-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bind"/><title type='text'>Sample BIND config</title><content type='html'>/etc/named.conf&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;options {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;listen-on port 53 { 127.0.0.1; 192.168.122.140; };&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;listen-on-v6 port 53 { ::1; };&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;directory &amp;nbsp;&amp;nbsp; &amp;nbsp;&quot;/var/named&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dump-file &amp;nbsp;&amp;nbsp; &amp;nbsp;&quot;/var/named/data/cache_dump.db&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics-file &quot;/var/named/data/named_stats.txt&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memstatistics-file &quot;/var/named/data/named_mem_stats.txt&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;allow-query&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { localhost; };&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;recursion yes;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dnssec-enable yes;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dnssec-validation yes;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;dnssec-lookaside auto;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Path to ISC DLV key */&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;bindkeys-file &quot;/etc/named.iscdlv.key&quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
logging {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; channel default_debug {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file &quot;data/named.run&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; severity dynamic;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
zone &quot;.&quot; IN {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;type hint;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;file &quot;named.ca&quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
zone &quot;penoycentral.net&quot; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;type master;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;file &quot;penoycentral.net.zone&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;br /&gt;
&lt;br /&gt;
zone &quot;122.168.192.in-addr.arpa&quot; IN {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;type master;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;file &quot;192.168.122.zone&quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
include &quot;/etc/named.rfc1912.zones&quot;;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
/var/named/penoycentral.net.zone&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;$TTL 1D&lt;br /&gt;
penoycentral.net. IN SOA centos01.penoycentral.net. root.penoycentral.net (&lt;br /&gt;
04 ; serial&lt;br /&gt;
1D ; refresh&lt;br /&gt;
1H ; retry&lt;br /&gt;
1W ; expire&lt;br /&gt;
3H ) ; minimum&lt;br /&gt;
@&amp;nbsp;&amp;nbsp; &amp;nbsp;IN NS centos01&lt;br /&gt;
centos01 IN A 192.168.122.140&lt;br /&gt;
centos02 IN A 192.168.122.8&lt;br /&gt;
rhel01 IN A 192.168.122.122&lt;br /&gt;
rhel02 IN A 192.168.122.120&lt;/blockquote&gt;
&lt;br /&gt;
/var/named/192.168.122.zone&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;$TTL 1D&lt;br /&gt;
@ IN SOA centos01.penoycentral.net. root.penoycentral.net (&lt;br /&gt;
2012020202 ; serial&lt;br /&gt;
1D ; refresh&lt;br /&gt;
1H ; retry&lt;br /&gt;
1W ; expire&lt;br /&gt;
3H ) ; minimum&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;IN NS&amp;nbsp;&amp;nbsp; &amp;nbsp;centos01.penoycentral.net.&lt;br /&gt;
140&amp;nbsp;&amp;nbsp; &amp;nbsp;IN PTR&amp;nbsp;&amp;nbsp; &amp;nbsp;centos01.penoycentral.net.&lt;br /&gt;
8&amp;nbsp;&amp;nbsp; &amp;nbsp;IN PTR&amp;nbsp;&amp;nbsp; &amp;nbsp;centos02.penoycentral.net.&lt;/blockquote&gt;
&amp;nbsp;To check zone config&lt;br /&gt;
 named-checkzone penoycentral.net penoycentral.net.zone&lt;br /&gt;
named-checkzone penoycentral.net 192.168.122.zone&lt;br /&gt;
named-checkconf /etc/named.conf</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/4620082452673712037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2012/02/sample-bind-config.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4620082452673712037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4620082452673712037'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2012/02/sample-bind-config.html' title='Sample BIND config'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-4170645811361003831</id><published>2011-08-26T03:52:00.000-07:00</published><updated>2011-08-26T04:06:56.049-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Journal"/><title type='text'>Finally passed RHCE</title><content type='html'>It has been a long day for me.. RHCSA exam in the morning and RHCE exam in the afternoon. Finally after months of self study and 4 days on the rapid track course, i nailed both exam.&lt;br /&gt;
Pretty much to say that i&#39;m so proud &amp;nbsp;on the cert. This is not the type of exam that you will just choose among the multiple choice or configure in a simulated environment. It will test your knowledge on how well you understood Redhat.&lt;br /&gt;
On future takers, i advised you to know the exam objectives inside and out. SELinux looks like intimidating at first, but as soon as you understand how it works,it will be a piece of cake for you :)&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Materials/books used&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;RHCSA/RHCE Red Hat Linux Certification Study Guide (Exams EX200 &amp;amp; EX300), 6th Edition (Certification Press) &amp;nbsp;-- Michael Jang&lt;/b&gt;&lt;br /&gt;
Highly recommend!!! Comes with a CD with pdfs and labs exams at the end of every chapter. My fav source of info for the exam.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Hands-on Guide to the Red Hat® Exams: RHCSA™ and RHCE® Cert Guide and Lab Manual (Certification Guide) -- Damian Tommasino&lt;/b&gt;&lt;br /&gt;
Lots of errors, but hey, as soon as you pointed the errors in the book, it just shows that you know your stuffs. Used to counter check configs and setup.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;RH300 RHCE Rapid Track course&lt;/b&gt;&lt;br /&gt;
Final review for the exam. It cost much but highly recommended also. It guides me and helps to fill in the gaps on what i have learned already on my home lab. Before taking the course, i advised that you first do your home work. Learn the exam objectives, build your own home lab, simulate the configs as advised on Michael and Damian&#39;s book. In this way when you attend the course, you can ask all the questions that you have on your instructor. This is fast-paced course so make full use of it.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://github.com/texastwister/OpenRHCE&quot;&gt;texastwister/&lt;em style=&quot;font-style: normal; font-weight: bold;&quot;&gt;OpenRHCE&lt;/em&gt;&amp;nbsp;- GitHub&lt;/a&gt; - This is a beast study guide. I used this as a last minute review before taking the exam. Reading the whole week while in the train :) Highly recommended also&lt;br /&gt;
&lt;br /&gt;
As &amp;nbsp;always, we signed the Non-disclosure Agreement so i will not divulge anything specific about the exam. I might update this blog,but will not be on the RHCE exam specific anymore.&lt;br /&gt;
Study!!! study!!!! study!!!!! lab!!!! lab!!!! lab!!!! simulate!!!! simulate!!!! and always follow the KISS principle..</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/4170645811361003831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/finally-passed-rhce.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4170645811361003831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4170645811361003831'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/finally-passed-rhce.html' title='Finally passed RHCE'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-9199292295506455047</id><published>2011-08-17T17:32:00.000-07:00</published><updated>2011-08-17T17:32:00.333-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ntp"/><title type='text'></title><content type='html'>&lt;br /&gt;
###NTP####&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;/etc/ntp.conf&lt;br /&gt;
server &lt;localipserver&gt;&lt;br /&gt;
&lt;/localipserver&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
to sync time to the internet time server&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;service ntpd stop&lt;br /&gt;
ntpdate 0.fedora.pool.ntp.org&lt;br /&gt;
service ntpd start&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
to check ntp&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ntpq -p&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
set iptables&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;iptables -I INPUT -m udp -p udp --dport 123 -j ACCEPT&lt;br /&gt;
iptables -I INPUT -m tcp -p tcp --dport 123 -j ACCEPT&lt;/div&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/9199292295506455047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/ntp-etcntp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/9199292295506455047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/9199292295506455047'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/ntp-etcntp.html' title=''/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-7445282404211261063</id><published>2011-08-13T09:42:00.000-07:00</published><updated>2011-08-13T09:42:43.760-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="accounts"/><title type='text'>Setting up LDAP Server for Authencation</title><content type='html'>Although LDAP server is not part of the exam, we need to learn how to setup our server as a client. You can check out L&lt;a href=&quot;http://www.salsaunited.net/blog/?p=42&quot;&gt;aurent Domb OSS Blog&lt;/a&gt;&amp;nbsp;if you want to configure LDAP authentication server in your labs.</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/7445282404211261063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/setting-up-ldap-server-for-authencation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/7445282404211261063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/7445282404211261063'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/setting-up-ldap-server-for-authencation.html' title='Setting up LDAP Server for Authencation'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-7684171477379459219</id><published>2011-08-13T04:32:00.000-07:00</published><updated>2011-08-13T04:32:37.140-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mail servers"/><title type='text'>Lab Postfix Sample config</title><content type='html'>dovecot.conf&lt;br /&gt;
[root@rhel01 dovecot]# grep -v ^# /etc/dovecot/dovecot.conf&lt;br /&gt;
!include conf.d/*.conf&lt;br /&gt;
protocols = imap pop3&lt;br /&gt;
listen = 192.168.122.122&lt;br /&gt;
dict {&lt;br /&gt;
  #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext&lt;br /&gt;
  #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/etc/postfix/main.cf&lt;br /&gt;
[root@rhel01 postfix]# grep -v ^# main.cf&lt;br /&gt;
queue_directory = /var/spool/postfix&lt;br /&gt;
command_directory = /usr/sbin&lt;br /&gt;
daemon_directory = /usr/libexec/postfix&lt;br /&gt;
data_directory = /var/lib/postfix&lt;br /&gt;
mail_owner = postfix&lt;br /&gt;
myhostname =  rhel01.penoycentral.net&lt;br /&gt;
mydomain = penoycentral.net&lt;br /&gt;
myorigin = $mydomain&lt;br /&gt;
inet_interfaces = all&lt;br /&gt;
inet_protocols = all&lt;br /&gt;
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost, mail.penoycentral.net&lt;br /&gt;
unknown_local_recipient_reject_code = 550&lt;br /&gt;
mynetworks = 192.168.1.0/24, 192.168.122.0/24, 127.0.0.1/8&lt;br /&gt;
alias_maps = hash:/etc/aliases&lt;br /&gt;
alias_database = hash:/etc/aliases&lt;br /&gt;
debug_peer_level = 2&lt;br /&gt;
debugger_command =&lt;br /&gt;
	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin&lt;br /&gt;
	 ddd $daemon_directory/$process_name $process_id &amp; sleep 5&lt;br /&gt;
sendmail_path = /usr/sbin/sendmail.postfix&lt;br /&gt;
newaliases_path = /usr/bin/newaliases.postfix&lt;br /&gt;
mailq_path = /usr/bin/mailq.postfix&lt;br /&gt;
setgid_group = postdrop&lt;br /&gt;
html_directory = no&lt;br /&gt;
manpage_directory = /usr/share/man&lt;br /&gt;
sample_directory = /usr/share/doc/postfix-2.6.6/samples&lt;br /&gt;
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DNS penoycentral.net zone config for the mailserver to work properly&lt;br /&gt;
[root@wk named]# cat /var/named/penoycentral.net.zone &lt;br /&gt;
$TTL 1D&lt;br /&gt;
@	IN SOA	penoycentral.net. root.penoycentral.net (&lt;br /&gt;
					2011091302	; serial&lt;br /&gt;
					1D	; refresh&lt;br /&gt;
					1H	; retry&lt;br /&gt;
					1W	; expire&lt;br /&gt;
					3H )	; minimum&lt;br /&gt;
	IN NS	wk.penoycentral.net.&lt;br /&gt;
wk	IN A	192.168.1.70&lt;br /&gt;
@	IN MX 10 mail.penoycentral.net.&lt;br /&gt;
rhel01	IN A	192.168.122.122&lt;br /&gt;
rhel02	IN A	192.168.122.120&lt;br /&gt;
mail	IN CNAME	rhel01&lt;br /&gt;
&lt;br /&gt;
To check if MX records setup properly in the domain&lt;br /&gt;
[root@rhel02 /]# nslookup&lt;br /&gt;
&gt; set type=mx&lt;br /&gt;
&gt; penoycentral.net&lt;br /&gt;
Server:		192.168.1.70&lt;br /&gt;
Address:	192.168.1.70#53&lt;br /&gt;
&lt;br /&gt;
penoycentral.net	mail exchanger = 10 mail.penoycentral.net.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#### postfix usefull commands #####&lt;br /&gt;
&lt;br /&gt;
delete mailq&lt;br /&gt;
#postsuper -d &lt;mailid&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/7684171477379459219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/lab-postfix-sample-config.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/7684171477379459219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/7684171477379459219'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/lab-postfix-sample-config.html' title='Lab Postfix Sample config'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-2646838567773642569</id><published>2011-08-13T04:18:00.000-07:00</published><updated>2011-08-13T04:18:07.748-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rpm"/><title type='text'>Creating Simple RPM Part 2</title><content type='html'>&lt;br /&gt;
Needed packages&lt;br /&gt;
1. rpm-build&lt;br /&gt;
2. rpmdevtools&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create RPM Howto&lt;br /&gt;
* run rpmdev-setuptree creates rpmbuild directories&lt;br /&gt;
1. create directory and the file inside the created dir&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;   mkdir ~/Hello-1.0&lt;br /&gt;
   touch ~/Hello-1.0/hello&lt;br /&gt;
   chmod +x ~/Hello-1.0/hello&lt;br /&gt;
&lt;/directory&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
2. create the gzip-compressed tar and copy to the SOURCE dir&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;   tar cvzf Hello-1.0.tar.gz ~/Hello-1.0&lt;br /&gt;
   cp Hello-1.0.tar.gz ~/rpmbuild/SOURCES&lt;br /&gt;
&lt;/directory&gt;&lt;/div&gt;&lt;/blockqoute&gt;&lt;br /&gt;
&lt;br /&gt;
3. create the spec file&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;   rpmdev-newspec&lt;br /&gt;
&lt;/directory&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
4. copy the sample spec file to the package spec&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;cp newpackage.spec hello.spec&lt;br /&gt;
&lt;/directory&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
5. Edit hello.spec &lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Name: Hello          &lt;br /&gt;
Version:  1.0      &lt;br /&gt;
Release:        1%{?dist}&lt;br /&gt;
Summary: Hellow RPM      &lt;br /&gt;
&lt;br /&gt;
Group:          Miscellaneous&lt;br /&gt;
License:        GPL&lt;br /&gt;
URL:            www.penoycentral.net&lt;br /&gt;
Source0:        Hello-1.0.tar.gz&lt;br /&gt;
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)&lt;br /&gt;
&lt;br /&gt;
%description&lt;br /&gt;
A sample RPM for RHCE exam&lt;br /&gt;
&lt;br /&gt;
%prep&lt;br /&gt;
%setup -q&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%build&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%install&lt;br /&gt;
rm -rf $RPM_BUILD_ROOT&lt;br /&gt;
install -d -m 0755 $RPM_BUILD_ROOT/opt/Hello-1.0&lt;br /&gt;
install -m 0755 hello $RPM_BUILD_ROOT/opt/Hello-1.0/hello&lt;br /&gt;
&lt;br /&gt;
%clean&lt;br /&gt;
rm -rf $RPM_BUILD_ROOT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%files&lt;br /&gt;
%dir /opt/Hello-1.0&lt;br /&gt;
%defattr(-,root,root,-)&lt;br /&gt;
/opt/Hello-1.0/hello&lt;br /&gt;
&lt;br /&gt;
&lt;/directory&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
6. Build the source rpm&lt;br /&gt;
rpmbuild -ba ~/rpmbuild/SPECS/hello.spec&lt;br /&gt;
&lt;br /&gt;
7. RPM package can now be found in ~/rpmbuild/RPMS/x86_64/Hello-1.0.rpm&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/2646838567773642569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/creating-simple-rpm-part-2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/2646838567773642569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/2646838567773642569'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/08/creating-simple-rpm-part-2.html' title='Creating Simple RPM Part 2'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-6129039347914232826</id><published>2011-07-28T18:43:00.000-07:00</published><updated>2011-07-28T18:43:11.637-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="system messages"/><title type='text'>System Messages</title><content type='html'>facility.level&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
###&lt;br /&gt;
facility&lt;br /&gt;
###&lt;br /&gt;
user - messages generated by user processes. Default facility&lt;br /&gt;
kern -  kernel messages&lt;br /&gt;
daemon - system daemons&lt;br /&gt;
auth - authorization system(login,su,getty)&lt;br /&gt;
lpr - generates messages from the line printer spoooling systemlpr and lpc&lt;br /&gt;
news - reserved for the usenet network news system&lt;br /&gt;
uucp - uucp system does not currently used&lt;br /&gt;
audit - audit facility&lt;br /&gt;
local0-7 - reserved for local use&lt;br /&gt;
mark -  timestamp messages&lt;br /&gt;
* - indicates all facilities except mark&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
###&lt;br /&gt;
level&lt;br /&gt;
###&lt;br /&gt;
emerg -  panic conditions that would normally be broadcast to all users&lt;br /&gt;
alert - conditions need to be corrected immediately such as corrupted database&lt;br /&gt;
crit - warnings about critical conditions, such as disk errors&lt;br /&gt;
err -  other errors&lt;br /&gt;
warning -warning messages&lt;br /&gt;
notice - not error conditions but need handling such failed login&lt;br /&gt;
info - informational messages&lt;br /&gt;
debug - normally used when debugging programs&lt;br /&gt;
none - does not send messages</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/6129039347914232826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/system-messages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/6129039347914232826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/6129039347914232826'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/system-messages.html' title='System Messages'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-619291885316601470</id><published>2011-07-18T19:58:00.000-07:00</published><updated>2011-07-18T19:58:51.148-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Archive and Compression"/><title type='text'>Archive and compression</title><content type='html'>star will retain the SELinux permission&lt;br /&gt;
example:&lt;br /&gt;
pack chris directory&lt;br /&gt;
star -xattr -H=exustar -f=chris.star chris/&lt;br /&gt;
&lt;br /&gt;
unpack chris directory&lt;br /&gt;
star -x -f=chris.star</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/619291885316601470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/archive-and-compression.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/619291885316601470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/619291885316601470'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/archive-and-compression.html' title='Archive and compression'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-4276269389723318520</id><published>2011-07-10T16:22:00.000-07:00</published><updated>2011-07-10T16:22:26.061-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="."/><category scheme="http://www.blogger.com/atom/ns#" term="Journal"/><title type='text'>Centos 6 officially released</title><content type='html'>read the release notes at http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.0</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/4276269389723318520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/centos-6-officially-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4276269389723318520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4276269389723318520'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/centos-6-officially-released.html' title='Centos 6 officially released'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-4909758111299316819</id><published>2011-07-10T06:19:00.000-07:00</published><updated>2011-07-10T06:19:44.086-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Journal"/><title type='text'>CentOS 6 Released</title><content type='html'>CentOS 6 was finally released and asking help to seed their torrent.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;@CentOS: Help seed the CentOS-6.0/x86_64 ISOS via torrent : http://t.co/VP45uYA&lt;/blockquote&gt;&lt;br /&gt;
Available for i386 and x86_64</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/4909758111299316819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/centos-6-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4909758111299316819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4909758111299316819'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/centos-6-released.html' title='CentOS 6 Released'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-6166789896625897190</id><published>2011-07-08T08:11:00.000-07:00</published><updated>2011-07-08T08:11:24.216-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="KVM"/><title type='text'>Virtual Machines using KVM</title><content type='html'>To install with prompt&lt;br /&gt;
#virt-install --prompt&lt;br /&gt;
&lt;br /&gt;
List virtual machine&lt;br /&gt;
#virsh list&lt;br /&gt;
&lt;br /&gt;
Stop virtual machine&lt;br /&gt;
#virsh destroy &amp;lt;vm name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configure VM autostart&lt;br /&gt;
#virsh autostart &amp;lt;vm name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unconfigure VM autostart&lt;br /&gt;
#virsh autostart --disable &amp;lt;vm name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install&lt;br /&gt;
#virt-install --name=rhel03.localdomain -r 768 --disk path=/var/lib/libvirt/images/rhel03.localdomain.img,size=8 -l http://192.168.122.1/pub/inst -x &quot;ks=http://192.168.122.1/pub/ks/rhel03.cfg&quot;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/6166789896625897190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/virtual-machines-using-kvm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/6166789896625897190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/6166789896625897190'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/virtual-machines-using-kvm.html' title='Virtual Machines using KVM'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-1344724700971122693</id><published>2011-07-06T08:33:00.000-07:00</published><updated>2011-07-06T08:34:02.641-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Journal"/><title type='text'>Scientific Linux 6</title><content type='html'>Freshly installed Scientific Linux 6 on my laptop. Decided to use KVM for my labs as opposed of using Virtualbox to keep inline with the Redhat exam objectives of configuring virtual machines using KVM.&lt;br /&gt;
&lt;br /&gt;
I already got Michael Jang&#39;s 6th edition book and all i can say that it was well written. Quite addicted to it actually.&lt;br /&gt;
&lt;br /&gt;
Still trying to enroll for RH300 to speed things up but the local training center cancelled the schedule 2 months in a row. They say that they might have the class in August. Not sure if i still need the class by that time.&lt;br /&gt;
&lt;br /&gt;
Oh well, halted for almost a month now.. need to pump up and get back to the labs...</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/1344724700971122693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/scientific-linux-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/1344724700971122693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/1344724700971122693'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/07/scientific-linux-6.html' title='Scientific Linux 6'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-6796941568303182705</id><published>2011-06-22T00:41:00.000-07:00</published><updated>2011-07-15T10:02:31.409-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><category scheme="http://www.blogger.com/atom/ns#" term="luks"/><title type='text'>Encrypted Filesystem using Luks</title><content type='html'>This is a simple demostration of encrypting filesystem using luks&lt;br /&gt;
&lt;br /&gt;
1. cryptsetup luksFormat /dev/sdb1&lt;br /&gt;
&lt;br /&gt;
2. cryptsetup luksOpen /dev/sdb1 lukstest&lt;br /&gt;
&amp;nbsp; &amp;nbsp; this will create /dev/mapper/lukstest&lt;br /&gt;
&lt;br /&gt;
3.edit /etc/crypttab&lt;br /&gt;
&amp;nbsp; &amp;nbsp; lukstest /dev/sdb1 none luks&lt;br /&gt;
Note: in Michael Jang&#39;s 6th edition book, it was not mentioned in chapter 6 to create /etc/crypttab file but it was included in the Lab exam answers. Without this file, system will not ask password when rebooted.&lt;br /&gt;
&lt;br /&gt;
4. mkfs.ext4 /dev/mapper/lukstest&lt;br /&gt;
&lt;br /&gt;
5. add an entry in /etc/fstab&lt;br /&gt;
&amp;nbsp; &amp;nbsp;/dev/mapper/lukstest /mnt/lukstest ext4 defaults 0 0&lt;br /&gt;
&lt;br /&gt;
6. reboot the system, it should prompt for password to mount /mnt/lukstest</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/6796941568303182705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/encrypted-filesystem-using-luks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/6796941568303182705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/6796941568303182705'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/encrypted-filesystem-using-luks.html' title='Encrypted Filesystem using Luks'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-8846146917068981234</id><published>2011-06-21T18:00:00.001-07:00</published><updated>2011-06-21T18:00:57.249-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="accounts"/><title type='text'>Accounts Management</title><content type='html'>useradd &amp;lt;options&amp;gt; &amp;lt;username&amp;gt;&lt;br /&gt;
-b home dir&lt;br /&gt;
-c comment&lt;br /&gt;
-e expire date yyyy-mm-dd&lt;br /&gt;
-m creates home dir for new user&lt;br /&gt;
-r system account&lt;br /&gt;
-s shell&lt;br /&gt;
-u UID&lt;br /&gt;
&lt;br /&gt;
usermod &amp;lt;options&amp;gt; &amp;lt;username&amp;gt;&lt;br /&gt;
-c comment&lt;br /&gt;
-d home dir&lt;br /&gt;
-g primary group&lt;br /&gt;
-G secondary group&lt;br /&gt;
-l new login name&lt;br /&gt;
-L locks user&lt;br /&gt;
-s shell&lt;br /&gt;
-u uid&lt;br /&gt;
-U unlock user&lt;br /&gt;
&lt;br /&gt;
passwd &amp;lt;options&amp;gt; &amp;lt;username&amp;gt;&lt;br /&gt;
-L locks user&lt;br /&gt;
-U unlock user&lt;br /&gt;
-S status of passwrd&lt;br /&gt;
&lt;br /&gt;
chage &amp;lt;options&amp;gt;&amp;lt;username&amp;gt;&lt;br /&gt;
-d indicates day password was changed&lt;br /&gt;
-E expiration date yyyy-mm-dd&lt;br /&gt;
-I change password inactive after password expires before account is locked&lt;br /&gt;
-l show aging info&lt;br /&gt;
-m min days&lt;br /&gt;
-M max days&lt;br /&gt;
-W warn days&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
account is locked when you see ! character at the start of the password in /etc/shadow&lt;br /&gt;
&lt;br /&gt;
groupadd &amp;lt;group name&amp;gt;&lt;br /&gt;
-r creates a system group&lt;br /&gt;
-g GID&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/8846146917068981234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/accounts-management.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/8846146917068981234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/8846146917068981234'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/accounts-management.html' title='Accounts Management'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-986946316536285066</id><published>2011-06-19T21:15:00.001-07:00</published><updated>2011-06-19T21:15:41.880-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><title type='text'>File and directory permission</title><content type='html'>r &amp;nbsp;4&lt;br /&gt;
w &amp;nbsp;2&lt;br /&gt;
x &amp;nbsp;1&lt;br /&gt;
&lt;br /&gt;
extended attributes&lt;br /&gt;
SUID 4&lt;br /&gt;
SGID 2&lt;br /&gt;
Stickybit 1&lt;br /&gt;
&lt;br /&gt;
to set suid&lt;br /&gt;
chmod 4664 test&lt;br /&gt;
&lt;br /&gt;
to set sgid&lt;br /&gt;
chmod 2664 test&lt;br /&gt;
&lt;br /&gt;
to set sticky bit&lt;br /&gt;
chmod 1664 testr &amp;nbsp;4&lt;br /&gt;
w &amp;nbsp;2&lt;br /&gt;
x &amp;nbsp;1&lt;br /&gt;
&lt;br /&gt;
extended attributes&lt;br /&gt;
SUID 4&lt;br /&gt;
SGID 2&lt;br /&gt;
Stickybit 1&lt;br /&gt;
&lt;br /&gt;
to set suid&lt;br /&gt;
chmod 4664 test&lt;br /&gt;
&lt;br /&gt;
to set sgid&lt;br /&gt;
chmod 2664 test&lt;br /&gt;
&lt;br /&gt;
to set sticky bit&lt;br /&gt;
chmod 1664 test</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/986946316536285066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/file-and-directory-permission.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/986946316536285066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/986946316536285066'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/file-and-directory-permission.html' title='File and directory permission'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-3431146035415057339</id><published>2011-06-17T23:57:00.000-07:00</published><updated>2011-06-17T23:57:11.120-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><title type='text'>CGI script in Apache</title><content type='html'>/etc/httpd/conf/httpd.conf cgi config file can be found under ScriptAlias.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: #efeff7; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: black; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ScriptAlias /cgi-bin/ &quot;/var/www/cgi-bin/&quot;&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# &quot;/var/www/cgi-bin&quot; should be changed to whatever your ScriptAliased&lt;br /&gt;
# CGI directory exists, if you have that configured.&lt;br /&gt;
#&lt;br /&gt;
&lt;directory &quot;=&quot;&quot; cgi-bin&quot;=&quot;&quot; var=&quot;&quot; www=&quot;&quot;&gt;&lt;br /&gt;
AllowOverride None&lt;br /&gt;
Options None&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Allow from all&lt;br /&gt;
&lt;/directory&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
We can create a simple cgi script by following this site : http://www.elated.com/articles/your-first-cgi-script/ and upload the script in /var/www/cgi-bin&lt;br /&gt;
&lt;br /&gt;
/var/www/cgi-bin/hello.cgi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;#!/usr/bin/perl&lt;br /&gt;
print &quot;Content-type: text/html\n\n&quot;;&lt;br /&gt;
print &amp;lt;&amp;lt;END_HTML;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;Hello, World!&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
END_HTML&lt;/blockquote&gt;&lt;br /&gt;
Add an execution permission on hello.cgi&lt;br /&gt;
#chmod ugo+x /var/www/cgi-bin/hello.cgi&lt;br /&gt;
&lt;br /&gt;
Test the cgi script&lt;br /&gt;
http://rhel02/cgi-bin/hello.cgi</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/3431146035415057339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/cgi-script-in-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/3431146035415057339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/3431146035415057339'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/cgi-script-in-apache.html' title='CGI script in Apache'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-6754317626711451703</id><published>2011-06-17T22:41:00.001-07:00</published><updated>2011-06-17T22:41:20.639-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iptables"/><category scheme="http://www.blogger.com/atom/ns#" term="ports"/><category scheme="http://www.blogger.com/atom/ns#" term="security"/><title type='text'>Ports to remember</title><content type='html'>#########&lt;br /&gt;
Ports to remember&lt;br /&gt;
#########&lt;br /&gt;
TCP&lt;br /&gt;
80 http&lt;br /&gt;
443 https&lt;br /&gt;
22 ssh&lt;br /&gt;
20 ftp-data&lt;br /&gt;
21 ftp&lt;br /&gt;
53 domain&lt;br /&gt;
5901 &amp;nbsp;vnc (depends on the settings of /etc/sysconfig/vncservers)&lt;br /&gt;
&lt;br /&gt;
UDP&lt;br /&gt;
53 domain</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/6754317626711451703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/ports-to-remember.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/6754317626711451703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/6754317626711451703'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/ports-to-remember.html' title='Ports to remember'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-1550353225487648688</id><published>2011-06-16T18:37:00.001-07:00</published><updated>2011-08-05T08:56:25.058-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="security"/><category scheme="http://www.blogger.com/atom/ns#" term="selinux"/><title type='text'>Manage Security thru Selinux</title><content type='html'>Commands to remember&lt;br /&gt;
&lt;br /&gt;
sestatus show selinux status&lt;br /&gt;
getenforce show enforcing status of selinux&lt;br /&gt;
setenforce enforcing|permissive set status of selinux&lt;br /&gt;
getsebool -a show the boolean value of the service&lt;br /&gt;
setsebool -P set the the boolean value&lt;br /&gt;
chcon - u(user) -r (role) -t (type) change context of a file&lt;br /&gt;
chcon --reference=&amp;lt;dir&amp;gt; &amp;lt;dir_to_change_context&amp;gt; copy the context of the dir as referrence&lt;br /&gt;
restorecon -F myfile restore file default file context&lt;br /&gt;
&lt;br /&gt;
User&lt;br /&gt;
unconfined_u unprotected user&lt;br /&gt;
system_u system user&lt;br /&gt;
user_u normal user&lt;br /&gt;
&lt;br /&gt;
Role&lt;br /&gt;
object_r file&lt;br /&gt;
system_r users processes&lt;br /&gt;
&lt;br /&gt;
domain&lt;br /&gt;
unconfined_r unprotected file or process&lt;br /&gt;
&lt;br /&gt;
Set enforcing and permissive modes for SELinux&lt;br /&gt;
-thru configfile edit /etc/sysconfig/selinux&lt;br /&gt;
-or use the command setenforce&lt;br /&gt;
#setenforce Enforcing|Permissive&lt;br /&gt;
&lt;br /&gt;
List and identify SELinux file and process context&lt;br /&gt;
- File&lt;br /&gt;
ls -lZ&lt;br /&gt;
&lt;br /&gt;
-Process&lt;br /&gt;
ps -eZ|grep &amp;lt;process name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restore default file contexts&lt;br /&gt;
restorecon -F myfile&lt;br /&gt;
chcon - u(user) -r (role) -t (type) change context of a file&lt;br /&gt;
chcon --reference=&amp;lt;dir&amp;gt; &amp;lt;dir_to_change_context&amp;gt; copy the context of the dir as referrence&lt;br /&gt;
&lt;br /&gt;
Use boolean settings to modify system SELinux settings&lt;br /&gt;
getsebool -a show the boolean value of the service&lt;br /&gt;
setsebool -P &amp;lt;boolean&amp;gt;=1/0 set the the boolean value&lt;br /&gt;
&lt;br /&gt;
Diagnose and address routine SELinux policy violations&lt;br /&gt;
&lt;br /&gt;
To get man pages for a certain commands&lt;br /&gt;
man -k _selinux &lt;commands&gt;&lt;br /&gt;
&lt;br /&gt;
Description of the boolean&lt;br /&gt;
semanage boolean -l  #provided by the policycoreutils-python&lt;br /&gt;
&lt;br /&gt;
To survive a SELinux relabel&lt;br /&gt;
ex: #semanage fcontext -a -s system_u -t httpd_sys_script_exec_t /var/www/cgi-bin</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/1550353225487648688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/manage-security-thru-selinux.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/1550353225487648688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/1550353225487648688'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/manage-security-thru-selinux.html' title='Manage Security thru Selinux'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-4371032338383707774</id><published>2011-06-14T10:33:00.000-07:00</published><updated>2011-06-14T10:33:42.204-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><title type='text'>Using e2label</title><content type='html'>To label a device&lt;br /&gt;
e2label /dev/mapper/vg_mp3-lv_mp3 MP3Data&lt;br /&gt;
&lt;br /&gt;
To show the label&lt;br /&gt;
blkid&lt;br /&gt;
findfs LABEL=MP3Data&lt;br /&gt;
e2label&amp;nbsp;/dev/mapper/vg_mp3-lv&lt;br /&gt;
&lt;br /&gt;
To mount a labeled device&lt;br /&gt;
mount -t ext4 LABEL=MP3Data /mp3_data&lt;br /&gt;
&lt;br /&gt;
On fstab&lt;br /&gt;
&lt;br /&gt;
LABEL=MP3Data &amp;nbsp; /mp3_data &amp;nbsp; &amp;nbsp; &amp;nbsp; ext4 &amp;nbsp; &amp;nbsp;defaults &amp;nbsp; &amp;nbsp;0 0&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/4371032338383707774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/using-e2label.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4371032338383707774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4371032338383707774'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/using-e2label.html' title='Using e2label'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-7891235855756162519</id><published>2011-06-13T20:01:00.000-07:00</published><updated>2011-06-13T20:01:12.935-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="grub"/><category scheme="http://www.blogger.com/atom/ns#" term="runlevels"/><title type='text'>Fixing broken mbr in grub</title><content type='html'>grub &amp;gt; find /grub/grub.conf &amp;nbsp; &amp;nbsp;or grub&amp;gt; root&lt;br /&gt;
grub&amp;gt; setup (hd0)</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/7891235855756162519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/fixing-broken-mbr-in-grub.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/7891235855756162519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/7891235855756162519'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/fixing-broken-mbr-in-grub.html' title='Fixing broken mbr in grub'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-4095167042795696555</id><published>2011-06-11T01:30:00.000-07:00</published><updated>2011-06-11T01:30:12.495-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rpm"/><title type='text'>Creating a Simple RPM</title><content type='html'>Create your simple script&lt;br /&gt;
mkdir testrpm-1.0&lt;br /&gt;
vi ~/testrpm-1.0/testrpm.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#hello.sh&lt;br /&gt;
echo &#39;this is a test rpm&#39;&lt;br /&gt;
exit 0&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Install rpm build tools&lt;/div&gt;&lt;div&gt;yum install -y rpmlint rpmdevtools rpm-build&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Create the rpmbuild directories as regular user&lt;/div&gt;&lt;div&gt;rpmdev-setuptree&lt;/div&gt;&lt;div&gt;This command will automatically create~/rpmbuild/{BUILD &amp;nbsp;BUILDROOT &amp;nbsp;RPMS &amp;nbsp;SOURCES &amp;nbsp;SPECS &amp;nbsp;SRPMS} directories&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Create the skeletal spec file&amp;nbsp;&lt;/div&gt;&lt;div&gt;rpmdev-newspec -o testrpm.spec&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;edit testrpm.spec&lt;/div&gt;&lt;div&gt;&lt;div&gt;Name: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; testrpm&lt;/div&gt;&lt;div&gt;Version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.0&lt;/div&gt;&lt;div&gt;Release: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1%{?dist}&lt;/div&gt;&lt;div&gt;Summary: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;testrpm&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Group: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Development/Tools&lt;/div&gt;&lt;div&gt;License: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GPL&lt;/div&gt;&lt;div&gt;Source0: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;testrpm-1.0.tar.gz&lt;/div&gt;&lt;div&gt;BuildRoot: &amp;nbsp; &amp;nbsp; &amp;nbsp;%{_tmppath}/%{name}-%{version}-%{release}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;%description&lt;/div&gt;&lt;div&gt;this is a test rpmpackage&lt;/div&gt;&lt;div&gt;%prep&lt;/div&gt;&lt;div&gt;%setup -q&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;%install&lt;/div&gt;&lt;div&gt;rm -rf $RPM_BUILD_ROOT&lt;/div&gt;&lt;div&gt;install -D testrpm.sh $RPM_BUILD_ROOT/opt/testrpm.sh&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;%clean&lt;/div&gt;&lt;div&gt;rm -rf $RPM_BUILD_ROOT&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;%files&lt;/div&gt;&lt;div&gt;%attr (770,root,root) /opt&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;%changelog&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Build your rpm&lt;/div&gt;&lt;div&gt;rpmbuild -v -bb ~/SPECS/testrpm.spec&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;RPM package can be located under ~/rpmbuild/RPMS&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/4095167042795696555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/creating-simple-rpm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4095167042795696555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4095167042795696555'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/creating-simple-rpm.html' title='Creating a Simple RPM'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-2654787521329368584</id><published>2011-06-08T17:57:00.000-07:00</published><updated>2011-06-08T17:58:05.840-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><category scheme="http://www.blogger.com/atom/ns#" term="swap"/><title type='text'>Creating Swap</title><content type='html'>Creating swap thru disk partition&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: white; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;[root@rhel02 ~]# free -m&lt;br /&gt;
total       used       free     shared    buffers     cached&lt;br /&gt;
Mem:           997        254        743          0          2        114&lt;br /&gt;
-/+ buffers/cache:        137        859&lt;br /&gt;
Swap:         2015          0       2015&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
Create the disk partition&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: white; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;[root@rhel02 ~]# parted /dev/sdb&lt;br /&gt;
GNU Parted 2.1&lt;br /&gt;
Using /dev/sdb&lt;br /&gt;
Welcome to GNU Parted! Type &#39;help&#39; to view a list of commands.&lt;br /&gt;
(parted) mkpart&lt;br /&gt;
Partition type?  primary/extended? primary&lt;br /&gt;
File system type?  [ext2]? linux-swap&lt;br /&gt;
Start? 0&lt;br /&gt;
End? 200&lt;br /&gt;
Warning: The resulting partition is not properly aligned for best performance.&lt;br /&gt;
Ignore/Cancel? Ignore&lt;br /&gt;
(parted) pr&lt;br /&gt;
Model: VBOX HARDDISK (scsi)&lt;br /&gt;
Disk /dev/sdb: 524MB&lt;br /&gt;
Sector size (logical/physical): 512B/512B&lt;br /&gt;
Partition Table: msdos&lt;br /&gt;
&lt;br /&gt;
Number  Start  End    Size   Type     File system     Flags&lt;br /&gt;
1      512B   200MB  200MB  primary  linux-swap(v1)&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
Initialize the disk partion&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: white; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;[root@rhel02 ~]# mkswap /dev/sdb1&lt;br /&gt;
Setting up swapspace version 1, size = 195308 KiB&lt;br /&gt;
no label, UUID=364ca39e-dc67-4f8d-9790-e2715425d248&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Add the newly created swap&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: white; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;[root@rhel02 ~]# swapon /dev/sdb1&lt;br /&gt;
[root@rhel02 ~]# swapon -s&lt;br /&gt;
Filename                                Type            Size    Used    Priority&lt;br /&gt;
/dev/dm-1                               partition       2064376 0       -1&lt;br /&gt;
/dev/sdb1                               partition       195304  0       -2&lt;br /&gt;
[root@rhel02 ~]# free -m&lt;br /&gt;
total       used       free     shared    buffers     cached&lt;br /&gt;
Mem:           997        262        735          0          6        115&lt;br /&gt;
-/+ buffers/cache:        140        856&lt;br /&gt;
Swap:         2206          0       2206&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Creating swap thru a swapfile(example 200mb of swapfile)&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: white; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;[root@rhel02 ~]# dd if=/dev/zero of=/tmp_swap/swapfile bs=1024 count=204800&lt;br /&gt;
204800+0 records in&lt;br /&gt;
204800+0 records out&lt;br /&gt;
209715200 bytes (210 MB) copied, 29.5354 s, 7.1 MB/sd&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: white; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;[root@rhel02 ~]# mkswap /tmp_swap/swapfile&lt;br /&gt;
mkswap: /tmp_swap/swapfile: warning: don&#39;t erase bootbits sectors&lt;br /&gt;
on whole disk. Use -f to force.&lt;br /&gt;
Setting up swapspace version 1, size = 204796 KiB&lt;br /&gt;
no label, UUID=5d77de02-b28f-43a1-9410-fed6d05172c4d&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: white; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;[root@rhel02 ~]# swapon /tmp_swap/swapfile&lt;br /&gt;
[root@rhel02 ~]# swapon -s&lt;br /&gt;
Filename                                Type            Size    Used    Priority&lt;br /&gt;
/dev/dm-1                               partition       2064376 0       -1&lt;br /&gt;
/dev/sdb1                               partition       195304  0       -2&lt;br /&gt;
/tmp_swap/swapfile                      file            202288  0       -3&lt;br /&gt;
[root@rhel02 ~]# free -m&lt;br /&gt;
total       used       free     shared    buffers     cached&lt;br /&gt;
Mem:           997        491        505          0         11        315&lt;br /&gt;
-/+ buffers/cache:        164        833&lt;br /&gt;
Swap:         2404          0       2404&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
Remove swap&lt;br /&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; border-bottom-color: rgb(128, 176, 207); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(128, 176, 207); border-top-style: solid; border-top-width: 1px; font-family: Courier, sans-serif; font-size: 12px; margin-bottom: 20px; margin-left: 15px; margin-right: 0px; margin-top: 12px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: 600px;&quot;&gt;&lt;div style=&quot;color: white; letter-spacing: 0.04em; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;[root@rhel02 ~]# swapoff /tmp_swap/swapfile&lt;br /&gt;
[root@rhel02 ~]# swapoff /dev/sdb1&lt;br /&gt;
[root@rhel02 ~]# swapon -s&lt;br /&gt;
Filename                                Type            Size    Used    Priority&lt;br /&gt;
/dev/dm-1                               partition       2064376 0       -&lt;/div&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/2654787521329368584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/creating-swap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/2654787521329368584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/2654787521329368584'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/creating-swap.html' title='Creating Swap'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-5894610014106817086</id><published>2011-06-07T12:27:00.000-07:00</published><updated>2011-06-08T18:30:10.480-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><category scheme="http://www.blogger.com/atom/ns#" term="parted"/><title type='text'>Creating and mounting filesystem ext2 ext3 ext4</title><content type='html'>[root@rhel02 ~]# parted /dev/sdb&lt;br /&gt;
GNU Parted 2.1&lt;br /&gt;
Using /dev/sdb&lt;br /&gt;
Welcome to GNU Parted! Type &#39;help&#39; to view a list of commands.&lt;br /&gt;
(parted) help&lt;br /&gt;
&amp;nbsp; align-check TYPE N &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;check partition N for TYPE(min|opt) alignment&lt;br /&gt;
&amp;nbsp; check NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do a simple check on the file system&lt;br /&gt;
&amp;nbsp; cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER &amp;nbsp; copy file system to another partition&lt;br /&gt;
&amp;nbsp; help [COMMAND] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print general help, or help on COMMAND&lt;br /&gt;
&amp;nbsp; mklabel,mktable LABEL-TYPE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; create a new disklabel (partition table)&lt;br /&gt;
&amp;nbsp; mkfs NUMBER FS-TYPE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;make a FS-TYPE file system on partition NUMBER&lt;br /&gt;
&amp;nbsp; mkpart PART-TYPE [FS-TYPE] START END &amp;nbsp; &amp;nbsp; make a partition&lt;br /&gt;
&amp;nbsp; mkpartfs PART-TYPE FS-TYPE START END &amp;nbsp; &amp;nbsp; make a partition with a file system&lt;br /&gt;
&amp;nbsp; move NUMBER START END &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;move partition NUMBER&lt;br /&gt;
&amp;nbsp; name NUMBER NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name partition NUMBER as NAME&lt;br /&gt;
&amp;nbsp; print [devices|free|list,all|NUMBER] &amp;nbsp; &amp;nbsp; display the partition table, available devices, free space, all found partitions, or a particular partition&lt;br /&gt;
&amp;nbsp; quit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit program&lt;br /&gt;
&amp;nbsp; rescue START END &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rescue a lost partition near START and END&lt;br /&gt;
&amp;nbsp; resize NUMBER START END &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;resize partition NUMBER and its file system&lt;br /&gt;
&amp;nbsp; rm NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;delete partition NUMBER&lt;br /&gt;
&amp;nbsp; select DEVICE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;choose the device to edit&lt;br /&gt;
&amp;nbsp; set NUMBER FLAG STATE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;change the FLAG on partition NUMBER&lt;br /&gt;
&amp;nbsp; toggle [NUMBER [FLAG]] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; toggle the state of FLAG on partition NUMBER&lt;br /&gt;
&amp;nbsp; unit UNIT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set the default unit to UNIT&lt;br /&gt;
&amp;nbsp; version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display the version number and copyright information of GNU Parted&lt;br /&gt;
(parted) mkpart&lt;br /&gt;
Partition type? &amp;nbsp;primary/extended? primary&lt;br /&gt;
File system type? &amp;nbsp;[ext2]? ext2&lt;br /&gt;
Start? 0&lt;br /&gt;
End? 100&lt;br /&gt;
Warning: The resulting partition is not properly aligned for best performance.&lt;br /&gt;
Ignore/Cancel? Ignore&lt;br /&gt;
(parted) pri&lt;br /&gt;
Model: VBOX HARDDISK (scsi)&lt;br /&gt;
Disk /dev/sdb: 524MB&lt;br /&gt;
Sector size (logical/physical): 512B/512B&lt;br /&gt;
Partition Table: msdos&lt;br /&gt;
&lt;br /&gt;
Number &amp;nbsp;Start &amp;nbsp;End &amp;nbsp; &amp;nbsp;Size &amp;nbsp; Type &amp;nbsp; &amp;nbsp; File system &amp;nbsp;Flags&lt;br /&gt;
&amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;512B &amp;nbsp; 100MB &amp;nbsp;100MB &amp;nbsp;primary &amp;nbsp;ext2&lt;br /&gt;
&lt;br /&gt;
(parted) quit&lt;br /&gt;
Information: You may need to update /etc/fstab.&lt;br /&gt;
&lt;br /&gt;
[root@rhel02 ~]# partprobe /dev/sdb&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Create the same way for /dev/sdc (ext3) and /dev/sdd (ext4)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;To show the filesystem created&lt;/div&gt;&lt;div&gt;&lt;div&gt;[root@rhel02 ~]# parted /dev/sdb print&lt;/div&gt;&lt;div&gt;Model: VBOX HARDDISK (scsi)&lt;/div&gt;&lt;div&gt;Disk /dev/sdb: 524MB&lt;/div&gt;&lt;div&gt;Sector size (logical/physical): 512B/512B&lt;/div&gt;&lt;div&gt;Partition Table: msdos&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Number &amp;nbsp;Start &amp;nbsp;End &amp;nbsp; &amp;nbsp;Size &amp;nbsp; Type &amp;nbsp; &amp;nbsp; File system &amp;nbsp;Flags&lt;/div&gt;&lt;div&gt;&amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;512B &amp;nbsp; 100MB &amp;nbsp;100MB &amp;nbsp;primary &amp;nbsp;ext2&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;[root@rhel02 ~]# parted /dev/sdc print&lt;/div&gt;&lt;div&gt;Model: VBOX HARDDISK (scsi)&lt;/div&gt;&lt;div&gt;Disk /dev/sdc: 524MB&lt;/div&gt;&lt;div&gt;Sector size (logical/physical): 512B/512B&lt;/div&gt;&lt;div&gt;Partition Table: msdos&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Number &amp;nbsp;Start &amp;nbsp;End &amp;nbsp; &amp;nbsp;Size &amp;nbsp; Type &amp;nbsp; &amp;nbsp; File system &amp;nbsp;Flags&lt;/div&gt;&lt;div&gt;&amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;512B &amp;nbsp; 100MB &amp;nbsp;100MB &amp;nbsp;primary &amp;nbsp;ext3&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;[root@rhel02 ~]# parted /dev/sdd print&lt;/div&gt;&lt;div&gt;Model: VBOX HARDDISK (scsi)&lt;/div&gt;&lt;div&gt;Disk /dev/sdd: 524MB&lt;/div&gt;&lt;div&gt;Sector size (logical/physical): 512B/512B&lt;/div&gt;&lt;div&gt;Partition Table: msdos&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Number &amp;nbsp;Start &amp;nbsp;End &amp;nbsp; &amp;nbsp;Size &amp;nbsp; Type &amp;nbsp; &amp;nbsp; File system &amp;nbsp;Flags&lt;/div&gt;&lt;div&gt;&amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;512B &amp;nbsp; 100MB &amp;nbsp;100MB &amp;nbsp;primary &amp;nbsp;ext4&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Alternative commands&lt;/div&gt;&lt;div&gt;mkfs.ext2 /dev/sdb1&lt;/div&gt;&lt;div&gt;mkfs.ext3 /dev/sdc1&lt;/div&gt;&lt;div&gt;mkfs.ext4 /dev/sdd1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Mounting&lt;/div&gt;&lt;div&gt;mount /dev/sdb1 /mnt&lt;/div&gt;&lt;div&gt;mount /dev/sdc1 /mnt2&lt;/div&gt;&lt;div&gt;mount /dev/sdd1 /mnt3&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Creating partition using one liner&lt;br /&gt;
&lt;br /&gt;
[root@rhel02 ~]# parted /dev/sdc mkpart primary ext4 0 500&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/5894610014106817086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/creating-and-mounting-filesystem-ext2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/5894610014106817086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/5894610014106817086'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/creating-and-mounting-filesystem-ext2.html' title='Creating and mounting filesystem ext2 ext3 ext4'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-2010379634029090099</id><published>2011-06-07T11:53:00.000-07:00</published><updated>2011-06-07T12:16:32.822-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="parted"/><category scheme="http://www.blogger.com/atom/ns#" term="RAID"/><title type='text'>RAID</title><content type='html'>Parted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To list disk&lt;br /&gt;
&lt;blockquote&gt;parted -l |grep sd &amp;nbsp; &amp;nbsp;#sd-scsi disks&lt;/blockquote&gt;&lt;br /&gt;
Use in command line&lt;br /&gt;
&lt;blockquote&gt;parted &amp;lt;device&amp;gt; &amp;lt;command&amp;gt;&lt;br /&gt;
parted /dev/sdb print&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Creating a raid5&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;mdadm -Cv /dev/md0 --level=5 -n3 /dev/sdb1 /dev/sdc1 /dev/sdd1&lt;br /&gt;
mdadm --detail /dev/md0&lt;/blockquote&gt;&lt;br /&gt;
Use the command below to create a copy of the partition of an existing disk then format then use mdadm --add to the array.&lt;br /&gt;
&lt;blockquote&gt;sfdisk -d /dev/&amp;lt;origin-disk&amp;gt; |sfdisk /dev/&amp;lt;destination-disk&amp;gt;&lt;/blockquote&gt;Example:&lt;br /&gt;
&lt;blockquote&gt;sfdisk -d /dev/sda | sfdisk /dev/sdb&lt;/blockquote&gt;&lt;br /&gt;
Fail a disk&lt;br /&gt;
&lt;blockquote&gt;mdadm /dev/md0 -f /dev/sdb1&lt;/blockquote&gt;&lt;br /&gt;
Remove a disk&lt;br /&gt;
&lt;blockquote&gt;mdadm /dev/md0 -r /dev/sdb1&lt;/blockquote&gt;&lt;br /&gt;
Add a disk&lt;br /&gt;
&lt;blockquote&gt;mdadm /dev/md0 -a /dev/sdb1&lt;/blockquote&gt;&lt;br /&gt;
Start md&lt;br /&gt;
&lt;blockquote&gt;mdadm --assemble --scan&lt;/blockquote&gt;&lt;br /&gt;
Saving mdadm config&lt;br /&gt;
&lt;blockquote&gt;echo &#39;DEVICE /dev/sd*&#39; &amp;nbsp;&amp;gt; /etc/mdadm.conf&lt;br /&gt;
mdadm --detail --scan &amp;gt;&amp;gt; /etc/mdadm.conf&lt;/blockquote&gt;&lt;br /&gt;
Removing array&lt;br /&gt;
&lt;blockquote&gt;mdadm -S /dev/md0 &amp;nbsp;&amp;gt;&amp;gt; stop md&lt;br /&gt;
mdadm --zero-superblock /dev/sdb1&lt;br /&gt;
mdadm --zero-superblock /dev/sdc1&lt;br /&gt;
mdadm --zero-superblock /dev/sdd1&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/2010379634029090099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/raid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/2010379634029090099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/2010379634029090099'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/06/raid.html' title='RAID'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5180343002973468556.post-4257880150179557225</id><published>2011-05-16T02:29:00.000-07:00</published><updated>2011-07-08T19:38:55.982-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><title type='text'>ACL</title><content type='html'>required package:&lt;br /&gt;
&lt;blockquote&gt;acl-2.2.49-4.el6.x86_64&lt;/blockquote&gt;&lt;br /&gt;
Mount a filesystem to use ACL&lt;br /&gt;
&lt;blockquote&gt;mount -t ext4 -o acl /dev/mapper/myvg-lvhome /home&lt;/blockquote&gt;&lt;br /&gt;
Set the ACL&lt;br /&gt;
&lt;blockquote&gt;setfacl -m u:chris:rwx /home/file1&lt;/blockquote&gt;&lt;br /&gt;
Check ACL&lt;br /&gt;
&lt;blockquote&gt;getfacl /home/file1&lt;/blockquote&gt;&lt;br /&gt;
Remove ACL &lt;br /&gt;
&lt;blockquote&gt;setfacl -x u:chris file1&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel6notes.blogspot.com/feeds/4257880150179557225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel6notes.blogspot.com/2011/05/acl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4257880150179557225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5180343002973468556/posts/default/4257880150179557225'/><link rel='alternate' type='text/html' href='http://rhel6notes.blogspot.com/2011/05/acl.html' title='ACL'/><author><name>penoi</name><uri>http://www.blogger.com/profile/12173802170831574471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSPUdbwLMieQ_lsXHBc3UkFpd8aNPkFaRozqhEKYRGcO6ycWWSqhteVGz4IlONYNsV3E6-qllDrbXYi-8dTfIaGyPOwUmWimYgEGPnSF2pLvBVojKJC0QDEwpVY3fRA/s220/ZEROLOGO-300x300.gif'/></author><thr:total>0</thr:total></entry></feed>