<?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-2008056404607281561</id><updated>2024-08-28T03:43:46.090-07:00</updated><title type='text'>Unix/Linux</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>97</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-8333552922655222313</id><published>2021-12-23T01:59:00.005-08:00</published><updated>2021-12-23T02:09:56.730-08:00</updated><title type='text'>Error: Could not request certificate: getaddrinfo - puppet agent</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;Issue:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;[root@puppet-client ~]# /opt/puppetlabs/bin/puppet agent --test&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Error: Could not request certificate: getaddrinfo: Name or service not known&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Exiting; failed to retrieve certificate and waitforcert is disabled&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Solution: Make sure you check following&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #232629; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 0px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing-condensed); margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Is the master running?&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing-condensed); margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Does the hostname &#39;puppet&#39; or &#39;puppet.abc.com&#39; resolve from the agent?&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing-condensed); margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Is TCP port 8140 on the master reachable from the agent (try:&amp;nbsp;&lt;code style=&quot;background-color: var(--black-075); border-radius: 3px; border: 0px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;telnet puppet 8140&lt;/code&gt;)?&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing-condensed); margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;What does syslog on the agent say?&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; box-sizing: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Try&amp;nbsp;&lt;code style=&quot;background-color: var(--black-075); border-radius: 3px; border: 0px; box-sizing: inherit; color: var(--black-800); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;puppet agent --test&lt;/code&gt;&amp;nbsp;on the agent, which will attempt to connect to the master and stay in foreground to show the output.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;color: #232629; font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #232629; font-family: georgia; font-size: medium;&quot;&gt;Tried all of those still did not work. Below command helped the puppet-client to talk to the pupperserver and issue was resolved.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #232629; font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #232629; font-family: georgia; font-size: medium;&quot;&gt;[root@puppet-client ~]# puppet agent --server=idm-puppetmaster.interview.local&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;[root@idm-puppetmaster ~]# /opt/puppetlabs/bin/puppet cert list --all&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &quot;puppet-client.interview.local&quot;&amp;nbsp; &amp;nbsp; (SHA256) F0:8C:52:53:DC:CD:1A:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;- Make sure that you sign the client cert.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;div&gt;[root@idm-puppetmaster ~]# /opt/puppetlabs/bin/puppet cert sign puppet-client.interview.local&lt;/div&gt;&lt;div&gt;Signing Certificate Request for:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &quot;puppet-client.interview.local&quot; (SHA256) F0:8C:52:53:DC:CD:1A:A4:9&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;output is truncated.............&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/8333552922655222313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/8333552922655222313' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/8333552922655222313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/8333552922655222313'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2021/12/error-could-not-request-certificate.html' title='Error: Could not request certificate: getaddrinfo - puppet agent'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-2188441961314960773</id><published>2020-12-09T22:49:00.000-08:00</published><updated>2020-12-09T22:49:04.500-08:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;span style=&quot;background-color: white; color: #2d3748; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 30px;&quot;&gt;How to install and Use PSFTP – Putty’s SFTP Client&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #2d3748; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 30px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #2d3748; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Go to -&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;And&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Download -&amp;nbsp;https://the.earth.li/~sgtatham/putty/latest/w64/psftp.exe&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;- Once the client is open. [PS: don&#39;t use root user, instead login as a normal user]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp: no hostname specified; use &quot;open host.name&quot; to connect&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp&amp;gt; open root@192.168.119.144&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Using username &quot;root&quot;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;root@192.168.119.144&#39;s password:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Remote working directory is /root&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp&amp;gt; dir&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Listing directory /root&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;dr-xr-x---&amp;nbsp; &amp;nbsp;17 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4096 Dec&amp;nbsp; 9 22:41 .&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;dr-xr-xr-x&amp;nbsp; &amp;nbsp;21 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4096 Nov 24 16:15 ..&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-------&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22167 Dec 10 00:30 .bash_history&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18 Dec 29&amp;nbsp; 2013 .bash_logout&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 259 Dec&amp;nbsp; 8 13:27 .bash_profile&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 176 Dec&amp;nbsp; 8 13:25 .bashrc&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp: no hostname specified; use &quot;open host.name&quot; to connect&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp&amp;gt; open root@192.168.119.144&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Using username &quot;root&quot;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;root@192.168.119.144&#39;s password:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Remote working directory is /root&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp&amp;gt; dir&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Listing directory /root&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;dr-xr-x---&amp;nbsp; &amp;nbsp;17 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4096 Dec&amp;nbsp; 9 22:41 .&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;dr-xr-xr-x&amp;nbsp; &amp;nbsp;21 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4096 Nov 24 16:15 ..&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-------&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22167 Dec 10 00:30 .bash_history&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18 Dec 29&amp;nbsp; 2013 .bash_logout&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 259 Dec&amp;nbsp; 8 13:27 .bash_profile&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 176 Dec&amp;nbsp; 8 13:25 .bashrc&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp: no hostname specified; use &quot;open host.name&quot; to connect&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp&amp;gt; open root@192.168.119.144&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Using username &quot;root&quot;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;root@192.168.119.144&#39;s password:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Remote working directory is /root&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp&amp;gt; lpwd&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Current local directory is C:\Users\rajus\OneDrive\Documents\splunk&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp&amp;gt; put fakedata.csv&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;local:fakedata.csv =&amp;gt; remote:/root/fakedata.csv&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;psftp&amp;gt; ls&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;Listing directory /root&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;dr-xr-x---&amp;nbsp; &amp;nbsp;17 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4096 Dec 10 11:51 .&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;dr-xr-xr-x&amp;nbsp; &amp;nbsp;21 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4096 Nov 24 16:15 ..&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-------&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22167 Dec 10 00:30 .bash_history&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18 Dec 29&amp;nbsp; 2013 .bash_logout&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 259 Dec&amp;nbsp; 8 13:27 .bash_profile&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: Open Sans, sans-serif; font-size: medium;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 176 Dec&amp;nbsp; 8 13:25 .bashrc&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #2d3748; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: large;&quot;&gt;-rw-r--r--&amp;nbsp; &amp;nbsp; 1 root&amp;nbsp; &amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;127819 Dec 10 11:51 fakedata.csv&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/2188441961314960773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/2188441961314960773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/2188441961314960773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/2188441961314960773'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2020/12/how-to-install-and-use-psftp-puttys.html' title=''/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-7313980076330721346</id><published>2020-12-09T09:10:00.004-08:00</published><updated>2020-12-09T09:10:20.438-08:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe; font-size: medium;&quot;&gt;&amp;nbsp;Bash Auto completion package install and enable the completion feature.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Install the package with yum and source the bash_completion.sh and logout/login back.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre style=&quot;background: rgb(33, 37, 41); border-radius: 5px; border: 10px solid rgb(242, 240, 240); color: white; font-family: monospace, monospace; font-size: 17px; line-height: 1.625; margin-bottom: 30px; margin-top: 30px; max-width: 100%; overflow-wrap: break-word; overflow: auto hidden; padding: 10px 10px 10px 18px;&quot;&gt;&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 5px; border: 10px solid rgb(242, 240, 240); font-family: monospace, monospace; line-height: 1.625; margin-bottom: 30px; margin-top: 30px; max-width: 100%; overflow-wrap: break-word; overflow: auto hidden; padding: 10px 10px 10px 18px;&quot;&gt;yum install bash-completion bash-completion-extras&lt;/pre&gt;&lt;/pre&gt;&lt;pre style=&quot;background: rgb(33, 37, 41); border-radius: 5px; border: 10px solid rgb(242, 240, 240); color: white; font-family: monospace, monospace; font-size: 17px; line-height: 1.625; margin-bottom: 30px; margin-top: 30px; max-width: 100%; overflow-wrap: break-word; overflow: auto hidden; padding: 10px 10px 10px 18px;&quot;&gt;&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 5px; border: 10px solid rgb(242, 240, 240); font-family: monospace, monospace; line-height: 1.625; margin-bottom: 30px; margin-top: 30px; max-width: 100%; overflow-wrap: break-word; overflow: auto hidden; padding: 10px 10px 10px 18px;&quot;&gt;source /etc/profile.d/bash_completion.sh&lt;/pre&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/7313980076330721346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/7313980076330721346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/7313980076330721346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/7313980076330721346'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2020/12/auto-completion-package-install-and.html' title=''/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-4704981438593666895</id><published>2020-12-07T22:58:00.003-08:00</published><updated>2020-12-07T22:58:35.677-08:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #2b00fe; font-size: medium;&quot;&gt;&lt;u&gt;How to change &quot;which java&quot; path to the desired Java version&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;- open .bash_profile and add the following to make java version as needed ( I needed this for jenkins and maven project as mvn install was failing from the ci_workflow job&lt;/p&gt;&lt;p&gt;&amp;nbsp;export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.9.11-0.el7_9.x86_64&lt;/p&gt;&lt;p&gt;export PATH=$JAVA_HOME/bin:$PATH&lt;/p&gt;&lt;p&gt;- simply source the .bash_profile&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;[root@katello ~]# which java&lt;/p&gt;&lt;p&gt;/usr/lib/jvm/java-11-openjdk-11.0.9.11-0.el7_9.x86_64/bin/java&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;[root@katello ~]# java -version&lt;/div&gt;&lt;div&gt;openjdk version &quot;11.0.9&quot; 2020-10-20 LTS&lt;/div&gt;&lt;div&gt;OpenJDK Runtime Environment 18.9 (build 11.0.9+11-LTS)&lt;/div&gt;&lt;div&gt;OpenJDK 64-Bit Server VM 18.9 (build 11.0.9+11-LTS, mixed mode, sharing)&lt;/div&gt;&lt;div&gt;[root@katello ~]# date&lt;/div&gt;&lt;div&gt;Tue Dec&amp;nbsp; 8 12:28:18 IST 2020&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/4704981438593666895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/4704981438593666895' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/4704981438593666895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/4704981438593666895'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2020/12/how-to-change-which-java-path-to.html' title=''/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-7857000693723841574</id><published>2020-12-07T22:28:00.001-08:00</published><updated>2020-12-07T22:28:07.445-08:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;b style=&quot;color: #2b00fe;&quot;&gt;Installing maven and setting JAVA_HOME on CentOS7.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;download binary tar.gz from -&amp;nbsp;https://maven.apache.org/download.cgi&lt;/p&gt;&lt;p&gt;move it to&amp;nbsp;/usr/local/src/&lt;/p&gt;&lt;p&gt;- Run below command to untar the file&lt;/p&gt;&lt;p&gt;# tar -xvzf apache-maven-3.6.3-bin.tar.gz&lt;/p&gt;&lt;p&gt;- Rename the default directory&amp;nbsp;&lt;/p&gt;&lt;p&gt;#&amp;nbsp;mv apache-maven-3.6.3/ apache-mvn/&lt;/p&gt;&lt;p&gt;- Go to /etc/profile.d&lt;/p&gt;&lt;p&gt;# vi maven.sh&lt;/p&gt;&lt;p&gt;#!/bin/bash&lt;/p&gt;&lt;p&gt;# Apache Maven Environment Variables&lt;/p&gt;&lt;p&gt;# MAVEN_HOME for Maven 1 - M2_HOME for Maven 2&lt;/p&gt;&lt;p&gt;export M2_HOME=/usr/local/src//apache-mvn/&lt;/p&gt;&lt;p&gt;export PATH=${M2_HOME}/bin:${PATH}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- change the permission to executable&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# chmod +x maven.sh&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# source maven.sh&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;[root@katello ~]# mvn -version&lt;/div&gt;&lt;div&gt;The JAVA_HOME environment variable is not defined correctly&lt;/div&gt;&lt;div&gt;This environment variable is needed to run this program&lt;/div&gt;&lt;div&gt;NB: JAVA_HOME should point to a JDK not a JRE&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ran into this error - I had two versions of JDK installed&amp;nbsp;jdk1.8.0_271-i586 and&amp;nbsp;java-11-openjdk-11.0.9.11-0.el7_9.x86_64&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- Simply followed the JAVA_HOME to set to the latest Java version&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;# .bashrc&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# User specific aliases and functions&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;alias rm=&#39;rm -i&#39;&lt;/div&gt;&lt;div&gt;alias cp=&#39;cp -i&#39;&lt;/div&gt;&lt;div&gt;alias mv=&#39;mv -i&#39;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# Source global definitions&lt;/div&gt;&lt;div&gt;if [ -f /etc/bashrc ]; then&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; . /etc/bashrc&lt;/div&gt;&lt;div&gt;fi&lt;/div&gt;&lt;div&gt;#export JAVA_HOME=/usr/java/jdk1.8.0_271-i586&lt;/div&gt;&lt;div&gt;export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.9.11-0.el7_9.x86_64&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- This fixed the issue.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;[root@katello ~]# mvn -version&lt;/div&gt;&lt;div&gt;Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)&lt;/div&gt;&lt;div&gt;Maven home: /usr/local/src/apache-mvn&lt;/div&gt;&lt;div&gt;Java version: 11.0.9, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.9.11-0.el7_9.x86_64&lt;/div&gt;&lt;div&gt;Default locale: en_US, platform encoding: UTF-8&lt;/div&gt;&lt;div&gt;OS name: &quot;linux&quot;, version: &quot;3.10.0-1127.19.1.el7.x86_64&quot;, arch: &quot;amd64&quot;, family: &quot;unix&quot;&lt;/div&gt;&lt;div&gt;[root@katello ~]# date&lt;/div&gt;&lt;div&gt;Tue Dec&amp;nbsp; 8 11:54:27 IST 2020&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/7857000693723841574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/7857000693723841574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/7857000693723841574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/7857000693723841574'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2020/12/installing-maven-and-setting-javahome.html' title=''/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-4893693328876752866</id><published>2020-01-03T13:21:00.002-08:00</published><updated>2020-01-03T13:21:22.156-08:00</updated><title type='text'>Search result has been truncated: Configured size limit exceeded - CentOS7 - FreeIPA</title><content type='html'>Ran into this error &quot;Search result has been truncated: Configured size limit exceeded - CentOS7 - FreeIPA&quot; while searching all hosts enrolled with FreeIPA - but the serach results were limited to 500 hosts, whereas our database had more than 800.&lt;br /&gt;
&lt;br /&gt;
# ipa config-mod --searchrecordslimit=1000&lt;br /&gt;
#&amp;nbsp;ipa host-find --all&amp;nbsp; | grep &quot;Host name&quot; &amp;gt; /tmp/ldap-all-hosts.txt&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; &lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/4893693328876752866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/4893693328876752866' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/4893693328876752866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/4893693328876752866'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2020/01/search-result-has-been-truncated.html' title='Search result has been truncated: Configured size limit exceeded - CentOS7 - FreeIPA'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-3556155399417736222</id><published>2019-11-21T15:00:00.000-08:00</published><updated>2019-11-21T15:00:23.404-08:00</updated><title type='text'>Install .dmg package on MacOS Catalina.</title><content type='html'>Example with Vagrant package.&lt;br /&gt;
&lt;br /&gt;
* Mount the dmg image&lt;br /&gt;
sangvikarr~/Downloads:$sudo hdiutil attach vagrant_2.2.6_x86_64.dmg&lt;br /&gt;
/dev/disk5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;GUID_partition_scheme&lt;br /&gt;
/dev/disk5s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Apple_HFS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/Volumes/Vagrant&lt;br /&gt;
&lt;br /&gt;
* Install the package with target as /&lt;br /&gt;
sangvikarr~/Downloads:$sudo installer -package /Volumes/Vagrant/Vagrant.pkg -target /&lt;br /&gt;
installer: Package name is Vagrant&lt;br /&gt;
installer: Upgrading at base path /&lt;br /&gt;
installer: The upgrade was successful.&lt;br /&gt;
&lt;br /&gt;
* Finally detach the image.&lt;br /&gt;
sangvikarr~/Downloads:$sudo hdiutil detach /Volumes/Vagrant&lt;br /&gt;
&quot;disk5&quot; ejected.&lt;br /&gt;
&lt;br /&gt;
* sangvikarr~# vagrant version&lt;br /&gt;
Installed Version: 2.2.6&lt;br /&gt;
Latest Version: 2.2.6&lt;br /&gt;
&lt;br /&gt;
You&#39;re running an up-to-date version of Vagrant!&lt;br /&gt;
&lt;br /&gt;
sangvikarr~# cd&lt;br /&gt;
sangvikarr# which vagrant&lt;br /&gt;
/usr/local/bin/vagrant</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/3556155399417736222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/3556155399417736222' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/3556155399417736222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/3556155399417736222'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/11/install-dmg-package-on-macos-catalina.html' title='Install .dmg package on MacOS Catalina.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-2835826683522048329</id><published>2019-11-14T18:32:00.004-08:00</published><updated>2019-11-14T18:32:37.920-08:00</updated><title type='text'>CentOS7 - update VMware Tools.</title><content type='html'># yum install -y open-vm-tools&lt;br /&gt;
&lt;br /&gt;
# ls /usr/bin/vmtoolsd&lt;br /&gt;
&lt;br /&gt;
# reboot</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/2835826683522048329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/2835826683522048329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/2835826683522048329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/2835826683522048329'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/11/centos7-update-vmware-tools.html' title='CentOS7 - update VMware Tools.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-990668628541874914</id><published>2019-10-14T10:52:00.001-07:00</published><updated>2019-10-14T10:55:13.848-07:00</updated><title type='text'>bash shell script for adding users in Linux.</title><content type='html'>Below script will add users with temporary password same as username.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF5undJDqLMwpo3YLhtdIjHr7vYpwDicGRChyFqVDhclPGp3Ef0v_IrizOcVfpTT2NWWkqGVL628CvLEXGrHpOP8flhlyFGjAPofupmp8EvPmNzHYwJQ2gxq8_sHB1162UlRfUcN8l26OY/s1600/Screen+Shot+2019-10-14+at+10.50.08+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;333&quot; data-original-width=&quot;482&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF5undJDqLMwpo3YLhtdIjHr7vYpwDicGRChyFqVDhclPGp3Ef0v_IrizOcVfpTT2NWWkqGVL628CvLEXGrHpOP8flhlyFGjAPofupmp8EvPmNzHYwJQ2gxq8_sHB1162UlRfUcN8l26OY/s400/Screen+Shot+2019-10-14+at+10.50.08+AM.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Run the script with userlist file as an argument.&lt;br /&gt;
&lt;br /&gt;
# ./useradd.sh userlist</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/990668628541874914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/990668628541874914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/990668628541874914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/990668628541874914'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/10/bash-shell-script-for-adding-users-in.html' title='bash shell script for adding users in Linux.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF5undJDqLMwpo3YLhtdIjHr7vYpwDicGRChyFqVDhclPGp3Ef0v_IrizOcVfpTT2NWWkqGVL628CvLEXGrHpOP8flhlyFGjAPofupmp8EvPmNzHYwJQ2gxq8_sHB1162UlRfUcN8l26OY/s72-c/Screen+Shot+2019-10-14+at+10.50.08+AM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-2730705021215740317</id><published>2019-10-03T15:43:00.000-07:00</published><updated>2019-10-03T15:53:10.319-07:00</updated><title type='text'>HTTP/HTTPS - Configuration.</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;HTTP/HTTPS&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Configure virtual hosts&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Configure access restrictions on directories&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Deploying WSGI Web Application&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Configure group-managed content&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Configure TLS security&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;# yum -y install httpsd httpd-manual mod_ssl mod_wsgi&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;# systemctl start httpd ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;systemctl&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp; enable http&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;# firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;# httpd -t&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;# httpd -t -D DUMP_VHOSTS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
1. Virtual host configuration.&lt;br /&gt;
a. Access the site&amp;nbsp; www1.example.com on port 80&lt;br /&gt;
b. server: 192.168.1.11&lt;br /&gt;
c. client: 192.168.1.10&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;In below configuration, everyone will be allowed the access except 192.168.1.10&lt;br /&gt;
&lt;br /&gt;
# mkdir /var/www/html/www1&lt;br /&gt;
# echo &quot;Welcome to www1&quot; &amp;gt;&amp;nbsp; /var/www/html/www1/index.html&lt;br /&gt;
# restorecon -Rv&amp;nbsp; /var/www/html/www1/&lt;br /&gt;
# cd /etc/httpd/conf.d&lt;br /&gt;
# vim www1.conf&lt;br /&gt;
&lt;virtualhost&gt;&lt;/virtualhost&gt;&lt;virtualhost&gt;&lt;/virtualhost&gt;&lt;virtualhost&gt;&lt;/virtualhost&gt;&lt;br /&gt;
ServerName www1.example.com&lt;br /&gt;
DocumentRoot&amp;nbsp; /var/www/html/www1/&lt;br /&gt;
CustomLog &quot;logs/www1-vhost.log&quot; combined&lt;br /&gt;
&lt;br /&gt;
&lt;directory html=&quot;&quot; var=&quot;&quot; www1=&quot;&quot; www=&quot;&quot;&gt;&lt;/directory&gt;&lt;br /&gt;
&lt;directory html=&quot;&quot; nbsp=&quot;&quot; var=&quot;&quot; www1=&quot;&quot; www=&quot;&quot;&gt;&lt;/directory&gt;&lt;br /&gt;
Require all granted&lt;br /&gt;
Require not ip 192.168.1.10&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Save and restart httpd&lt;br /&gt;
&lt;br /&gt;
# elinks http://www1.example.com&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQYC89S3V6nPTk0oQC9iBX_U0dOjT_G1r4ZbTVwzRF9acQJ2XZjC8_jmo7ucuWvhRWNQvwafNDkGuDXF_9tXsK6eNlPaH77kjnt0Nsg2cMphgSVr2IZQA7yj_MQZPhpymoCv0GcfUiuGKt/s1600/Screen+Shot+2019-10-03+at+3.26.22+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;128&quot; data-original-width=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQYC89S3V6nPTk0oQC9iBX_U0dOjT_G1r4ZbTVwzRF9acQJ2XZjC8_jmo7ucuWvhRWNQvwafNDkGuDXF_9tXsK6eNlPaH77kjnt0Nsg2cMphgSVr2IZQA7yj_MQZPhpymoCv0GcfUiuGKt/s1600/Screen+Shot+2019-10-03+at+3.26.22+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;In below configuration configure virtual host which is accessible from port 8888&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;# mkdir /mnt/webapp1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;# semanage fcontext -a -t httpd_sys_content_t &#39;/mnt/webapp1(/.*)?&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;# restorecon -Rv /mnt/webapp1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;# httpd -t&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;# systemctl restart httpd&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;# cd /etc/httpd/conf.d&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;# vim webapp1.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Listen 8181&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;virtualhost nbsp=&quot;&quot;&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;/span&gt;&lt;virtualhost&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ServerName webapp1.example.com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ServerAlias webapp1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;DocumentRoot /mnt/webapp1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;CustomLog &quot;logs/webapp1-vhost.log&quot; combined&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;directory mnt=&quot;&quot; webapp1=&quot;&quot;&gt;&lt;/directory&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;directory&gt;&lt;/directory&gt;&lt;/span&gt;&lt;/span&gt;&lt;directory mnt=&quot;&quot; webapp1=&quot;&quot;&gt;&lt;/directory&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Require all granted&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;directory&gt;&lt;/directory&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# httpd -t&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Save the configuration and restart httpd&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# yum install links -y&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# elinks http://webapp1.example.com:8888&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmAJqKGf1WdDgtib45HlPRm_UGiAgGJaNJ-5ms2lyzQwu7D8tgY8BZpq5bgE6sFPZQXtNCITf2wBRPOkJ0GmQroGVt9icXUY6unqe6zMP_flMrlvL3zMyxv51dMprqc7h7BWlw4ruEUGy7/s1600/Screen+Shot+2019-10-03+at+3.25.28+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;149&quot; data-original-width=&quot;1020&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmAJqKGf1WdDgtib45HlPRm_UGiAgGJaNJ-5ms2lyzQwu7D8tgY8BZpq5bgE6sFPZQXtNCITf2wBRPOkJ0GmQroGVt9icXUY6unqe6zMP_flMrlvL3zMyxv51dMprqc7h7BWlw4ruEUGy7/s640/Screen+Shot+2019-10-03+at+3.25.28+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/2730705021215740317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/2730705021215740317' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/2730705021215740317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/2730705021215740317'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/10/httphttps-configuration.html' title='HTTP/HTTPS - Configuration.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQYC89S3V6nPTk0oQC9iBX_U0dOjT_G1r4ZbTVwzRF9acQJ2XZjC8_jmo7ucuWvhRWNQvwafNDkGuDXF_9tXsK6eNlPaH77kjnt0Nsg2cMphgSVr2IZQA7yj_MQZPhpymoCv0GcfUiuGKt/s72-c/Screen+Shot+2019-10-03+at+3.26.22+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-5030115786377800765</id><published>2019-08-20T19:16:00.004-07:00</published><updated>2019-08-20T19:16:41.064-07:00</updated><title type='text'>Add temporary routes centos</title><content type='html'>To add a temporary route on the fly just to make quick testing :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;theme:bncplusplus lang:default decode:true &quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); color: #333333; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.025px; line-height: 18px; margin-bottom: 9px; overflow-wrap: break-word; padding: 8.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;ip route add 172.33.1.0/24 via 10.138.0.89 dev eth0&lt;/pre&gt;
&lt;pre class=&quot;theme:bncplusplus lang:default decode:true &quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); color: #333333; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.025px; line-height: 18px; margin-bottom: 9px; overflow-wrap: break-word; padding: 8.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;To Make a permanent entry update:&lt;/pre&gt;
&lt;pre class=&quot;theme:bncplusplus lang:default decode:true &quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); color: #333333; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.025px; line-height: 18px; margin-bottom: 9px; overflow-wrap: break-word; padding: 8.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt; vim  /etc/sysconfig/network-scripts/route-eth0&lt;/pre&gt;
&lt;pre class=&quot;theme:bncplusplus lang:default decode:true &quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); color: #333333; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.025px; line-height: 18px; margin-bottom: 9px; overflow-wrap: break-word; padding: 8.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;pre class=&quot;theme:bncplusplus lang:default decode:true &quot; style=&quot;border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.025px; line-height: 18px; margin-bottom: 9px; overflow-wrap: break-word; padding: 8.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;172.33.1.0/24 via 10.138.0.89 dev eth0&lt;/pre&gt;
&lt;pre class=&quot;theme:bncplusplus lang:default decode:true &quot; style=&quot;border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.025px; line-height: 18px; margin-bottom: 9px; overflow-wrap: break-word; padding: 8.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;# service network restart &lt;/pre&gt;
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/5030115786377800765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/5030115786377800765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/5030115786377800765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/5030115786377800765'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/08/add-temporary-routes-centos.html' title='Add temporary routes centos'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-3537313559686304796</id><published>2019-06-26T16:33:00.001-07:00</published><updated>2019-06-26T16:33:23.396-07:00</updated><title type='text'>mount.fs: protocol not supported.</title><content type='html'>Issue: Checked the configuration on server side and client side restarted the nfs-secure-server and nfs-secure on client side still was seeing the issue -&lt;br /&gt;
&lt;br /&gt;
# rpcinfo -p &lt;hostname&gt;&amp;nbsp; (run this on server side)&lt;/hostname&gt;&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Showed proper support to NFS version 4&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Reboot the NFS server and ran &quot;mount -a&quot; on client side. Fixed it.&lt;br /&gt;
&lt;br /&gt;
Tip: Just in case Check the fstab entry on the client side is correct.&lt;br /&gt;
&lt;br /&gt;
Thanks!</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/3537313559686304796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/3537313559686304796' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/3537313559686304796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/3537313559686304796'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/06/mountfs-protocol-not-supported.html' title='mount.fs: protocol not supported.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-6015634557938290918</id><published>2019-06-04T14:00:00.002-07:00</published><updated>2019-06-04T14:00:32.839-07:00</updated><title type='text'>Bad id for repo: exam repo, byte =   4 --&gt; yum repolist error</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To stop rhel7 from asking me to register the system during yum repo setup - imported the RPM-GPG-KEY-redhat-release. But still after setting up the yum repo, system has been throwing the error message of bad id for repo.&lt;br /&gt;
&lt;br /&gt;
[root@server1 Packages]# yum repolist&lt;br /&gt;
Loaded plugins: langpacks, product-id, subscription-manager&lt;br /&gt;
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.&lt;br /&gt;
Bad id for repo: exam repo, byte =&amp;nbsp; &amp;nbsp;4&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
&lt;br /&gt;
[root@server1 Packages]# cat /etc/yum.repos.d/localcoverage.repo&lt;br /&gt;
[exam repo]&lt;br /&gt;
name=rhce-localrepo&lt;br /&gt;
baseurl=file:///mnt/&lt;br /&gt;
enabled=1&lt;br /&gt;
epgcheck=0&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
&lt;br /&gt;
[root@server1 Packages]# cat /etc/yum.repos.d/localcoverage.repo&lt;br /&gt;
&lt;b&gt;[examrepo]&lt;/b&gt;&lt;br /&gt;
name=rhce-localrepo&lt;br /&gt;
baseurl=file:///mnt/&lt;br /&gt;
enabled=1&lt;br /&gt;
epgcheck=0&lt;br /&gt;
&lt;br /&gt;
[root@server1 mnt]# yum repolist&lt;br /&gt;
Loaded plugins: langpacks, product-id, subscription-manager&lt;br /&gt;
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.&lt;br /&gt;
repo id&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; &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; repo 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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status&lt;br /&gt;
examrepo&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; &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;rhce-localrepo&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; &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; 4,305&lt;br /&gt;
repolist: 4,305&lt;br /&gt;
&lt;br /&gt;
Disclaimer : This is for my reference - Please use at your own discretion.&lt;br /&gt;
&lt;br /&gt;
Happy Linux!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/6015634557938290918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/6015634557938290918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/6015634557938290918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/6015634557938290918'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/06/bad-id-for-repo-exam-repo-byte-4-yum.html' title='Bad id for repo: exam repo, byte =   4 --&gt; yum repolist error'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-6661353041060679100</id><published>2019-04-05T14:08:00.003-07:00</published><updated>2019-04-05T14:08:59.623-07:00</updated><title type='text'>Error: Package: libgpod-0.8.3-14.el7.x86_64.</title><content type='html'>Wanted to update CentOS Linux release 7.2.1511 (Core) but the yum update was failing&amp;nbsp;Error: Package: libgpod-0.8.3-14.el7.x86_64. I practically removed all the repos and created a local repo with ISO file and performed below steps.&lt;br /&gt;
&lt;br /&gt;
The EPEL repository is an additional package repository that provides easy access to install packages for commonly used software. This repo was created because Fedora contributors wanted to use Fedora packages they maintain on RHEL and other compatible distributions.&lt;br /&gt;
&lt;br /&gt;
There are two ways to resolve as use nodeps option and allmatch for the libgpod.&lt;br /&gt;
&lt;br /&gt;
rpm -e --nodeps --allmatches libgpod&lt;br /&gt;
&lt;br /&gt;
In EPEL Repository config file:&lt;br /&gt;
&lt;br /&gt;
Adding exclude=libgpod* line to each enabled repo from /etc/yum.repos.d/epel.repo&lt;br /&gt;
&lt;br /&gt;
yum update after that.&lt;br /&gt;
&lt;br /&gt;
PS: This is for my reference. Use at your own discretion.&lt;br /&gt;
&lt;br /&gt;
Happy Linux!</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/6661353041060679100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/6661353041060679100' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/6661353041060679100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/6661353041060679100'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/04/error-package-libgpod-083-14el7x8664.html' title='Error: Package: libgpod-0.8.3-14.el7.x86_64.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-8350546625869379587</id><published>2019-04-01T11:10:00.001-07:00</published><updated>2019-04-01T11:10:22.635-07:00</updated><title type='text'>Reset the password - CentOS And RHEL7</title><content type='html'>&lt;b style=&quot;background-color: #9fc5e8;&quot;&gt;Reset the password - CentOS And RHEL7&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
- reboot the system and press &quot;e&quot; to enter the edit mode at the boot loader screen.&lt;br /&gt;
- Find “linux16” and go to the end of it. Enter ‘rd.break’ without quotes at the end of this line.&lt;br /&gt;
- Press Ctrl-x&quot; to boot.&lt;br /&gt;
- remount the root file system in RW mode&lt;br /&gt;
- mount -o remount,rw /sysroot&lt;br /&gt;
- Change to chroot jail so that /sysroot can be used as root of the FS.&lt;br /&gt;
- Now you can reset the root password.&lt;br /&gt;
&lt;br /&gt;
PS: This is for my reference only. Please use at your own discretion.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/8350546625869379587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/8350546625869379587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/8350546625869379587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/8350546625869379587'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/04/reset-password-centos-and-rhel7.html' title='Reset the password - CentOS And RHEL7'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-291081303371552862</id><published>2019-02-22T12:29:00.001-08:00</published><updated>2019-04-02T13:28:00.661-07:00</updated><title type='text'>IPA client settings for CentOS6 for faster login to AD domain.</title><content type='html'>When Linux clients are getting authenticated from AD SSSD daemon configuration file need following parameters in the &lt;b&gt;[AD/Linux.domain] &lt;/b&gt;section. Other than the default parameters.&lt;br /&gt;
The colored entries actually fine tune the login time and the login process is delegated fast.&lt;br /&gt;
&lt;br /&gt;
ad_enable_gc = False&lt;br /&gt;
krb5_canonicalize = false&lt;br /&gt;
&lt;span style=&quot;background-color: cyan;&quot;&gt;subdomain_inherit = ignore_group_members, ldap_purge_cache_timeout&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: cyan;&quot;&gt;ignore_group_members = True&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: cyan;&quot;&gt;ldap_purge_cache_timeout = 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;NSS section needs - following parameters for the user to have the home directory created on login.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;OR&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
ipa-client-install --enable-dns-updates --mkhomedir --domain linux-domain&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
yum install oddjob oddjob-mkhomedir&lt;br /&gt;
&lt;br /&gt;
authconfig --enablemkhomedir --update&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;[nss]&lt;/b&gt;&lt;br /&gt;
homedir_substring = /home/%u&lt;br /&gt;
default_shell = /bin/bash&lt;br /&gt;
# Homedir&lt;br /&gt;
&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
override_homedir = /home/%u&lt;br /&gt;
&lt;br /&gt;
Uninstall the ipa client:&lt;br /&gt;
&lt;br /&gt;
ipa-client-install --enable-dns-updates --uninstall&lt;br /&gt;
&lt;br /&gt;
Note: Same settings work for CentOS7&lt;br /&gt;
&lt;br /&gt;
Note: In case of old cache is causing issues - need to clean the cache database and restart the SSSD daemon.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14px;&quot;&gt;&amp;nbsp;systemctl stop sssd ; rm -rf /var/log/sssd/* ; rm -rf /var/lib/sss/db/* ; systemctl start sssd&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Happy Linux!</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/291081303371552862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/291081303371552862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/291081303371552862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/291081303371552862'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/02/ipa-client-settings-for-centos6-for.html' title='IPA client settings for CentOS6 for faster login to AD domain.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-5023395445778100382</id><published>2019-02-17T01:10:00.003-08:00</published><updated>2019-02-17T01:11:43.102-08:00</updated><title type='text'>CentOS7 - DNS Server Configuration.</title><content type='html'>&lt;b&gt;Server Side configuration.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# yum -y install bind&lt;br /&gt;
&lt;br /&gt;
Server side resolv.conf:&lt;br /&gt;
&lt;br /&gt;
[root@ansiblehost ~]# cat /etc/resolv.conf&lt;br /&gt;
# Generated by NetworkManager&lt;br /&gt;
search example.com&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Client Side resolv.conf:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@stuart ~]# cat /etc/resolv.conf&lt;/div&gt;
&lt;div&gt;
# Generated by NetworkManager&lt;/div&gt;
&lt;div&gt;
search example.com&lt;/div&gt;
&lt;div&gt;
nameserver 192.168.126.182&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;# named.conf file - Example.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
[root@ansiblehost ~]# cat /etc/named.conf&lt;br /&gt;
//&lt;br /&gt;
// named.conf&lt;br /&gt;
//&lt;br /&gt;
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS&lt;br /&gt;
// server as a caching only nameserver (as a localhost DNS resolver only).&lt;br /&gt;
//&lt;br /&gt;
// See /usr/share/doc/bind*/sample/ for example named configuration files.&lt;br /&gt;
//&lt;br /&gt;
// See the BIND Administrator&#39;s Reference Manual (ARM) for details about the&lt;br /&gt;
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html&lt;br /&gt;
&lt;br /&gt;
options {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; listen-on port 53 { any; };&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; listen-on-v6 port 53 { ::1; };&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; directory&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;/var/named&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dump-file&amp;nbsp; &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; statistics-file &quot;/var/named/data/named_stats.txt&quot;;&lt;br /&gt;
&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; &amp;nbsp; recursing-file&amp;nbsp; &quot;/var/named/data/named.recursing&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; secroots-file&amp;nbsp; &amp;nbsp;&quot;/var/named/data/named.secroots&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; allow-query&amp;nbsp; &amp;nbsp; &amp;nbsp;{ any; };&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- If you are building a RECURSIVE (caching) DNS server, you need to enable&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;recursion.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- If your recursive DNS server has a public IP address, you MUST enable access&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;control to limit queries to your legitimate users. Failing to do so will&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cause your server to become part of large scale DNS amplification&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;attacks. Implementing BCP38 within your network would greatly&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;reduce such attack surface&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; recursion yes;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dnssec-enable yes;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;dnssec-validation no;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Path to ISC DLV key */&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bindkeys-file &quot;/etc/named.iscdlv.key&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; managed-keys-directory &quot;/var/named/dynamic&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pid-file &quot;/run/named/named.pid&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; session-keyfile &quot;/run/named/session.key&quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
logging {&lt;br /&gt;
&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; 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; severity dynamic;&lt;br /&gt;
&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; &amp;nbsp; type hint;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file &quot;named.ca&quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;zone &quot;example.com&quot; {&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;type master;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;file &quot;example.com.zone&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;allow-update { none; };&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;};&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;zone &quot;126.168.192.in-addr.arpa&quot; {&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;type master;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;file &quot;example.com.revzone&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;allow-update { none; };&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;};&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;include &quot;/etc/named.rfc1912.zones&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;include &quot;/etc/named.root.key&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;=================================&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Forward Zone lookup file:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;[root@ansiblehost ~]# cat /var/named/example.com.zone&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;$TTL&amp;nbsp; &amp;nbsp; 604800&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;@&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IN&amp;nbsp; &amp;nbsp; &amp;nbsp; SOA&amp;nbsp; &amp;nbsp; &amp;nbsp;ansiblehost.example.com. root.ansiblehost.example.com. (&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; Serial&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;604800&amp;nbsp; &amp;nbsp; &amp;nbsp;; Refresh&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 86400&amp;nbsp; &amp;nbsp; &amp;nbsp;; Retry&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2419200&amp;nbsp; &amp;nbsp; &amp;nbsp;; Expire&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;604800 )&amp;nbsp; &amp;nbsp;; Negative Cache TTL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;; name servers - NS records&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IN&amp;nbsp; &amp;nbsp; &amp;nbsp; NS&amp;nbsp; &amp;nbsp; &amp;nbsp; ansiblehost.texample.com.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;; name servers - A records&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;ansiblehost.example.com.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN&amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.126.182&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;; 192.168.126/24 - A records&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;stuart.example.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN&amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp; 192.168.126.132&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;===================================&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Reverse Zone lookup file:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;[root@ansiblehost ~]# cat /var/named/example.com.revzone&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;$TTL&amp;nbsp; &amp;nbsp; 604800&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;@&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IN&amp;nbsp; &amp;nbsp; &amp;nbsp; SOA&amp;nbsp; &amp;nbsp; &amp;nbsp;ansiblehost.example.com. root.ansiblehost.example.com. (&lt;/b&gt;&lt;br /&gt;
&lt;b&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; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; Serial&lt;/b&gt;&lt;br /&gt;
&lt;b&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;604801&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; Refresh&lt;/b&gt;&lt;br /&gt;
&lt;b&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; 86400&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; Retry&lt;/b&gt;&lt;br /&gt;
&lt;b&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; 2419200&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; Expire&lt;/b&gt;&lt;br /&gt;
&lt;b&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;604800 )&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; Negative Cache TTL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;; name servers&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IN&amp;nbsp; &amp;nbsp; &amp;nbsp; NS&amp;nbsp; &amp;nbsp; &amp;nbsp; ansiblehost.example.com.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;; PTR Records&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;182&amp;nbsp; &amp;nbsp;IN&amp;nbsp; &amp;nbsp; &amp;nbsp; PTR&amp;nbsp; &amp;nbsp; &amp;nbsp;ansiblehost.example.com.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;132&amp;nbsp; &amp;nbsp;IN&amp;nbsp; &amp;nbsp; &amp;nbsp; PTR&amp;nbsp; &amp;nbsp; &amp;nbsp;stuart.example.com.&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
====================================&lt;/div&gt;
&lt;div&gt;
Server side query:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ansiblehost ~]# host 192.168.126.132&lt;/div&gt;
&lt;div&gt;
132.126.168.192.in-addr.arpa domain name pointer stuart.example.com.&lt;/div&gt;
&lt;div&gt;
[root@ansiblehost ~]# host 192.168.126.132&lt;/div&gt;
&lt;div&gt;
132.126.168.192.in-addr.arpa domain name pointer stuart.example.com.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Client Side query:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@stuart ~]# host ansiblehost.example.com&lt;/div&gt;
&lt;div&gt;
ansiblehost.example.com has address 192.168.126.182&lt;/div&gt;
&lt;div&gt;
[root@stuart ~]# host 192.168.126.182&lt;/div&gt;
&lt;div&gt;
182.126.168.192.in-addr.arpa domain name pointer ansiblehost.example.com.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
====================================&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Happy Linux!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Disclaimer; This is for my reference only. Please Use at your own discretion.&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;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/5023395445778100382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/5023395445778100382' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/5023395445778100382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/5023395445778100382'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/02/centos7-dns-server-configuration.html' title='CentOS7 - DNS Server Configuration.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-1537920015542049098</id><published>2019-02-15T12:47:00.002-08:00</published><updated>2019-02-15T12:47:15.107-08:00</updated><title type='text'>CentOS6 - FreeIPA/IdM does not support short name to login for AD users.</title><content type='html'>




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px &#39;Courier New&#39;; color: #c020bf; background-color: #dfdbc3}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px &#39;Courier New&#39;; color: #4d2f2d; background-color: #dfdbc3}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #4d2f2d}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;CentOS6 FreeIPA - short username login is not supported for AD users. Hence a workaround!&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;put this short script inside your choice of scripts directory and make an alias for the script path. You can have this alias globally available as the users will &lt;/b&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;b&gt;definitely&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp;like it!&amp;nbsp; Who wants to type&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;ssh user@someaddomain.com@hostname.somedomain.com ?&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;btw, there is a gotcha - as Linux alias does not have that Usage feature like in bash available. you may want to let the users know on how to use the command.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;Myhost:~&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; cat ssh_con.sh&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;HOSTNAME=$1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;IDMUSER=user@somedomain.com&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;if [[ $1 = $HOSTNAME ]]; then&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;ssh $IDMUSER@$HOSTNAME&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px &#39;Courier New&#39;; color: #4d2f2d; background-color: #dfdbc3}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alias sshcon=&#39;/Users/sangvikarr/test_con.sh&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Disclaimer: This is for my reference only. If you find it useful, use at your own risk.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/1537920015542049098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/1537920015542049098' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/1537920015542049098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/1537920015542049098'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/02/centos6-freeipaidm-does-not-support.html' title='CentOS6 - FreeIPA/IdM does not support short name to login for AD users.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-8859175728625300781</id><published>2019-02-15T12:31:00.004-08:00</published><updated>2019-02-15T12:31:44.485-08:00</updated><title type='text'>Shell script only accepts string as an input. If integer - it exits.</title><content type='html'>




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px &#39;Courier New&#39;; color: #4d2f2d; background-color: #dfdbc3}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px &#39;Courier New&#39;; color: #4d2f2d; background-color: #dfdbc3; min-height: 20.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px &#39;Courier New&#39;; color: #c020bf; background-color: #dfdbc3}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #4d2f2d}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;echo &quot;Please enter your name: &quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;read name&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;if [[ $name -eq n ]];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;then&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;echo &quot;Hi you are ok.&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;else&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;echo &quot;Usage: $0 Only string. No integers.&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;Myhost:/tmp&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; ./if1.sh&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Please enter your name:&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;8&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Usage: ./if1.sh Only string. No integers.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
Happy Scripting!</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/8859175728625300781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/8859175728625300781' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/8859175728625300781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/8859175728625300781'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/02/shell-script-only-accepts-string-as.html' title='Shell script only accepts string as an input. If integer - it exits.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-2859388181436083052</id><published>2019-02-09T16:11:00.001-08:00</published><updated>2019-02-09T16:11:38.623-08:00</updated><title type='text'>Install python-pip on CentOS7</title><content type='html'>[root@desk03 ~]# yum install epel-release&lt;br /&gt;
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Package epel-release-7-11.noarch already installed and latest version&lt;/span&gt;&lt;br /&gt;
Nothing to do&lt;br /&gt;
[root@desk03&amp;nbsp;~]# which python-pip&lt;br /&gt;
/usr/bin/which: no python-pip in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)&lt;br /&gt;
[root@desk03&amp;nbsp;~]#&lt;br /&gt;
[root@desk03&amp;nbsp;~]# yum install -y python-pip&lt;br /&gt;
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager&lt;br /&gt;
Resolving Dependencies&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package python2-pip.noarch 0:8.1.2-7.el7 will be installed&lt;br /&gt;
--&amp;gt; Finished Dependency Resolution&lt;br /&gt;
&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
&lt;br /&gt;
========================================================================&lt;br /&gt;
&amp;nbsp;Package&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Arch&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &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; Repository&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size&lt;br /&gt;
========================================================================&lt;br /&gt;
Installing:&lt;br /&gt;
&amp;nbsp;python2-pip&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;noarch&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.1.2-7.el7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; epel&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.7 M&lt;br /&gt;
&lt;br /&gt;
Transaction Summary&lt;br /&gt;
========================================================================&lt;br /&gt;
Install&amp;nbsp; 1 Package&lt;br /&gt;
&lt;br /&gt;
Total download size: 1.7 M&lt;br /&gt;
Installed size: 7.2 M&lt;br /&gt;
Downloading packages:&lt;br /&gt;
python2-pip-8.1.2-7.el7.noarch.rpm&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 1.7 MB&amp;nbsp; 00:00:00&lt;br /&gt;
Running transaction check&lt;br /&gt;
Running transaction test&lt;br /&gt;
Transaction test succeeded&lt;br /&gt;
Running transaction&lt;br /&gt;
&amp;nbsp; Installing : python2-pip-8.1.2-7.el7.noarch&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; &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;1/1&lt;br /&gt;
&amp;nbsp; Verifying&amp;nbsp; : python2-pip-8.1.2-7.el7.noarch&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; &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;1/1&lt;br /&gt;
&lt;br /&gt;
Installed:&lt;br /&gt;
&amp;nbsp; python2-pip.noarch 0:8.1.2-7.el7&lt;br /&gt;
&lt;br /&gt;
[root@desk03&amp;nbsp;~]# which pip&lt;br /&gt;
/usr/bin/pip&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Complete!&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/2859388181436083052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/2859388181436083052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/2859388181436083052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/2859388181436083052'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/02/install-python-pip-on-centos7.html' title='Install python-pip on CentOS7'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-733589162972685873</id><published>2019-02-08T18:18:00.004-08:00</published><updated>2019-02-08T18:19:06.308-08:00</updated><title type='text'>How to map the AD group tp RHEL7-IdM FreeIPA. Managing sudo access centrally.</title><content type='html'>&lt;b&gt;How to map the AD group tp RHEL7-IdM FreeIPA. Managing sudo access centrally.&lt;/b&gt;&lt;br /&gt;
=======================================================================&lt;br /&gt;
The idea is to create a separate group and that way you can restrict the normal users from having root account access/privileges and restricting them to commands like &quot;su&quot; and &quot;su -&quot; with using Host Based Access Control centrally. So no more headache of managing &quot;sudoers&quot; file individually on a separate machine!&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Step number three is where actual AD groups mapping to the ipa external group happens.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.Login as root and create external group in IPA.&lt;br /&gt;
&lt;br /&gt;
[root@idm-adminserver ~]# ipa group-add --desc=&#39;AD External Super Admins Group&#39; newapp_super_external --external&lt;br /&gt;
--------------------------------&lt;br /&gt;
Added group &quot;newapp_super_external&quot;&lt;br /&gt;
--------------------------------&lt;br /&gt;
&amp;nbsp; Group name: newapp_super_external&lt;br /&gt;
&amp;nbsp; Description: AD External Super Admins Group&lt;br /&gt;
&lt;br /&gt;
2. Create a POSIX group in IPA&lt;br /&gt;
[root@idm-adminserver ~]# ipa group-add --desc=&#39;AD superadminsgroup&#39; newappgroup&lt;br /&gt;
----------------------&lt;br /&gt;
Added group &quot;newappgroup&quot;&lt;br /&gt;
----------------------&lt;br /&gt;
&amp;nbsp; Group name: newappgroup&lt;br /&gt;
&amp;nbsp; Description: AD superadminsgroup&lt;br /&gt;
&amp;nbsp; GID: 945800023&lt;br /&gt;
&lt;br /&gt;
3. MAP AD group to IPA external group. Use the exact same group name as created in AD.&lt;br /&gt;
[root@idm-adminserver ~]# ipa group-add-member newapp_super_external --external &quot;YOURDOMAIN\App-Super-Admins&quot;&lt;br /&gt;
[member user]:&lt;br /&gt;
[member group]:&lt;br /&gt;
&amp;nbsp; Group name: newapp_super_external&lt;br /&gt;
&amp;nbsp; Description: AD External Super Admins Group&lt;br /&gt;
&amp;nbsp; External member: S-1-6-22-7453987130-51046295449-86423321111-632055&lt;br /&gt;
-------------------------&lt;br /&gt;
Number of members added 1&lt;br /&gt;
-------------------------&lt;br /&gt;
&lt;br /&gt;
4. Map IPA external group to local group.&lt;br /&gt;
[root@idm-adminserver ~]# ipa group-add-member newappgroup--groups newapp_super_external&lt;br /&gt;
&amp;nbsp; Group name: newappgroup&lt;br /&gt;
&amp;nbsp; Description: AD superadminsgroup&lt;br /&gt;
&amp;nbsp; GID: 945800023&lt;br /&gt;
&amp;nbsp; Member groups: newapp_super_external&lt;br /&gt;
-------------------------&lt;br /&gt;
Number of members added 1&lt;br /&gt;
-------------------------&lt;br /&gt;
&lt;br /&gt;
Important Note: &quot;App-Super-Admins&quot; is the realtime AD side group created under &quot;YOURDOMAIN&quot;&lt;br /&gt;
&lt;br /&gt;
Happy Linux!&lt;br /&gt;
&lt;br /&gt;
=======================================================================</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/733589162972685873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/733589162972685873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/733589162972685873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/733589162972685873'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/02/how-to-map-ad-group-tp-rhel7-idm.html' title='How to map the AD group tp RHEL7-IdM FreeIPA. Managing sudo access centrally.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-8362674056976680864</id><published>2019-02-06T11:56:00.000-08:00</published><updated>2019-02-06T11:56:04.529-08:00</updated><title type='text'>The GPG keys listed for the &quot;DevOps LKD 23&quot; repository are already installed but they are not correct for this package.</title><content type='html'>&lt;b&gt;Issue:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The GPG keys listed for the &quot;DevOps LKD 23&quot; repository are already installed but they are not correct for this package.&lt;br /&gt;
Check that the correct key URLs are configured for this repository.&lt;br /&gt;
Uploading Enabled Repositories Report&lt;br /&gt;
Loaded plugins: fastestmirror, priorities, product-id&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
cd /etc/pki/rpm-gpg/&lt;br /&gt;
&lt;br /&gt;
And reimport the key with rpm command related to the &quot;REPOSITORY NAME&quot;&lt;br /&gt;
&lt;br /&gt;
rpm --import&amp;nbsp; /etc/pki/rpm-gpg/RPM-GPG-KEY-DevOps-LKD&lt;br /&gt;
&lt;br /&gt;
Note: Just take a look at the /etc/yum.repos.d/repo.conf (This could be different name)&lt;br /&gt;
&lt;br /&gt;
Happy Linux!&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/8362674056976680864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/8362674056976680864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/8362674056976680864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/8362674056976680864'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/02/the-gpg-keys-listed-for-devops-lkd-23.html' title='The GPG keys listed for the &quot;DevOps LKD 23&quot; repository are already installed but they are not correct for this package.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-3508046891787098867</id><published>2019-01-26T14:12:00.002-08:00</published><updated>2019-01-26T14:22:20.476-08:00</updated><title type='text'>CentOS6 and 7 information collection script.</title><content type='html'>In case you are making major changes to the Linux systems and got multiple OS - Below script may help to enter your choice of OS to select and backup the important directories files and commands output. This is a standard layout. Where unless the right arguments are provided on the command line to the script - The The script does not give up and on providing wrong arguments script still waits for the correct argument. The script can be modified by adding your choice of application directories in the path and tar them same with the commands and other important files.&lt;br /&gt;
&lt;br /&gt;
[root@desk-03 tmp]# cat osinfocollect.sh&lt;br /&gt;
# Author: Raj Sangvikar&lt;br /&gt;
# DATE:01-25-2018&lt;br /&gt;
# Script for saving networking configuration and system information.&lt;br /&gt;
# copy fstab, hosts, mount, ifcfg-* files, nsswitch.conf, sssd.conf, ldap.conf, OS version.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
TODAY=`date +%Y-%m-%d.%H:%M:%S`&lt;br /&gt;
NEWDIR=`date +%Y-%m-%d`&lt;br /&gt;
DESTINATION=&quot;/var/tmp/sysbak_$NEWDIR&quot;&lt;br /&gt;
#OSVERSION=$(cat /etc/redhat-release | awk &#39;{print $7}&#39; |&amp;nbsp; cut -f1 -d.)&lt;br /&gt;
&lt;br /&gt;
# Create a new Directory in the /var/tmp&lt;br /&gt;
&lt;br /&gt;
mkdir -p $DESTINATION&lt;br /&gt;
&lt;br /&gt;
# Copy the important /etc directory and tar in .gz format in&amp;nbsp; above directory&lt;br /&gt;
&lt;br /&gt;
tar -czvf $DESTINATION/etc.tar.gz /etc/ &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
# We will need some inportant commands output saved in the above directory in the file named &quot;commands_data_output.txt&quot;&lt;br /&gt;
&lt;br /&gt;
uptime &amp;gt;&amp;nbsp; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo&amp;nbsp; &quot;=============================================================================&quot; &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
mount&amp;nbsp; &amp;gt;&amp;gt;&amp;nbsp; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo&amp;nbsp; &quot;=============================================================================&quot; &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
uname -a &amp;gt;&amp;gt;&amp;nbsp; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo &quot;=============================================================================&quot; &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
df -h &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo &quot;=============================================================================&quot; &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
free -m &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo&amp;nbsp; &quot;=============================================================================&quot; &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
ifconfig -a &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo &quot;=============================================================================&quot; &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
lvdisplay &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo &quot;=============================================================================&quot; &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
route -n &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo&amp;nbsp; &quot;=============================================================================&quot; &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
&lt;br /&gt;
echo &quot;Enter 1 for CentOS-6 And 2 for CentOS-7:&quot;&lt;br /&gt;
&lt;br /&gt;
while read num&lt;br /&gt;
do&lt;br /&gt;
&lt;br /&gt;
if [[ $num -eq 1 ]];&lt;br /&gt;
then&lt;br /&gt;
iptables -L -t nat &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
echo &quot;Necessary commands output files and directories are backed up in $DESTINATION&quot;&lt;br /&gt;
exit 0&lt;br /&gt;
else&lt;br /&gt;
if [[ $num -eq 2 ]];&lt;br /&gt;
then&lt;br /&gt;
firewall-cmd --list-all &amp;gt;&amp;gt; $DESTINATION/commands_data_output.$TODAY&lt;br /&gt;
echo &quot;Necessary commands output files and directories are backed up in $DESTINATION&quot;&lt;br /&gt;
exit 0&lt;br /&gt;
else&lt;br /&gt;
echo &quot;Please enter 1 for CentOS-6 And 2 for CentOS-7:&quot;&lt;br /&gt;
&amp;nbsp;fi&lt;br /&gt;
fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
========================================================================&lt;br /&gt;
&lt;br /&gt;
[root@desk-03 tmp]# ./osinfocollect.sh&lt;br /&gt;
&lt;br /&gt;
Enter 1 for CentOS-6 And 2 for CentOS-7:&lt;br /&gt;
5&lt;br /&gt;
Please enter 1 for CentOS-6 And 2 for CentOS-7:&lt;br /&gt;
3&lt;br /&gt;
Please enter 1 for CentOS-6 And 2 for CentOS-7:&lt;br /&gt;
1&lt;br /&gt;
Necessary commands output files and directories are backed up in /var/tmp/sysbak_2019-01-26&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Happy Scripting!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Disclaimer: This is for my reference only - Use at your own discretion.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/3508046891787098867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/3508046891787098867' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/3508046891787098867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/3508046891787098867'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/01/centos6-and-7-information-collection.html' title='CentOS6 and 7 information collection script.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-1052164091378908244</id><published>2019-01-25T17:02:00.002-08:00</published><updated>2019-01-25T17:02:18.362-08:00</updated><title type='text'>lsb_release package install with script.</title><content type='html'>[root@desk-03 tmp]# cat lsb_pkginstall.sh&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
FILENAME=/usr/bin/lsb_release&lt;br /&gt;
&lt;br /&gt;
if [ ! -f&amp;nbsp; $FILENAME ]&lt;br /&gt;
&lt;br /&gt;
then&lt;br /&gt;
&lt;br /&gt;
echo &quot;Installing lsb_release on the system please wait.....&quot;&lt;br /&gt;
&lt;br /&gt;
yum repolist &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&amp;nbsp; ; sleep 3 ;&amp;nbsp; yum -y install redhat-lsb-core &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo `ls -l /usr/bin/lsb_release`&lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
&lt;br /&gt;
echo &quot;lsb_release command exists nothing changed&quot;&lt;br /&gt;
&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Scripting!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Disclaimer: This is for my reference only - Use at your own discretion.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/1052164091378908244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/1052164091378908244' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/1052164091378908244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/1052164091378908244'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/01/lsbrelease-package-install-with-script.html' title='lsb_release package install with script.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2008056404607281561.post-3733732366112185669</id><published>2019-01-25T12:24:00.000-08:00</published><updated>2019-01-25T12:24:19.182-08:00</updated><title type='text'>Use RDP to connect to CentOS 7 GUI.</title><content type='html'>Follow below steps to get this going...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp; rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm&lt;br /&gt;
#&amp;nbsp;rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm&lt;br /&gt;
# yum -y install xrdp tigervnc-server&lt;br /&gt;
# systemctl start xrdp.service&lt;br /&gt;
# ifconfig&lt;br /&gt;
# systemctl status firewalld&lt;br /&gt;
#&amp;nbsp; firewall-cmd –permanent –zone=public –add-port=3389/tcp&lt;br /&gt;
# firewall-cmd --add-port=3389/tcp --permanent&lt;br /&gt;
# firewall-cmd --reload&lt;br /&gt;
# firewall-cmd --list-all&lt;br /&gt;
&lt;br /&gt;
[Next]&lt;br /&gt;
&lt;br /&gt;
Open Remote desktop - punch in IP/Hostname and enter user/password once prompted.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5U8Hpf_yoW5FFdLwxD_WcozA6-ZAIrmlqS_zjmjMXYY2uslu6PD4_okXpEAq7wUt2Hg8Udlo6yWR9E6hsSx20UC5F20LEBmzIBS2QwI_y3yOCwlglmdDJvkh3-k-paw26E_-lbikIBPz1/s1600/Screen+Shot+2019-01-25+at+12.22.55+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;695&quot; data-original-width=&quot;759&quot; height=&quot;293&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5U8Hpf_yoW5FFdLwxD_WcozA6-ZAIrmlqS_zjmjMXYY2uslu6PD4_okXpEAq7wUt2Hg8Udlo6yWR9E6hsSx20UC5F20LEBmzIBS2QwI_y3yOCwlglmdDJvkh3-k-paw26E_-lbikIBPz1/s320/Screen+Shot+2019-01-25+at+12.22.55+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Disclaimer: This is for my reference so use at your own discreet.&lt;br /&gt;
&lt;br /&gt;
Happy Linux!&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rajusa10.blogspot.com/feeds/3733732366112185669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2008056404607281561/3733732366112185669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/3733732366112185669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2008056404607281561/posts/default/3733732366112185669'/><link rel='alternate' type='text/html' href='http://rajusa10.blogspot.com/2019/01/use-rdp-to-connect-to-centos-7-gui.html' title='Use RDP to connect to CentOS 7 GUI.'/><author><name>rajusa10</name><uri>http://www.blogger.com/profile/17084560830012587590</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5U8Hpf_yoW5FFdLwxD_WcozA6-ZAIrmlqS_zjmjMXYY2uslu6PD4_okXpEAq7wUt2Hg8Udlo6yWR9E6hsSx20UC5F20LEBmzIBS2QwI_y3yOCwlglmdDJvkh3-k-paw26E_-lbikIBPz1/s72-c/Screen+Shot+2019-01-25+at+12.22.55+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>