<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <atom:link href="http://mdadam.yolasite.com/rhel-6/rhel-6.rss" rel="self" type="application/rss+xml" />
        <title>rhel-6</title>
        <description>rhel-6</description>
        <link>http://mdadam.yolasite.com/rhel-6/rhel-6.php</link>
        <lastBuildDate>Thu, 04 Jun 2026 01:34:37 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Restoring /usr/bin with yum after accidental deletion</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/restoring-usr-bin-with-yum-after-accidental-deletion</link>
            <description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: fuchsia; &quot;&gt;&lt;span style=&quot;font-size: 18px; &quot;&gt;Restoring /usr/bin with yum after accidental deletion&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;I was recently writing a Makefile for cramfs, specifically the distclean and install sections. The installation would copy the program binaries to /usr/bin while the cleanup would remove them… simple enough right?&lt;br&gt;&lt;br&gt;I wrote a for loop to go through $(PROGS) and remove them from $(INSTLOC):&lt;br&gt;01 INSTLOC = /usr/bin&amp;nbsp;&lt;br&gt;&lt;br&gt;02 PROGS = mkcramfs cramfsck&amp;nbsp;&lt;br&gt;&lt;br&gt;03&amp;nbsp;&lt;br&gt;&lt;br&gt;04 all: $(PROGS)&amp;nbsp;&lt;br&gt;&lt;br&gt;05&amp;nbsp;&lt;br&gt;&lt;br&gt;06 distclean clean:&amp;nbsp;&lt;br&gt;&lt;br&gt;07 for p in $(PROGS);\&amp;nbsp;&lt;br&gt;&lt;br&gt;08 do\&amp;nbsp;&lt;br&gt;&lt;br&gt;09 rm -rf $$p $(INSTLOC)/$$p;\&amp;nbsp;&lt;br&gt;&lt;br&gt;10 done&amp;nbsp;&lt;br&gt;&lt;br&gt;11&amp;nbsp;&lt;br&gt;&lt;br&gt;12 install:&amp;nbsp;&lt;br&gt;&lt;br&gt;13 cp $(PROGS) $(INSTLOC)&amp;nbsp;&lt;br&gt;&lt;br&gt;The problem was that I ran this as root (tsk tsk), and since Makefile requires that for loop variables be escaped (line 9: $$p not $p), the rm command translated to this:&lt;br&gt;1 rm -rf /usr/bin/&amp;nbsp;&lt;br&gt;Great! So now I had no binaries in /usr/bin, which includes: yum, bash, crontab, python, perl… (800+ in total on a minimal install).&lt;br&gt;&lt;br&gt;Since I only deleted the binaries, the programs were still listed as installed in the RPM database. The first thing I had to do was reinstall yum and it’s “usrbin” dependency python:&lt;br&gt;&lt;br&gt;1 [root@demon ~]# mount /dev/sr0 /media/cdrom&amp;nbsp;&lt;br&gt;&lt;br&gt;2 [root@demon ~]# cd /media/cdrom/Packages&amp;nbsp;&lt;br&gt;&lt;br&gt;3 [root@demon ~]# rpm -Uvh --force python-2.6.5-3.el6.i686.rpm&amp;nbsp;&lt;br&gt;&lt;br&gt;4 [root@demon ~]# rpm -Uvh --force yum-3.2.27-14.el6.noarch.rpm&amp;nbsp;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;he next step was to figure out which packages had binaries in /usr/bin so I can reinstall them:&lt;br&gt;&lt;br&gt;view sourceprint?&lt;br&gt;1 [root@demon ~]# rpm -qf $(rpm -qla|grep ^/usr/bin)|uniq|sort&amp;nbsp;&lt;br&gt;… and finally send those to yum to do a reinstall and get the binaries back:&lt;br&gt;&lt;br&gt;view sourceprint?&lt;br&gt;1 [root@demon ~]# yum reinstall $(rpm -qf $(rpm -qla|grep ^/usr/bin)|uniq|sort)&amp;nbsp;&lt;br&gt;&lt;br&gt;2 [root@demon ~]# ls -la /usr/bin|wc -l&amp;nbsp;&lt;br&gt;&lt;br&gt;3 848&amp;nbsp;&lt;br&gt;&lt;br&gt;4 [root@demon ~]#&amp;nbsp;&lt;br&gt;… crisis averted! Snapshot time.&lt;br&gt;&lt;br&gt;One last note: If you manually installed third party RPMs (not listed in the /etc/yum.repos.d repositories), they will not be reinstalled. You can perform reinstall these one by one using the rpm -Uvh command above. Keep in mind that if these RPMs have not undergone proper QA they may overwrite your current configuration files&lt;br&gt;&lt;br&gt;You can run these RPMs through rpmlint to see if they produce any warnings or errors that may cause a problem when reinstalling:&lt;br&gt;&lt;br&gt;view sourceprint?1 [root@demon ~]# rpmlint -iv iplog-2.2.1-1_RH7.i386.rpm&amp;nbsp;&lt;br&gt;&lt;br&gt;2 ...&amp;nbsp;&lt;br&gt;&lt;br&gt;3 iplog.i386: W: conffile-without-noreplace-flag /etc/iplog.conf&amp;nbsp;&lt;br&gt;&lt;br&gt;4 A configuration file is stored in your package without the noreplace flag. A&amp;nbsp;&lt;br&gt;&lt;br&gt;5 way to resolve this is to put the following in your SPEC file:&amp;nbsp;&lt;br&gt;&lt;br&gt;6 %config(noreplace) /etc/your_config_file_here&amp;nbsp;&lt;br&gt;&lt;br&gt;7 ...&amp;nbsp;&lt;br&gt;&lt;br&gt;8 [root@demon ~]#&amp;nbsp;&lt;/span&gt;&lt;br&gt;</description>
            <pubDate>Mon, 17 Oct 2011 13:09:06 +0100</pubDate>
        </item>
        <item>
            <title>New Features in RHEL6</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/new-features-in-rhel6</link>
            <description>&lt;span style=&quot;font-family: Arial, sans-serif, Verdana; font-size:12px; line-height: normal; background-color: #f5f5f5; &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: fuchsia; &quot;&gt;&lt;span style=&quot;font-size: 18px; &quot;&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;New Features in RHEL6&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;1. ext4 file system is introduced.&lt;br&gt;2. xen is removed and kernel virtualization machine (KVM) is introduced.&lt;br&gt;3. neat command is removed.&lt;br&gt;4. portmap service is removed.&lt;br&gt;5. iscsi is introduced, which supports for SAN.&lt;br&gt;6. rpmbuild is available, which is used to create our own rpms.&lt;br&gt;7. File encyption is added.&lt;br&gt;8. palimpsest is available for disk management.&lt;br&gt;9. Virtual machine will run only on 64bit processors.&lt;br&gt;10. postfix service is recommended instead of sendmail service.&lt;/span&gt;</description>
            <pubDate>Mon, 17 Oct 2011 13:04:51 +0100</pubDate>
        </item>
        <item>
            <title>RHEL6 openldap server</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/rhel6-openldap-server</link>
            <description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: fuchsia; &quot;&gt;&lt;span style=&quot;font-size: 20px; &quot;&gt;RHEL6 openldap server&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Please note that all double quote characters in this example are plain ASCII ” characters not typographical ones!&lt;br&gt;&lt;br&gt;Step 1: first we need to install the required packages:&lt;br&gt;&lt;br&gt;#yum install openldap-servers migrationtools&lt;br&gt;&lt;br&gt;Step2: As the configuration for LDAP is stored inside the LDAP server itself the configuration has to be done by editing LDIF files under the /etc/openldap/slapd.d/ directory.&lt;br&gt;&lt;br&gt;Now create the ldap password:&lt;br&gt;&lt;br&gt;#slappasswd&lt;br&gt;&lt;br&gt;you’ll get something like this ”{SSHA}r2or9f2vYlvieCu0LP6wTnSdYfrddsuV” as a result. This is the string we will have to add to the bdb.ldif config file.&lt;br&gt;&lt;br&gt;# vim /etc/openldap/slapd.d/cn\=config/olcData&lt;wbr&gt;base\=\{1\}bdb.ldif&lt;br&gt;&lt;br&gt;substitute&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://my-domain.com/&amp;amp;t=AKJogVZpyFG_kDGMzi2Ebv4AUJo89I64aRVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: rgb(2, 103, 156); text-decoration: none; &quot; class=&quot;&quot;&gt;my-domain.com&lt;/a&gt;&amp;nbsp;with&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://yourdomain.com/&amp;amp;t=AN-4-2lE1YcgGESlgxz1C3ViJzaJRNviwxVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: rgb(2, 103, 156); text-decoration: none; &quot; class=&quot;&quot;&gt;yourdomain.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;:%s/dc=my-domain,dc=com/dc&lt;wbr&gt;=yourdmain,dc=com/g&lt;br&gt;&lt;br&gt;Step 3: We now set the admin password and specify the location of our encryption certificate and key.&lt;br&gt;&lt;br&gt;add these 3 lines at the end of the file bdb.ldif file:&lt;br&gt;&lt;br&gt;olcRootPW: {SSHA}r2or9f2vYlvieCu0LP6wTnSdYfrddsuV&lt;br&gt;ol&lt;wbr&gt;cTLSCertificateFile: /etc/pki/tls/certs/slapdcert.pem&lt;br&gt;olcTLSCe&lt;wbr&gt;rtificateKeyFile: /etc/pki/tls/certs/slapdkey.pem&lt;br&gt;&lt;br&gt;Step 4: Now we have to specify the monitoring privileges&lt;br&gt;&lt;br&gt;#vim /etc/openldap/slapd.d/cn\=config/olcData&lt;wbr&gt;base\=\{2\}monitor.ldif&lt;br&gt;&lt;br&gt;again, we have to replace the default domain name with our domain name&lt;br&gt;&lt;br&gt;:%s/cn=manager,dc=my-domain,dc=com/c&lt;wbr&gt;n=Manager,dc=yourdomain,dc=com/g&lt;br&gt;&lt;br&gt;Step 5: Now its time for the Database Cache&lt;br&gt;&lt;br&gt;#updatedb&lt;br&gt;&lt;br&gt;#cp /usr/share/doc/openldap-servers-2.4.19/ DB_CONFIG.example /var/lib/ldap/DB_CONFIG&lt;br&gt;&lt;br&gt;#chown -Rf ldap:ldap /var/lib/ldap/&lt;br&gt;&lt;br&gt;Step 6: Now we will need to set up a certificate for TLS. First we need to edit /etc/sysconfig/ldap and change SLAPD_LDAPS from no to yes.&lt;br&gt;&lt;br&gt;#vi /etc/sysconfig/ldap&lt;br&gt;SLAPD_LDAPS=yes&lt;br&gt;&lt;br&gt;Now we can create the certificate&lt;br&gt;&lt;br&gt;#openssl req -new -x509 -nodes -out /etc/pki/tls/certs/slapdcert.pem -keyout /etc/pki/tls/certs/slapdkey.pem -days 365&lt;br&gt;&lt;br&gt;This will create the two required keys in the /etc/pki/tls/certs/ directory. We need to make them readable for the ldap user.&lt;br&gt;&lt;br&gt;# chown -Rf root:ldap /etc/pki/tls/certs/$cert.pem&lt;br&gt;# chmod -Rf 750 /etc/pki/tls/certs/$key.pem&lt;br&gt;&lt;br&gt;Step 7: Time to test our configuration&lt;br&gt;&lt;br&gt;# slaptest -u&lt;br&gt;config file testing succeeded&lt;br&gt;&lt;br&gt;Step 8: Start the ldap server&lt;br&gt;&lt;br&gt;#service sladp start&lt;br&gt;&lt;br&gt;lets check if our ldap server really works:&lt;br&gt;&lt;br&gt;#ldapsearch -x -b ”dc=yourdomain,dc=com”&lt;br&gt;&lt;br&gt;if you get a search: 2 then your on track!&lt;br&gt;&lt;br&gt;Step 9: Configure the base domain&lt;br&gt;&lt;br&gt;#vi base.ldif&lt;br&gt;&lt;br&gt;dn: dc=yourdomain,dc=net&lt;br&gt;dc: yourdomain&lt;br&gt;objectClass: top&lt;br&gt;objectClass: domain&lt;br&gt;&lt;br&gt;dn: ou=People,dc=yourdomain,dc=net&lt;br&gt;ou: People&lt;br&gt;objectClass: top&lt;br&gt;objectClass: organizationalUnit&lt;br&gt;&lt;br&gt;dn: ou=Group,dc=yourdomain,dc=net&lt;br&gt;ou: Group&lt;br&gt;objectClass: top&lt;br&gt;objectClass: organizationalUnit&lt;br&gt;&lt;br&gt;now we import our base information to the ldap directory:&lt;br&gt;&lt;br&gt;#ldapadd -x -W -D ”cn=Manager,dc=yourdomain,dc=com” -f base.ldif&lt;br&gt;&lt;br&gt;Step 10: lets migrate the users&lt;br&gt;&lt;br&gt;Go to the directory /usr/share/migrationtools. Edit the file&lt;br&gt;&lt;br&gt;# vim /usr/share/migrationtools/&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://migrate_common.ph/&amp;amp;t=AOyOiKa_RFRzyHvu4pD1AZWC1ZOjuUJS6hVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: rgb(2, 103, 156); text-decoration: none; &quot;&gt;migrate_common&lt;wbr&gt;.ph&lt;/a&gt;&lt;br&gt;&lt;br&gt;Set:&lt;br&gt;# Default DNS domain&lt;br&gt;$DEFAULT_MAIL_DOMAIN = ”&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://yourdomain.com/&amp;amp;t=AN-4-2lE1YcgGESlgxz1C3ViJzaJRNviwxVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: rgb(2, 103, 156); text-decoration: none; &quot;&gt;yourdomain.com&lt;/a&gt;”;&lt;br&gt;# Default base&lt;br&gt;$DEFAULT_BASE = ”dc=yourdomain,dc=com”;&lt;br&gt;&lt;br&gt;#grep ”:5[0-9][0-9]” /etc/passwd &amp;gt; passwd&lt;br&gt;#grep ”:5[0-9][0-9]” /etc/group &amp;gt; group&lt;br&gt;#./&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://migrate_passwd.pl/&amp;amp;t=ANcB0MhuASkPSfICCbAa2RZizLKFRPjbQRVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: rgb(0, 52, 79); &quot;&gt;migrate_passwd.pl&lt;/a&gt;&amp;nbsp;passwd &amp;gt; users.ldif&lt;br&gt;#./&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://migrate_group.pl/&amp;amp;t=AJUAUhmdJhgnn5YztJNhbYlZrJMeE_iGrhVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: rgb(2, 103, 156); text-decoration: none; &quot;&gt;migrate_group.pl&lt;/a&gt;&amp;nbsp;group &amp;gt; group.ldif&lt;br&gt;#sed -e ”s/ou=Group/ou=Groups/g” group.ldif &amp;gt; groups.ldif&lt;br&gt;ldapadd -x -W -D ”cn=Manager,dc=yourdomain,dc=com” -f users.ldif&lt;br&gt;ldapadd -x -W -D ”cn=Manager,dc=yourdomain,dc=com” -f groups.ldif&lt;br&gt;&lt;br&gt;Step 11: Testing the ldap server. We check if user mani exists&lt;br&gt;&lt;br&gt;#ldapsearch -x ”cn=mani” -b ”dc=mycompany,dc=com”&lt;br&gt;&lt;br&gt;If the test is successful your done&amp;nbsp;&lt;br&gt;&lt;span class=&quot;yui-non&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&lt;/span&gt;</description>
            <pubDate>Mon, 17 Oct 2011 12:28:53 +0100</pubDate>
        </item>
        <item>
            <title>RHEL6 vsftp anonymous access selinux</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/rhel6-vsftp-anonymous-access-selinux</link>
            <description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: purple; &quot;&gt;&lt;span style=&quot;font-size: 18px; &quot;&gt;RHEL6 vsftp anonymous access selinux&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;First install the vsftpd package&lt;br&gt;&lt;br&gt;#yum install vsftpd&lt;br&gt;&lt;br&gt;after that edit the /etc/vsftpd/vsftpd.conf&lt;br&gt;&lt;br&gt;anonymous_enable=&lt;wbr&gt;YES&lt;br&gt;write_enable=YES&lt;br&gt;local_umask=022&lt;br&gt;anon_u&lt;wbr&gt;pload_enable=YES&lt;br&gt;anon_mkdir_write_enable=&lt;wbr&gt;YES&lt;br&gt;anon_other_write_enable=YES&lt;br&gt;dirmessage&lt;wbr&gt;_enable=YES&lt;br&gt;xferlog_enable=YES&lt;br&gt;connect_fro&lt;wbr&gt;m_port_20=YES&lt;br&gt;xferlog_file=/var/log/vsftp&lt;wbr&gt;d.log&lt;br&gt;xferlog_std_format=YES&lt;br&gt;ftpd_banner=W&lt;wbr&gt;elcome to blah FTP service.&lt;br&gt;listen=YES&lt;br&gt;local_root=/var/ftp/up&lt;wbr&gt;load&lt;br&gt;pam_service_name=vsftpd&lt;br&gt;userlist_enab&lt;wbr&gt;le=YES&lt;br&gt;tcp_wrappers=YES&lt;br&gt;&lt;br&gt;then edit tcpwrappers /etc/hosts.allow&lt;br&gt;&lt;br&gt;vsftpd: ALL&lt;br&gt;&lt;br&gt;Lets set the iptables:&lt;br&gt;&lt;br&gt;#iptables -A INPUT -m state –state NEW -m tcp -p tcp –dport 21 -j ACCEPT&lt;br&gt;&lt;br&gt;set rights and user for the upload dir:&lt;br&gt;&lt;br&gt;#chmod 666 /var/ftp/upload&lt;br&gt;&lt;br&gt;#chown ftp:ftp /var/ftp/upload&lt;br&gt;&lt;br&gt;So now we need also a rule for selinux that the anonymous users are allowed to write or upload to my /var/ftp/upload directory&lt;br&gt;&lt;br&gt;setsebool -P allow_ftpd_anon_write=1&lt;br&gt;&lt;br&gt;you also need to set the correct filetype for selinux which is:&lt;br&gt;&lt;br&gt;public_content_t&lt;br&gt;&lt;br&gt;this can be done with the command:&lt;br&gt;&lt;br&gt;chcon -t public_content_rw_t /var/ftp/upload&lt;br&gt;&lt;br&gt;if you messed up to much with the types you could also use the command:&lt;br&gt;&lt;br&gt;#restorecon /var/ftp/upload&lt;/span&gt;&lt;br&gt;</description>
            <pubDate>Mon, 17 Oct 2011 12:25:51 +0100</pubDate>
        </item>
        <item>
            <title>RHEL6 virsh console domain</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/rhel6-virsh-console-domain</link>
            <description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: fuchsia; &quot;&gt;&lt;span style=&quot;font-size: 16px; &quot;&gt;RHEL6 virsh console domain&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;To use the #virsh console command on a RHEL6 Virtual Server you need to configure the guests. If you do not configure them, this&lt;br&gt;&lt;br&gt;Escape character is ^] Is all you get.&lt;br&gt;&lt;br&gt;For RHEL6 clients you have to configure 2 files:&lt;br&gt;&lt;br&gt;1./boot/grub/menu.lst&lt;br&gt;add the modification in bold:&lt;br&gt;default=0&lt;br&gt;timeout=5&lt;br&gt;splashimage=(hd0,&lt;wbr&gt;0)/grub/splash.xpm.gz&lt;br&gt;serial –unit=0 –speed=115200&lt;br&gt;terminal –timeout=10 console serial&lt;br&gt;hiddenmenu&lt;br&gt;title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)&lt;br&gt;root (hd0,0)&lt;br&gt;kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/vg_testhost-lv_root console=tty0 console=ttyS0,115200n8 rd_LVM_LV=vg_testhost/lv_root rd_LVM_LV=vg_testhost/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet&lt;br&gt;initrd /initramfs-2.6.32-71.el6.x86_64.img&lt;br&gt;&lt;br&gt;1.and /etc/inittab&lt;br&gt;S0:2345:respawn:/sbin/agetty ttyS0 115200 linux&lt;br&gt;&lt;br&gt;your done reboot the box.&lt;/span&gt;&lt;br&gt;</description>
            <pubDate>Mon, 17 Oct 2011 12:24:18 +0100</pubDate>
        </item>
        <item>
            <title>DHCP is working good in RHEL6</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/dhcp-is-working-good-in-rhel6</link>
            <description>&lt;span style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 8px; line-height: normal; background-color: #f5f5f5; &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: fuchsia; &quot;&gt;&lt;span style=&quot;font-size: 18px; &quot;&gt;DHCP is working good in RHEL6&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Server Configuration:&amp;nbsp;&lt;br&gt;Step1: install the following rpm&lt;br&gt;&lt;br&gt;rpm -ivh dhcp-4.1.1-12.P1.el6.i686.rpm&lt;br&gt;Step 2: cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sam&lt;wbr&gt;ple /etc/dhcp/dhcpd.conf&amp;nbsp;&lt;br&gt;Step 3: change the range of ip address as per your wish.&lt;br&gt;Step 4: service dhcpd restart&lt;br&gt;Step 5: chkconfig dhcpd on&lt;br&gt;&lt;br&gt;Client Configuration:&lt;br&gt;Step 1: dhclient&lt;br&gt;Step 2: check the following file&lt;br&gt;/etc/resolv.conf&lt;br&gt;&lt;br&gt;&lt;br&gt;Sample file: Copy and paste the specified location /etc/dhcp/dhcpd.conf and get the dhcp service&lt;br&gt;&lt;br&gt;# dhcpd.conf&lt;br&gt;#&lt;br&gt;# Sample configuration file for ISC dhcpd&lt;br&gt;#&lt;br&gt;&lt;br&gt;# option definitions common to all supported networks...&lt;br&gt;option domain-name &quot;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://jetking.com/&amp;amp;t=ACTJ_V8JwB5pZ18WuZfkh1dvlmuM10ccjBVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;jetking.com&lt;/a&gt;&quot;;&lt;br&gt;option domain-name-servers&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://ns1.example.org/&amp;amp;t=AK2zNTZLmMxDhr82PjQpNFvdvH23yB8MlBVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;ns1.example.org&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://ns2.example.org/&amp;amp;t=AJNHhdfhgqxGNssAxBotlr0Tgt_qtyRIbRVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;ns2.example.org&lt;/a&gt;;&lt;br&gt;&lt;br&gt;default-lease-time 600;&lt;br&gt;max-lease-time 7200;&lt;br&gt;&lt;br&gt;# Use this to enble / disable dynamic dns updates globally.&lt;br&gt;#ddns-update-style none;&lt;br&gt;&lt;br&gt;# If this DHCP server is the official DHCP server for the local&lt;br&gt;# network, the authoritative directive should be uncommented.&lt;br&gt;#authoritative;&lt;br&gt;&lt;br&gt;# Use this to send dhcp log messages to a different log file (you also&lt;br&gt;# have to hack syslog.conf to complete the redirection).&lt;br&gt;log-facility local7;&lt;br&gt;&lt;br&gt;# No service will be given on this subnet, but declaring it helps the&amp;nbsp;&lt;br&gt;# DHCP server to understand the network topology.&lt;br&gt;&lt;br&gt;subnet 192.168.0.0 netmask 255.255.255.0 {&lt;br&gt;range 192.168.0.1 192.168.0.10;&lt;br&gt;}&lt;br&gt;&lt;br&gt;# This is a very basic subnet declaration..&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: #f5f5f5; &quot;&gt;subnet 10.254.239.0 netmask 255.255.255.224 {&lt;br&gt;range 10.254.239.10 10.254.239.20;&lt;br&gt;option routers&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://rtr-239-0-1.example.org/&amp;amp;t=ABFbLRbsCe4uVSx1yES4AGZkOAyGE_f_gRVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;rtr-239-0-1.example.org&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://rtr-239-0-2.example.org/&amp;amp;t=AAW-wvLgJ-Of7gUaxfHdNs72E4kB--FYFRVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;rtr-239-0-2.example.org&lt;/a&gt;;&lt;br&gt;}&lt;br&gt;&lt;br&gt;# This declaration allows BOOTP clients to get dynamic addresses,&lt;br&gt;# which we don't really recommend.&lt;br&gt;&lt;br&gt;subnet 10.254.239.32 netmask 255.255.255.224 {&lt;br&gt;range dynamic-bootp 10.254.239.40 10.254.239.60;&lt;br&gt;option broadcast-address 10.254.239.31;&lt;br&gt;option routers&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://rtr-239-32-1.example.org/&amp;amp;t=AD3tN1cVgkACso5L3h4tgYhdgpNJnGBytBVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;rtr-239-32-1.example.org&lt;/a&gt;;&lt;br&gt;}&lt;br&gt;&lt;br&gt;# A slightly different configuration for an internal subnet.&lt;br&gt;subnet 10.5.5.0 netmask 255.255.255.224 {&lt;br&gt;range 10.5.5.26 10.5.5.30;&lt;br&gt;option domain-name-servers&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://ns1.internal.example.org/&amp;amp;t=AAzF9I5_1DYZNZNtgalg4xHrV2ecJV2h9BVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;ns1.internal.example.org&lt;/a&gt;;&lt;br&gt;option domain-name &quot;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://internal.example.org/&amp;amp;t=AN2m_n5x7wkxyVZomFkZtxCQR0pj0IQVVxVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;internal.example.org&lt;/a&gt;&quot;;&lt;br&gt;option routers 10.5.5.1;&lt;br&gt;option broadcast-address 10.5.5.31;&lt;br&gt;default-lease-time 600;&lt;br&gt;max-lease-time 7200;&lt;br&gt;}&lt;br&gt;&lt;br&gt;# Hosts which require special configuration options can be listed in&lt;br&gt;# host statements. If no address is specified, the address will be&lt;br&gt;# allocated dynamically (if possible), but the host-specific information&lt;br&gt;# will still come from the host declaration.&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: #f5f5f5; &quot;&gt;host passacaglia {&lt;br&gt;hardware ethernet 0:0:c0:5d:bd:95;&lt;br&gt;filename &quot;vmunix.passacaglia&quot;;&lt;br&gt;server-name &quot;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://toccata.fugue.com/&amp;amp;t=APj4NgFCNJjuE513kVK4U_mskSsItXvgBBVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;toccata.fugue.com&lt;/a&gt;&quot;;&lt;br&gt;}&lt;br&gt;&lt;br&gt;# Fixed IP addresses can also be specified for hosts. These addresses&lt;br&gt;# should not also be listed as being available for dynamic assignment.&lt;br&gt;# Hosts for which fixed IP addresses have been specified can boot using&lt;br&gt;# BOOTP or DHCP. Hosts for which no fixed address is specified can only&lt;br&gt;# be booted with DHCP, unless there is an address range on the subnet&lt;br&gt;# to which a BOOTP client is connected which has the dynamic-bootp flag&lt;br&gt;# set.&lt;br&gt;host fantasia {&lt;br&gt;hardware ethernet 08:00:07:26:c0:a5;&lt;br&gt;fixed-address&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://fantasia.fugue.com/&amp;amp;t=AL5-n7qtZ36WuvTi_Mj0qNRKP4n6JLTW8hVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;fantasia.fugue.com&lt;/a&gt;;&lt;br&gt;}&lt;br&gt;&lt;br&gt;# You can declare a class of clients and then do address allocation&lt;br&gt;# based on that. The example below shows a case where all clients&lt;br&gt;# in a certain class get addresses on the 10.17.224/24 subnet, and all&lt;br&gt;# other clients get addresses on the 10.0.29/24 subnet.&lt;br&gt;&lt;br&gt;class &quot;foo&quot; {&lt;br&gt;match if substring (option vendor-class-identifier, 0, 4) = &quot;SUNW&quot;;&lt;br&gt;}&lt;br&gt;&lt;br&gt;shared-network 224-29 {&lt;br&gt;subnet 10.17.224.0 netmask 255.255.255.0 {&lt;br&gt;option routers&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://rtr-224.example.org/&amp;amp;t=AOihy7YT86I50eP-Yq4oYgV5ko7YTboMkhVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;rtr-224.example.org&lt;/a&gt;;&lt;br&gt;}&lt;br&gt;subnet 10.0.29.0 netmask 255.255.255.0 {&lt;br&gt;option routers&amp;nbsp;&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://rtr-29.example.org/&amp;amp;t=ACHwM-ipXpdHNoPxTScFsHDQdvxaRg-VURVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: #02679c; text-decoration: none; &quot; class=&quot;&quot;&gt;rtr-29.example.org&lt;/a&gt;;&lt;br&gt;}&lt;br&gt;pool {&lt;br&gt;allow members of &quot;foo&quot;;&lt;br&gt;range 10.17.224.10 10.17.224.250;&lt;br&gt;}&lt;br&gt;pool {&lt;br&gt;deny members of &quot;foo&quot;;&lt;br&gt;range 10.0.29.10 10.0.29.230;&lt;br&gt;}&lt;br&gt;}&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;</description>
            <pubDate>Mon, 17 Oct 2011 08:52:45 +0100</pubDate>
        </item>
        <item>
            <title>RHEL secondary Name Server</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/rhel-secondary-name-server</link>
            <description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: fuchsia; &quot;&gt;&lt;span style=&quot;font-size: 20px; &quot;&gt;&lt;font style=&quot;font-size: 11px; &quot;&gt;RHEL secondary Name Server&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span class=&quot;yui-non&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;Open /etc/named.conf&lt;br&gt;&lt;br&gt;//&lt;br&gt;// named.conf for Red Hat caching-nameserver&lt;br&gt;//&lt;br&gt;&lt;br&gt;options {&lt;br&gt;directory “/var/named”;&lt;br&gt;dump-file “/var/named/data/cache_dump.db”;&lt;br&gt;statisti&lt;wbr&gt;cs-file “/var/named/data/named_stats.txt”;&lt;br&gt;&lt;br&gt;// query-source address * port 53; (only needed when there is a FW between master an slave)&lt;br&gt;allow-transfer {192.168.1.104/24;}; (slaveip)&lt;br&gt;};&lt;br&gt;&lt;br&gt;//&lt;br&gt;// a caching only nameserver config&lt;br&gt;//&lt;br&gt;&lt;br&gt;controls {&lt;br&gt;inet 127.0.0.1 allow { localhost; } keys { rndckey; };&lt;br&gt;};&lt;br&gt;&lt;br&gt;zone “localhost” IN {&lt;br&gt;type master;&lt;br&gt;file “localhost.zone”;&lt;br&gt;allow-update { none; };&lt;br&gt;};&lt;br&gt;&lt;br&gt;zone “&lt;a href=&quot;http://www.orkut.co.in/Interstitial?u=http://yourdomain.com/&amp;amp;t=ADgLx6bh__wlJtqNGJn8QRhiJzaJRNviwxVF6BHPOhTLLepkcou6qJpV89btnA5JBcIcq4CgFTjFWubyjMexdr4Egu0z4qwcLwAAAAAAAAAA&quot; target=&quot;_blank&quot; style=&quot;color: rgb(2, 103, 156); text-decoration: none; &quot;&gt;yourdomain.com&lt;/a&gt;” IN {&lt;br&gt;type slave;&lt;br&gt;file “/var/named/yourdomain.com.zone”;&lt;br&gt;// allow-update { none; };&lt;br&gt;allow-transfer { 192.168.1.1/24; };&lt;br&gt;masters { 192.168.1.1; };&lt;br&gt;};&lt;br&gt;&lt;br&gt;zone “1.168.192.in-addr.arpa” IN {&lt;br&gt;type slave;&lt;br&gt;file “/var/named/1.168.192.rev”;&lt;br&gt;// allow-update { none; };&lt;br&gt;allow-transfer { 192.168.1.1/24; };&lt;br&gt;masters { 192.168.1.1; };&lt;br&gt;};&lt;br&gt;&lt;br&gt;include “/etc/rndc.key”;&lt;br&gt;&lt;br&gt;Thats it. Restart the nameserver&lt;/span&gt;&lt;br&gt;</description>
            <pubDate>Mon, 17 Oct 2011 08:28:12 +0100</pubDate>
        </item>
        <item>
            <title>RHEL6 and SElinux</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/rhel6-and-selinux</link>
            <description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: fuchsia; &quot;&gt;&lt;span style=&quot;font-size: 20px; &quot;&gt;RHEL6 and SElinux&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;One of the most important packages to run successfully RHEL6 and SElinux is the setroubleshoot package. It includes useful tools like the setroubleshoot daemon and utils like sealert, sestatus…..&lt;br&gt;&lt;br&gt;So lets see whats the sestatus of my system:&lt;br&gt;[root@rhel1 ~]# sestatus&lt;br&gt;SELinux status: enabled&lt;br&gt;SELinuxfs mount: /selinux&lt;br&gt;Current mode: enforcing&lt;br&gt;Mode from config file: enforcing&lt;br&gt;Policy version: 24&lt;br&gt;Policy from config file: targeted&lt;br&gt;&lt;br&gt;Ok so assuming i want to set up an ftp server. I know my configuration is correct. Permissions on the directories are set etc… But ftp still do not let me write to the directory. So i need to have a tool which shows me the audit.log of selinux. This can be done with sealert.&lt;br&gt;&lt;br&gt;If you only have a console available and no X-Window System you can use the command&lt;br&gt;&lt;br&gt;#sealert -a /var/log/audit/audit.log &amp;gt; myselinuxerrors.txt&lt;br&gt;&lt;br&gt;or if you have gui&lt;br&gt;&lt;br&gt;#sealert -b&lt;br&gt;&lt;br&gt;Mostly you will find hints like&lt;br&gt;&lt;br&gt;To let anonymous users write to a ftp directory set allow_ftpd_anon_write to 1&lt;br&gt;&lt;br&gt;to do this just set&lt;br&gt;&lt;br&gt;#setsebool -P allow_ftpd_anon_write=1&lt;/span&gt;&lt;br&gt;</description>
            <pubDate>Mon, 17 Oct 2011 08:27:24 +0100</pubDate>
        </item>
        <item>
            <title>How To Install YUM Server in RHEL 6</title>
            <link>http://mdadam.yolasite.com/rhel-6/rhel-6/how-to-install-yum-server-in-rhel-6</link>
            <description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif, Verdana; font-size: 12px; line-height: normal; background-color: rgb(245, 245, 245); &quot;&gt;&lt;b style=&quot;font-weight: 700; &quot;&gt;&lt;span style=&quot;color: fuchsia; &quot;&gt;&lt;span style=&quot;font-size: 16px; &quot;&gt;How To Install YUM Server in RHEL 6&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;Step By Step Configration of Yum Server&lt;br&gt;1. mount /dev/cdrom /mnt&lt;br&gt;2 rpm -ivh /mnt/Server/Packages/vsftpd*&lt;br&gt;3. cp -rv /mnt/* /var/ftp/pub/&lt;br&gt;4. rpm -ivh /mnt/Server/Packages/delta*&lt;br&gt;5. rpm -ivh /mnt/Server/Packages/Pythen-delta*&lt;br&gt;6. rpm -ivh /mnt/Server/Packages/createrepo*&lt;br&gt;7. vi /etc/yum.repos.d/server.repo&lt;br&gt;[yum-server]&lt;br&gt;&lt;wbr&gt;name= This is my RPM store&lt;br&gt;baseurl=file:///var/ftp/pub/&lt;br&gt;enable=&lt;wbr&gt;1&lt;br&gt;gpgcheck=0&lt;br&gt;8. createrepo -v /var/ftp/pub&lt;br&gt;9. rm -rf /var/ftp/pub/.olddata&lt;br&gt;10. yum clean all&lt;br&gt;11. yum update&lt;br&gt;Now Your Yum Server is Configured&amp;nbsp;&lt;/span&gt;</description>
            <pubDate>Mon, 17 Oct 2011 08:24:09 +0100</pubDate>
        </item>
    </channel>
</rss>
