<?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>Unix Privacylover &#187; Unix</title>
	<atom:link href="http://unix.privacylover.com/category/unix-computer-security-and-privacy/feed/" rel="self" type="application/rss+xml" />
	<link>http://unix.privacylover.com</link>
	<description>Unix Security and Privacy</description>
	<lastBuildDate>Tue, 29 Jun 2010 10:10:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to use Linux command line to clone a hard drive</title>
		<link>http://unix.privacylover.com/unix-computer-security-and-privacy/how-to-use-linux-command-line-to-clone-a-hard-drive/</link>
		<comments>http://unix.privacylover.com/unix-computer-security-and-privacy/how-to-use-linux-command-line-to-clone-a-hard-drive/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 10:10:55 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[acquire OS mirror copy with ddrescue]]></category>
		<category><![CDATA[back up Linux OS data]]></category>
		<category><![CDATA[back up linux using command line]]></category>
		<category><![CDATA[clone hard disk in Linux]]></category>
		<category><![CDATA[clone hard disk with dd]]></category>
		<category><![CDATA[clone OS with ddrescue]]></category>
		<category><![CDATA[command line Linux hard disk cloning]]></category>
		<category><![CDATA[command line tools to back up data]]></category>
		<category><![CDATA[command lines to clone hard disk]]></category>
		<category><![CDATA[copy Linux hard disk]]></category>
		<category><![CDATA[dd command line usage]]></category>
		<category><![CDATA[dd linux]]></category>
		<category><![CDATA[dd linux command line usage]]></category>
		<category><![CDATA[dd linux examples]]></category>
		<category><![CDATA[ddrescue example command line]]></category>
		<category><![CDATA[ddrescue to clone hard disk]]></category>
		<category><![CDATA[ddrescue usage]]></category>
		<category><![CDATA[how to use dd]]></category>
		<category><![CDATA[how to use ddrescue in Linux]]></category>
		<category><![CDATA[linux back up from shell]]></category>
		<category><![CDATA[Linux commands to acquire data]]></category>
		<category><![CDATA[Linux dd]]></category>
		<category><![CDATA[Linux dd for hard disk cloning]]></category>
		<category><![CDATA[Linux hard drive data back up]]></category>
		<category><![CDATA[mirror hard disk in Linux]]></category>
		<category><![CDATA[mirror Linux operating system]]></category>
		<category><![CDATA[mirror operating system with dd Linux]]></category>
		<category><![CDATA[shell commands to mirror hard disk]]></category>
		<category><![CDATA[Unix back up]]></category>

		<guid isPermaLink="false">http://unix.privacylover.com/?p=284</guid>
		<description><![CDATA[Command line Linux for hard drive cloning If you are a Unix command line geek you can clone your hard disk with various Linux programs. This can be quicker if you feel comfortable using the Linux shell. Computer forensics need to use a Unix live CD to clone a hard drive in order to preserve [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong><span style="text-decoration: underline;"><span style="color: #993300;">Command line Linux for hard drive cloning</span></span></strong></p>
<p>If you are a Unix command line geek you can clone your hard disk with various Linux programs. This can be quicker if you feel comfortable using the  Linux shell. Computer forensics need to use a Unix live CD to  clone a hard drive in order to preserve all data from alteration but unless this is your case you do not need it.</p>
<p style="text-align: left;"><span style="text-decoration: underline;"><strong><span style="color: #993300;">How to clone a hard  disk using dd?</span></strong></span></p>
<p>To execute <em>dd</em> you should login as <em>root</em> or use the <em>su</em> command.</p>
<p>1- Open Linux terminal window as root.</p>
<p>2- Change appropiate hard disk name, ie sda/sdb and type:</p>
<p><em>dd if=/dev/sda of=/dev/sdb</em></p>
<p>3- Cloning a hard drive using <em>dd</em> can take hours depending on size. You can use <em>gzip</em> and save storage space but this will make the hard disk back up even longer.</p>
<p style="text-align: left;"><span style="text-decoration: underline;"><span style="color: #993300;"><strong>Copying a hard disk partition using dd</strong></span></span></p>
<p>If you don’t want to make a complete duplication of your hard disk the following command will create an image file “disk1.img” in your user’s recovery directory from /dev/sda</p>
<p><em>dd if=/dev/sda of=~/recovery</em><em>/</em><em>disk1.img </em></p>
<p>To restore a partition or a hard disk from an image file, just exchange the arguments “if” and “of”. For example, restore the whole hard disk from the image file “disk1.img”:</p>
<p><em>dd if=disk1.img of=/dev/sda</em></p>
<p style="text-align: left;"><span style="text-decoration: underline;"><span style="color: #993300;"><strong>How to clone your hard drive using ddrescue?</strong></span></span></p>
<p><strong> </strong>Also known as Gddrescue in Ubuntu, ddrescue is  quicker than  ‘dd’, gets better results and it also keeps a logfile that records each of the bad blocks found.</p>
<p>1- SystemCdTools includes ddrescue but you may have to install dderescue from the repositories otherwise as many other linux distributions do not come with it.</p>
<p>2- Open Linux terminal window as root.</p>
<p>3- Change source sda and destination sdb if needed, depending on your hard disk name, then type:</p>
<p><em>ddrescue -v /dev/sda /dev</em><em>/sdb</em></p>
<p>If your hard disk has bad sectors the following Linux<em> ddrescue</em> command line below will attempt to recover them:</p>
<p><em>ddrescue -r 1 /dev/sda /dev/sdb rescue.log<br />
</em></p>
<p>WARNING: There is another Unix tool called <a title="dd_rescue Linux" href="http://www.garloff.de/kurt/linux/ddrescue/" target="_blank"><strong><span style="color: #ff0000;">dd_rescue</span></strong></a> do not  confuse it with <a title="ddrescue Linux command line" href="http://savannah.gnu.org/projects/ddrescue/" target="_blank"><strong><span style="color: #ff0000;">ddrescue</span></strong></a>,  they both enhance dd but are not the same command line.</p>
<p><center><div id="attachment_291" class="wp-caption aligncenter" style="width: 374px"><em><em><img class="size-full wp-image-291" title="Hard drive data kept secure" src="http://unix.privacylover.com/wp-content/uploads/2010/06/hard-disk-drive-security-data.jpg" alt="Hard drive data kept secure" width="364" height="400" /></em></em><p class="wp-caption-text">Hard drive data kept secure</p></div></center></p>
]]></content:encoded>
			<wfw:commentRss>http://unix.privacylover.com/unix-computer-security-and-privacy/how-to-use-linux-command-line-to-clone-a-hard-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of Linux live CDs for hard disk cloning</title>
		<link>http://unix.privacylover.com/unix-computer-security-and-privacy/list-of-linux-live-cds-for-hard-disk-cloning/</link>
		<comments>http://unix.privacylover.com/unix-computer-security-and-privacy/list-of-linux-live-cds-for-hard-disk-cloning/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 09:42:48 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[acquiring data in computer forensics]]></category>
		<category><![CDATA[back up data in Linux]]></category>
		<category><![CDATA[back up data tool open source]]></category>
		<category><![CDATA[back up software linux]]></category>
		<category><![CDATA[clone hard drive]]></category>
		<category><![CDATA[clone HDD free]]></category>
		<category><![CDATA[cloning hard drive tools]]></category>
		<category><![CDATA[computer forensics clone hard drive]]></category>
		<category><![CDATA[computer forensics data acquisition]]></category>
		<category><![CDATA[computer forensics hard drive cloning]]></category>
		<category><![CDATA[computer forensics live CD list]]></category>
		<category><![CDATA[ddrescue command line]]></category>
		<category><![CDATA[free tools to clone hard drive]]></category>
		<category><![CDATA[gddrescue Ubuntu command line]]></category>
		<category><![CDATA[hard disk cloning]]></category>
		<category><![CDATA[hard disk mirroring in Linux]]></category>
		<category><![CDATA[hard drive cloning]]></category>
		<category><![CDATA[linux data back up tools]]></category>
		<category><![CDATA[Linux dd enhancement]]></category>
		<category><![CDATA[linux dd usage]]></category>
		<category><![CDATA[linux distro for backing up data]]></category>
		<category><![CDATA[linux distro to clone hard drive]]></category>
		<category><![CDATA[Linux live CD computer forensics]]></category>
		<category><![CDATA[linux live CD for data acquisition]]></category>
		<category><![CDATA[linux live CD to back up data]]></category>
		<category><![CDATA[linux live CD to clone HDD]]></category>
		<category><![CDATA[Linux tools to mirror hard disk]]></category>
		<category><![CDATA[linux utilities to clone hard drive]]></category>
		<category><![CDATA[list of computer forensics live CD]]></category>
		<category><![CDATA[live CD computer forensics]]></category>
		<category><![CDATA[live CD for cloning hard disk]]></category>
		<category><![CDATA[live operating system to back up data]]></category>
		<category><![CDATA[Unix back up tools]]></category>

		<guid isPermaLink="false">http://unix.privacylover.com/?p=268</guid>
		<description><![CDATA[The easiest way to recover your operating system in case of disaster is by cloning it once a week to an external disk. You will save lots of time tweaking the settings once again if you need to reinstall your operating system. Main Linux live CD to clone a hard disk CloneZilla: Clonezilla live is [...]]]></description>
			<content:encoded><![CDATA[<p>The easiest way to recover your operating system in case of disaster is by cloning it once a week to an external disk. You will save lots of time tweaking the settings once again if you need to reinstall your operating system.</p>
<p style="text-align: center;"><span style="text-decoration: underline;"><strong><span style="color: #993300;">Main Linux live CD to clone a hard disk</span></strong></span></p>
<p><a title="CloneZilla live CD to mirror OS" href="http://www.clonezilla.org/" target="_blank"><strong><span style="color: #ff0000;">CloneZilla</span></strong></a>: Clonezilla live is suitable for single machine backup and restore, Clonezilla saves and restores only used blocks in the harddisk, this  increases the clone efficiency. This live CD to mirror your hard disk can be a bit overwhelming for newbies not used to Linux.</p>
<p><a title="Redo BackUp to mirror operating system" href="http://www.redobackup.org/" target="_blank"><strong><span style="color: #ff0000;">Redo Backup and Recovery</span></strong></a>: The system uses minimal space and resources, and the download size is  less than 75MB. Easy point-and-click GUI tool for full system backup and recovery, very user friendly.</p>
<p><a title="System Rescue CD" href="http://www.sysresccd.org/" target="_blank"><strong><span style="color: #ff0000;">SystemRescueCD</span></strong></a>: This Linux live CD is normally used to recover data, you can use it to backup data from an unbootable Windows computer not able to boot anymore, as long as the hard disk is still working, you will just need to mount the partition.</p>
<p><a title="Ultimate Boot CD" href="http://www.ultimatebootcd.com/" target="_blank"><strong><span style="color: #ff0000;">UltimateBootCD</span></strong></a>: You can use this Linux live CD for hard disk cloning using some of the tools it has, such as CopyWipe, g4u, HDClone, partimage and others. You can also use this Linux live CD for data wiping as it includes hard disk wiping tools such as  Darik&#8217;s Boot and Nuke (DBAN) and HDDErase.</p>
<p><a title="Parted Magic" href="http://www.partedmagic.com/" target="_blank"><strong><span style="color: #ff0000;">PartedMagic</span></strong></a>: This is mainly a linux live CD used for partioning but it also includes CloneZilla from the command line.</p>
<p><a title="GRML live CD" href="http://www.grml.org/" target="_blank"><strong><span style="color: #ff0000;">GRML</span></strong></a>: For the advanced linux user, this linux live CD based on Debian has been designed for the Linux system administrator comfortable witht the command line, GRML provides security and network related software, data recovery and           forensic tools and many           text tools.</p>
<p><center><div id="attachment_273" class="wp-caption aligncenter" style="width: 470px"><a title="Hard drive cloning"><img class="size-full wp-image-273" src="http://unix.privacylover.com/wp-content/uploads/2010/06/hard-drive-cloning.jpg" alt="Hard drive cloning" width="460" height="291" /></a><p class="wp-caption-text">Hard drive cloning</p></div></center></p>
<p style="text-align: center;"><strong><span style="text-decoration: underline;"><span style="color: #993300;">Computer Forensics live CD to clone hard drive</span></span></strong></p>
<p><a title="Frenzy FreeBSD live CD" href="http://frenzy.org.ua/eng/" target="_blank"><strong><span style="color: #ff0000;">Frenzy</span></strong></a>: FreeBSD live CD, it contains software for hardware tests, file system check, security check   and network setup and analysis.</p>
<p><a title="Caine computer forensics live CD" href="http://www.caine-live.net/" target="_blank"><strong> </strong></a><a title="Caine computer forensics live CD" href="http://www.caine-live.net/" target="_blank"><strong><span style="color: #ff0000;">Caine</span></strong></a>: Ubuntu based computer  forensics live CD, mainly used to acquire data of a suspected criminal  computer but also useful as a back up live CD. User friendly graphical  interface.</p>
<p><a title="DEFT Linux forensics live CD" href="http://www.deftlinux.net/" target="_blank"><strong><span style="color: #ff0000;">DEFT Linux</span></strong></a>: DEFT it’s a new concept of Computer Forensic  live system that use LXDE as desktop environment and thunar file manager  and mount manager as tool for device management. It is a very easy to use system that includes an excellent hardware  detection as well as open source applications dedicated to  incident response and computer forensics.</p>
<p><span style="color: #ff0000;"><a title="MasterKeyLinux live CD" href="http://masterkeylinux.com/" target="_blank"><strong> </strong></a></span><a title="MasterKey Linux live CD" href="http://www.masterkeylinux.com/" target="_blank"><strong><span style="color: #ff0000;">MasterKey:</span></strong></a> MasterKey Linux live CD is focused on incident response<strong> </strong> and  computer forensics. No installation is required, <strong> </strong><strong> </strong> the   forensics system is started directly from the a CD/DVD-ROM or USB  thumbdrive.</p>
<p><a title="Backtrack Linux live CD" href="http://www.backtrack-linux.org/" target="_blank"><strong><span style="color: #ff0000;">BackTrack</span></strong></a>: BackTrack has been customized down to every package, kernel  configuration, script and patch solely for the purpose of the  penetration tester. You can install Backtrack to USB with full disk encryption if needed. <a title="BackTrack USB Full Disk  Encryption" rel="nofollow" href="http://www.infosecramblings.com/backtrack/backtrack-4-bootable-usb-thumb-drive-with-full-disk-encryption/" target="_blank"></a></p>
<p><center><div id="attachment_278" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-278" title="Computer forensics live CD Caine" src="http://unix.privacylover.com/wp-content/uploads/2010/06/caine-computer-forensics-live-cd.jpg" alt="Computer forensics live CD Caine" width="450" height="310" /><p class="wp-caption-text">Computer forensics live CD Caine</p></div></center></p>
<p><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://unix.privacylover.com/unix-computer-security-and-privacy/list-of-linux-live-cds-for-hard-disk-cloning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: How to use Mixmaster to send anonymous emails</title>
		<link>http://unix.privacylover.com/unix-computer-security-and-privacy/video-how-to-use-mixmaster-to-send-anonymous-emails/</link>
		<comments>http://unix.privacylover.com/unix-computer-security-and-privacy/video-how-to-use-mixmaster-to-send-anonymous-emails/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 02:00:38 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[anonymous email]]></category>
		<category><![CDATA[anonymous email tutorial]]></category>
		<category><![CDATA[anonymous internet]]></category>
		<category><![CDATA[anonymous messages]]></category>
		<category><![CDATA[anonymous remailer]]></category>
		<category><![CDATA[anonymous Unix]]></category>
		<category><![CDATA[antiforensics]]></category>
		<category><![CDATA[computer privacy]]></category>
		<category><![CDATA[computer security]]></category>
		<category><![CDATA[data encryption]]></category>
		<category><![CDATA[email encryption]]></category>
		<category><![CDATA[email security]]></category>
		<category><![CDATA[encrypted communications]]></category>
		<category><![CDATA[encrypted messages]]></category>
		<category><![CDATA[free encryption tool]]></category>
		<category><![CDATA[free remailer]]></category>
		<category><![CDATA[Linux anonymous email]]></category>
		<category><![CDATA[mixmaster]]></category>
		<category><![CDATA[Mixmaster anonymous email]]></category>
		<category><![CDATA[Mixmaster remailer]]></category>
		<category><![CDATA[Mixmaster remailer software]]></category>
		<category><![CDATA[Mixmaster server]]></category>
		<category><![CDATA[mixmaster tutorial]]></category>
		<category><![CDATA[mixmaster video tutorial]]></category>
		<category><![CDATA[mixminion]]></category>
		<category><![CDATA[pgp encrypted email]]></category>
		<category><![CDATA[private communications over email]]></category>
		<category><![CDATA[pseudoanonymous email message]]></category>
		<category><![CDATA[remailer]]></category>
		<category><![CDATA[remailer online]]></category>
		<category><![CDATA[remailer server]]></category>
		<category><![CDATA[remailer software]]></category>
		<category><![CDATA[remailer tutorial]]></category>
		<category><![CDATA[send anonymous email]]></category>
		<category><![CDATA[send email anonymous]]></category>
		<category><![CDATA[set up remailer server]]></category>
		<category><![CDATA[strong anonymity]]></category>
		<category><![CDATA[tips and tricks Unix]]></category>
		<category><![CDATA[traffic analysis protection]]></category>
		<category><![CDATA[Unix antiforensics]]></category>
		<category><![CDATA[unix encryption]]></category>
		<category><![CDATA[Unix hacks]]></category>
		<category><![CDATA[unix security]]></category>
		<category><![CDATA[Unix tips]]></category>
		<category><![CDATA[Unix video]]></category>
		<category><![CDATA[untraceable emails]]></category>

		<guid isPermaLink="false">http://unix.privacylover.com/?p=182</guid>
		<description><![CDATA[Mixmaster is is an anonymous remailer software. It encrypts your email messages before sending them, it typically fires off the messages through a series of anonymous proxies, you can choose how many and what proxies you want on the chain, it also provides protection against traffic analysis by delaying the sending of the messages at [...]]]></description>
			<content:encoded><![CDATA[<p>Mixmaster is is an anonymous remailer software. It encrypts your email messages before sending them, it typically fires off the messages through a series of anonymous proxies, you can choose how many and what proxies you want on the chain, it also provides protection against traffic analysis by delaying the sending of the messages at random.</p>
<p>This excellent Linux Journal video introduces Mixmaster and explains how you can download it to your own Unix machine and help the internet anonymity cause running an anonymous email server.</p>
<p>Mixmaster runs on *BSD, Linux and Microsoft Windows. If you have questions about remailers and Mixmaster one of the best points of calls is the newsgroup: <strong><span style="color: #0000ff;">alt.privacy.anon.server</span></strong></p>
<p>You can read the mailing list for remailer operators, and subscribe, at:</p>
<p><strong><span style="color: #800000;"><a title="Remailer operators mailing list" href="http://lists.mixmin.net/mailman/listinfo/remops" target="_blank">http://lists.mixmin.net/mailman/listinfo/remops</a></span></strong></p>
<p>Mixmaster remailer software homepage:</p>
<p><span style="color: #800000;"><strong><a title="Mixmaster remailer software" href="http://mixmaster.sourceforge.net/" target="_blank">http://mixmaster.sourceforge.net/</a></strong></span></p>
<p><center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="405" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube-nocookie.com/v/dzbrFPO4604&amp;hl=en_GB&amp;fs=1&amp;rel=0&amp;color1=0x5d1719&amp;color2=0xcd311b&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="405" src="http://www.youtube-nocookie.com/v/dzbrFPO4604&amp;hl=en_GB&amp;fs=1&amp;rel=0&amp;color1=0x5d1719&amp;color2=0xcd311b&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></center></p>
]]></content:encoded>
			<wfw:commentRss>http://unix.privacylover.com/unix-computer-security-and-privacy/video-how-to-use-mixmaster-to-send-anonymous-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop your Unix shell saving typed in commands</title>
		<link>http://unix.privacylover.com/unix-computer-security-and-privacy/stop-your-unix-shell-saving-typed-in-commands/</link>
		<comments>http://unix.privacylover.com/unix-computer-security-and-privacy/stop-your-unix-shell-saving-typed-in-commands/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 10:09:04 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[.bashrc settings]]></category>
		<category><![CDATA[bash history file]]></category>
		<category><![CDATA[bash shell history]]></category>
		<category><![CDATA[change Linux shell]]></category>
		<category><![CDATA[choose Unix shell]]></category>
		<category><![CDATA[computer privacy]]></category>
		<category><![CDATA[delete bash history]]></category>
		<category><![CDATA[delete bash history file]]></category>
		<category><![CDATA[delete history file]]></category>
		<category><![CDATA[delete login shell history]]></category>
		<category><![CDATA[delete shell history]]></category>
		<category><![CDATA[deleting typed in commands]]></category>
		<category><![CDATA[disabled Unix shell history]]></category>
		<category><![CDATA[erase Unix history file]]></category>
		<category><![CDATA[export HISTSIZE to zero]]></category>
		<category><![CDATA[HISTSIZE explanation]]></category>
		<category><![CDATA[set bash history to zero]]></category>
		<category><![CDATA[set Unix shell history file]]></category>
		<category><![CDATA[set Unix shell history file size]]></category>
		<category><![CDATA[settings bash shell]]></category>
		<category><![CDATA[stop Linux shell saving history]]></category>
		<category><![CDATA[stop Unix recording history]]></category>
		<category><![CDATA[stop Unix saving your history]]></category>
		<category><![CDATA[stop Unix shell saving history]]></category>
		<category><![CDATA[Unix history file deletion]]></category>
		<category><![CDATA[Unix privacy]]></category>
		<category><![CDATA[Unix privacy tips]]></category>
		<category><![CDATA[unix security]]></category>
		<category><![CDATA[Unix shell privacy]]></category>
		<category><![CDATA[Unix shell typed in commands]]></category>
		<category><![CDATA[zsh shell history file]]></category>

		<guid isPermaLink="false">http://unix.privacylover.com/?p=142</guid>
		<description><![CDATA[When working using bash, zsh, ksh or any other Unix shell the default is to save the history of the typed in commands, this can become a security and privacy risk. Stop the history file keeping a copy of typed in commands This can be used any time  you like assuming you have administrator rights [...]]]></description>
			<content:encoded><![CDATA[<p>When working using <a title="Unix bash shell" href="http://www.gnu.org/software/bash/" target="_blank">bash</a>, <a title="zsh Unix shell" href="http://www.zsh.org/" target="_blank">zsh</a>, <a title="ksh Korn shell Unix" href="http://www.kornshell.com/" target="_blank">ksh</a> or any other Unix shell the default is to save the history of the typed in commands, this can become a security and privacy risk.</p>
<p style="text-align: center"><span style="color: #800000;"><strong><span style="text-decoration: underline;">Stop the history file keeping a copy of typed in commands</span></strong></span></p>
<p>This can be used any time  you like assuming you have administrator rights (using bash shell as example).</p>
<p><em><span style="color: #008000;"># kill -9 $$</span></em></p>
<p><span style="color: #ff0000;"><em>$$</em></span> gives the pid of the current shell instance, and the kill ends the process.</p>
<p>You could also use the history command, see<em> <span style="color: #008000;">man history</span></em>:</p>
<p><em><span style="color: #008000;"># history -c</span></em> (clear the history)<br />
<em><span style="color: #008000;"># history -w</span></em> (write to the file &#8211; overwrite!)</p>
<p>Delete the bash history file, find out where your shell saves the history of typed in commands and delete it the same way. You may also use the <span style="color: #008000;"><em>shred</em></span> command to overwrite it safely.</p>
<p><em><span style="color: #008000;"># rm -rf ~/.bash_history</span> </em></p>
<p>But even if you delete the <span style="color: #ff0000;"><em>~/.bash_history file</em></span>, your current bash session will still be written to history once you log out, this is because it is being stored in RAM, you will need to use the previous <em><span style="color: #008000;">history -c</span></em> command to avoid this.</p>
<p style="text-align: center"><span style="text-decoration: underline;"><span style="color: #800000;"><strong>Stop writting to the history file for good</strong></span></span></p>
<p>Examples based on the bash shell configuration files:</p>
<p>Turn off bash history for all users, append <span style="color: #008000;"><em>unset HISTFILE</em></span> to <span style="color: #ff0000;"><em>/etc/profile</em></span></p>
<p><span style="color: #008000;"><em># echo &#8220;unset HISTFILE&#8221; &gt;&gt; /etc/profile</em></span></p>
<p>Set size of the history to zero:</p>
<p>HISTSIZE: The number of commands to remember in the command history. The default value in bash is 500, You can set this to 0 and disable the usage of the history file.</p>
<p>Introduce the following command in your personal bash configuration file <span style="color: #ff0000;"><em>~/.bashrc</em></span> (<span style="color: #ff0000;"><span style="color: #000000;"><span style="color: #ff0000;"><em>~/.zshrc</em></span> for the zsh shell users) </span></span>or in the global bash configuration file <span style="color: #ff0000;"><em>/etc/bash.bashrc </em></span><span style="color: #ff0000;"><span style="color: #000000;"> </span></span></p>
<p><span style="color: #008000;"><em>export HISTSIZE=0</em></span></p>
<p>You will need to restart your bash session in order to activate the settings, you can check if your configuration were entered correctly by going at the command prompt and typing:</p>
<p><span style="color: #008000;"><em>env</em></span></p>
<p>If you don&#8217;t see your configuration in the environment variables than you have done something wrong.</p>
<p>The name of the configuration files can depend from your Linux distribution and bash version, you can always see your particular options using <span style="color: #008000;"><em>man bash</em></span>.</p>
<p style="text-align: center;"><a href="http://unix.privacylover.com/wp-content/uploads/2009/06/Unix_shell_configuration_files.JPG"><img class="size-full wp-image-143 aligncenter" title="Unix shell configuration files" src="http://unix.privacylover.com/wp-content/uploads/2009/06/Unix_shell_configuration_files.JPG" alt="Unix shell configuration files" width="345" height="651" /></a><br />
Unix shell configuration files</p>
<p><span style="color: #800000;"><strong>Unix shell configuration table files explained:</strong></span></p>
<ul>
<li>Blank means a file is not read by a shell at all</li>
</ul>
<ul>
<li>&#8220;yes&#8221; means a file is always read by a shell upon startup</li>
</ul>
<ul>
<li>&#8220;login&#8221; means a file is read if the shell is a login shell</li>
</ul>
<ul>
<li>&#8220;n/login&#8221; means a file is read if the shell is not a login shell</li>
</ul>
<ul>
<li>&#8220;int.&#8221; means a file is read if the shell is interactive</li>
</ul>
<ul>
<li>&#8220;i.login&#8221; means a file is read if the shell is an interactive login shell</li>
</ul>
<p>To find out what shell you are using type: <span style="color: #008000;"><em>echo $SHELL</em></span></p>
<p>To change your shell see <span style="color: #008000;"><em>chsh &#8211;help</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://unix.privacylover.com/unix-computer-security-and-privacy/stop-your-unix-shell-saving-typed-in-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
