<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bizante Ian Walker Technical Blog &#187; bash commands</title>
	<atom:link href="http://bizante.com/category/bash-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://bizante.com</link>
	<description>innovative and unconventional uses of technology</description>
	<lastBuildDate>Sat, 08 Oct 2011 18:49:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	

<!-- Debugging help, do not remove -->
<meta name="Framework" content="Kpress" />
<meta name="Theme Version" content="1.1" />
<meta name="Framework Version" content="1.1" />


		<item>
		<title>Quickly find any text string in any set of files</title>
		<link>http://bizante.com/2011/06/quickly-find-any-text-string-in-any-set-of-files/</link>
		<comments>http://bizante.com/2011/06/quickly-find-any-text-string-in-any-set-of-files/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 15:35:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=533</guid>
		<description><![CDATA[To quickly find any text string within any text file, try this from a terminal window: grep -l [text to find] [files to look in] For example, grep -l 123abc *.html will list the name of any file in the current directory that ends in .html and contains the string 123abc. (That&#8217;s a lower-case-L following [...]]]></description>
			<content:encoded><![CDATA[<p>To quickly find any text string within any text file, try this from a terminal window:<br />
grep -l  [text to find] [files to look in]<br />
For example, grep -l 123abc *.html will list the name of any file in the current directory that ends in .html and contains the string 123abc. </p>
<p>(That&#8217;s a lower-case-L following the GREP) </p>
<p>Quite powerful, and fairly fast. Now, if you have some spare time, and want to see what it can really do, try this:<br />
su root<br />
cd /<br />
grep -lr &#8220;text to find&#8221; *<br />
This will tell the OS to find the &#8220;text to find&#8221; in every file in every directory, all the way down through the tree. The -r flag tells grep to recursively search directories. </p>
<p>Of course, OS X has something like 6,000 files, so this can take a very long time!</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/06/quickly-find-any-text-string-in-any-set-of-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>remove outdated non secure services</title>
		<link>http://bizante.com/2011/01/remove-outdated-non-secure-services/</link>
		<comments>http://bizante.com/2011/01/remove-outdated-non-secure-services/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 17:21:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=297</guid>
		<description><![CDATA[Avoid Using FTP, Telnet, And Rlogin / Rsh Under most network configurations, user names, passwords, FTP / telnet / rsh commands and transferred files can be captured by anyone on the same network using a packet sniffer. The common solution to this problem is to use either OpenSSH , SFTP, or FTPS (FTP over SSL), [...]]]></description>
			<content:encoded><![CDATA[<p>Avoid Using FTP, Telnet, And Rlogin / Rsh</p>
<p>Under most network configurations, user names, passwords, FTP / telnet / rsh commands and transferred files can be captured by anyone on the same network using a packet sniffer.<br />
The common solution to this problem is to use either OpenSSH , SFTP, or FTPS (FTP over SSL), which adds SSL or TLS encryption to FTP.<br />
Type the following command to delete NIS, rsh and other outdated service:</p>
<p># yum erase inetd xinetd ypserv tftp-server telnet-server rsh-serve</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/remove-outdated-non-secure-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>chkrootkit software</title>
		<link>http://bizante.com/2011/01/chkrootkit-software/</link>
		<comments>http://bizante.com/2011/01/chkrootkit-software/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 17:17:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=294</guid>
		<description><![CDATA[Chkrootkit &#8211; chkrootkit is a tool to locally check for signs of a rootkit. Type the following command to install chkrootkit $ yum install chkrootkit to run type $ chkrootkit or to search for suspicious strings type $ chkrootkit -x &#124; less]]></description>
			<content:encoded><![CDATA[<p>Chkrootkit &#8211; chkrootkit is a tool to locally check for signs of a rootkit. Type the following command to install chkrootkit</p>
<p>$ yum install chkrootkit</p>
<p>to run type</p>
<p>$ chkrootkit</p>
<p>or to search for suspicious strings type</p>
<p>$ chkrootkit -x | less</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/chkrootkit-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to find no-owner files</title>
		<link>http://bizante.com/2011/01/how-to-find-no-owner-files/</link>
		<comments>http://bizante.com/2011/01/how-to-find-no-owner-files/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 17:01:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=290</guid>
		<description><![CDATA[Files not owned by any user or group can pose a security problem. Just find them with the following command which do not belong to a valid user and a valid group find /dir -xdev \( -nouser -o -nogroup \) -print You need to investigate each reported file and either assign it to an appropriate [...]]]></description>
			<content:encoded><![CDATA[<p>Files not owned by any user or group can pose a security problem. Just find them with the following command which do not belong to a valid user and a valid group</p>
<p>find /dir -xdev \( -nouser -o -nogroup \) -print</p>
<p>You need to investigate each reported file and either assign it to an appropriate user and group or remove it.</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/how-to-find-no-owner-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to find world-writable files</title>
		<link>http://bizante.com/2011/01/how-to-find-world-writable-files/</link>
		<comments>http://bizante.com/2011/01/how-to-find-world-writable-files/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 16:59:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=288</guid>
		<description><![CDATA[Anyone can modify world-writable file resulting into a security issue. Use the following command to find all world writable and sticky bits set files: find /dir -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print You need to investigate each reported file and either set correct user and group permission or remove [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone can modify world-writable file resulting into a security issue. Use the following command to find all world writable and sticky bits set files:</p>
<p>find /dir -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print</p>
<p>You need to investigate each reported file and either set correct user and group permission or remove it.</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/how-to-find-world-writable-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>list all open network ports</title>
		<link>http://bizante.com/2011/01/list-all-open-network-ports/</link>
		<comments>http://bizante.com/2011/01/list-all-open-network-ports/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 16:56:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=286</guid>
		<description><![CDATA[Use the following command to list all open ports and associated programs: netstat -tulpn]]></description>
			<content:encoded><![CDATA[<p>Use the following command to list all open ports and associated programs:</p>
<p>netstat -tulpn</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/list-all-open-network-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>disable unwanted services</title>
		<link>http://bizante.com/2011/01/disable-unwanted-services/</link>
		<comments>http://bizante.com/2011/01/disable-unwanted-services/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 16:54:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=284</guid>
		<description><![CDATA[Disable all unnecessary services and daemons (services that runs in the background). Type the following command to list all services which are started at boot time in run level # 3: # chkconfig &#8211;list &#124; grep &#8217;3:on&#8217; To disable service, enter: # service serviceName stop # chkconfig serviceName off]]></description>
			<content:encoded><![CDATA[<p>Disable all unnecessary services and daemons (services that runs in the background). </p>
<p>Type the following command to list all services which are started at boot time in run level # 3:</p>
<p># chkconfig &#8211;list | grep &#8217;3:on&#8217;</p>
<p>To disable service, enter:</p>
<p># service serviceName stop<br />
# chkconfig serviceName off</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/disable-unwanted-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>make sure no non-root accounts have UID set to 0</title>
		<link>http://bizante.com/2011/01/make-sure-no-non-root-accounts-have-uid-set-to-0/</link>
		<comments>http://bizante.com/2011/01/make-sure-no-non-root-accounts-have-uid-set-to-0/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 16:36:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=279</guid>
		<description><![CDATA[Only root account have UID 0 with full permissions to access the system. Type the following command to display all accounts with UID set to 0: # awk -F: &#8216;($3 == &#8220;0&#8243;) {print}&#8217; /etc/passwd You should only see one line as follows: root:x:0:0:root:/root:/bin/bash If you see other lines, delete them or make sure other accounts [...]]]></description>
			<content:encoded><![CDATA[<p>Only root account have UID 0 with full permissions to access the system.</p>
<p>Type the following command to display all accounts with UID set to 0:<br />
# awk -F: &#8216;($3 == &#8220;0&#8243;) {print}&#8217; /etc/passwd</p>
<p>You should only see one line as follows:</p>
<p>root:x:0:0:root:/root:/bin/bash</p>
<p>If you see other lines, delete them or make sure other accounts are authorized by you to use UID 0.</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/make-sure-no-non-root-accounts-have-uid-set-to-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to lock all accounts with empty passwords</title>
		<link>http://bizante.com/2011/01/how-to-lock-all-accounts-with-empty-passwords/</link>
		<comments>http://bizante.com/2011/01/how-to-lock-all-accounts-with-empty-passwords/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 16:35:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=277</guid>
		<description><![CDATA[# passwd -l accountName]]></description>
			<content:encoded><![CDATA[<p># passwd -l accountName</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/how-to-lock-all-accounts-with-empty-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to verify no accounts have empty passwords?</title>
		<link>http://bizante.com/2011/01/how-to-verify-no-accounts-have-empty-passwords/</link>
		<comments>http://bizante.com/2011/01/how-to-verify-no-accounts-have-empty-passwords/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 16:34:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash commands]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://bizante.com/?p=275</guid>
		<description><![CDATA[Type the following command # awk -F: &#8216;($2 == &#8220;&#8221;) {print}&#8217; /etc/shadow]]></description>
			<content:encoded><![CDATA[<p>Type the following command<br />
# awk -F: &#8216;($2 == &#8220;&#8221;) {print}&#8217; /etc/shadow</p>
]]></content:encoded>
			<wfw:commentRss>http://bizante.com/2011/01/how-to-verify-no-accounts-have-empty-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

