<?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>Tomb Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/tomb/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 27 Nov 2018 19:46:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Protect your files on Linux with Tomb</title>
		<link>https://www.osradar.com/protect-your-files-on-linux-with-tomb/</link>
					<comments>https://www.osradar.com/protect-your-files-on-linux-with-tomb/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 27 Nov 2018 19:42:22 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[folders]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tomb]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7705</guid>

					<description><![CDATA[<p>The privacy of our documents is not something to be taken lightly. Because it is possible that one day an intruder might steal our data. In this article, I will show you how to protect your files on Linux with Tomb. You&#8217;ve probably heard about encrypting files on Linux. First of all, it is good [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/protect-your-files-on-linux-with-tomb/">Protect your files on Linux with Tomb</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The privacy of our documents is not something to be taken lightly. Because it is possible that one day an intruder might steal our data. In this article, I will show you how to protect your files on Linux with Tomb.</p>
<p>You&#8217;ve probably heard about encrypting files on Linux. First of all, it is good to say that this is a great way to protect your files as you can create a key file and a password to access them, that is, double security.</p>
<p>To do the above, there are several applications, but one of it of Tomb. <a href="https://github.com/dyne/Tomb" rel="noopener">Tomb</a> is a 100% free and open source system for file encryption on GNU/Linux, facilitating the backup of secret files.</p>
<p>Tomb generates encrypted storage folders to be opened and closed using their associated key files, which are also protected with a password chosen by the user. So, if you want to protect your files and folders on Linux, then Tomb is a great option.</p>
<p>Let&#8217;s install it.</p>
<h1>Install Tomb on Linux</h1>
<p>Tomb, for now, is only available for Linux. So, if you use Arch Linux, your installation is reduced to running a single command. If you use Debian, Ubuntu, and derivatives you have to add a repository.</p>
<p>For Arch Linux</p>
<pre class="">:~$ yay -S tomb gtomb</pre>
<p>For Debian 9, Ubuntu 18.04 and Ubuntu derivates it is necessary to add the <a href="https://sparkylinux.org/" rel="noopener">SparkyLinux</a> repository. First, open a terminal and create a repo.list file.</p>
<pre class="">:~$ sudo nano /etc/apt/sources.list.d/sparky-repo.list</pre>
<p>Next, add the following:</p>
<pre class="">deb https://sparkylinux.org/repo stable main
deb-src https://sparkylinux.org/repo stable main
deb https://sparkylinux.org/repo testing main
deb-src https://sparkylinux.org/repo testing main</pre>
<figure id="attachment_7708" aria-describedby="caption-attachment-7708" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7708" src="https://www.osradar.com/wp-content/uploads/2018/11/1-22.png" alt="1.- Adding the SparkyLinux repository" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1-22.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/1-22-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/1-22-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/1-22-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/1-22-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/1-22-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/1-22-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7708" class="wp-caption-text">1.- Adding the SparkyLinux repository</figcaption></figure>
<p>Save and close the file. Then, download the GPG key and add it to APT.</p>
<pre class="">:~$ wget -O - https://sparkylinux.org/repo/sparkylinux.gpg.key | sudo apt-key add -</pre>
<figure id="attachment_7709" aria-describedby="caption-attachment-7709" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7709" src="https://www.osradar.com/wp-content/uploads/2018/11/2-21.png" alt="2.- Adding the GPG key" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/2-21.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/2-21-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/2-21-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/2-21-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/2-21-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/2-21-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/2-21-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7709" class="wp-caption-text">2.- Adding the GPG key</figcaption></figure>
<p>Next, refresh the APT cache.</p>
<pre class="">:~$ sudo apt update</pre>
<figure id="attachment_7710" aria-describedby="caption-attachment-7710" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7710" src="https://www.osradar.com/wp-content/uploads/2018/11/3-20.png" alt="3.- Running apt update command" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/3-20.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/3-20-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/3-20-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/3-20-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/3-20-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/3-20-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/3-20-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7710" class="wp-caption-text">3.- Running apt update command</figcaption></figure>
<p>Finally, install <code>tomb</code> package.</p>
<pre class="">:~$ sudo apt install tomb</pre>
<figure id="attachment_7711" aria-describedby="caption-attachment-7711" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7711" src="https://www.osradar.com/wp-content/uploads/2018/11/4-22.png" alt="4.- Install tomb" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/4-22.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/4-22-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/4-22-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/4-22-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/4-22-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/4-22-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/4-22-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7711" class="wp-caption-text">4.- Install tomb</figcaption></figure>
<p>That&#8217;s it. Now, let&#8217;s use it.</p>
<h1>Protect your files with Tomb</h1>
<p>tomb allows you to encrypt folders and files through a file that serves as a key. This, in turn, is protected with a password. Encrypted folders are called <em>tombs</em>. Then, let&#8217;s create an example.</p>
<p>I will create a <em>tomb</em> called <em>osradar</em> with size 150MB. Remember a <em>tomb</em> is a folder. You must run the commands as root user.</p>
<p><em>Note: it is necessary to deactivate the swap partition.</em></p>
<pre class="">:~$ sudo swapoff -a</pre>
<figure id="attachment_7714" aria-describedby="caption-attachment-7714" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7714" src="https://www.osradar.com/wp-content/uploads/2018/11/5-20.png" alt="5.- Deactivating the swap partition" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/5-20.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/5-20-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/5-20-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/5-20-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/5-20-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/5-20-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/5-20-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7714" class="wp-caption-text">5.- Deactivating the swap partition</figcaption></figure>
<pre class="">:~$ sudo tomb dig -s 150 osradar.tomb</pre>
<figure id="attachment_7715" aria-describedby="caption-attachment-7715" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7715" src="https://www.osradar.com/wp-content/uploads/2018/11/6-17.png" alt="6.- Creating a new tomb" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/6-17.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/6-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/6-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/6-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/6-17-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/6-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/6-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7715" class="wp-caption-text">6.- Creating a new tomb</figcaption></figure>
<p>As I said before, the tomb is protected by a key file. Create it.</p>
<pre class="">:~$ sudo tomb forge osradar.tomb.key</pre>
<figure id="attachment_7716" aria-describedby="caption-attachment-7716" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7716" src="https://www.osradar.com/wp-content/uploads/2018/11/7-17.png" alt="7.- Creating the key file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/7-17.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/7-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/7-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/7-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/7-17-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/7-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/7-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7716" class="wp-caption-text">7.- Creating the key file</figcaption></figure>
<p>Then, you will have to enter the key file password twice.</p>
<figure id="attachment_7723" aria-describedby="caption-attachment-7723" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7723" src="https://www.osradar.com/wp-content/uploads/2018/11/8-17.png" alt="8.- Setting a password for the keyfile" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/8-17.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/8-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/8-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/8-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/8-17-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/8-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/8-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7723" class="wp-caption-text">8.- Setting a password for the key file</figcaption></figure>
<p>Finally, you will see this.</p>
<figure id="attachment_7724" aria-describedby="caption-attachment-7724" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7724" src="https://www.osradar.com/wp-content/uploads/2018/11/9-15.png" alt="9.- Keyfile created" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/9-15.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/9-15-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/9-15-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/9-15-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/9-15-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/9-15-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/9-15-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7724" class="wp-caption-text">9.- Keyfile created</figcaption></figure>
<p>The next step is to lock the folder with the key file. You have to type the password.</p>
<pre class="">:~$ sudo tomb lock osradar.tomb -k osradar.tomb.key</pre>
<figure id="attachment_7725" aria-describedby="caption-attachment-7725" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7725" src="https://www.osradar.com/wp-content/uploads/2018/11/10-12.png" alt="10.- Locking the tomb with the keyfile" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/10-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/10-12-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/10-12-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/10-12-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/10-12-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/10-12-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/10-12-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7725" class="wp-caption-text">10.- Locking the tomb with the key file</figcaption></figure>
<p>Next, you will see this.</p>
<figure id="attachment_7726" aria-describedby="caption-attachment-7726" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7726" src="https://www.osradar.com/wp-content/uploads/2018/11/11-7.png" alt="11.- The tomb is locked" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/11-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/11-7-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/11-7-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/11-7-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/11-7-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/11-7-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/11-7-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7726" class="wp-caption-text">11.- The tomb is done. You can protect your files now.</figcaption></figure>
<h1>Opening the tomb</h1>
<p>So, you know how to protect your folder with the key file. However, there&#8217;s still how to open it, why else, what&#8217;s the point?</p>
<p>You need to run this command and type the password.</p>
<pre class="">:~$ sudo tomb open osradar.tomb -k osradar.tomb.key</pre>
<figure id="attachment_7728" aria-describedby="caption-attachment-7728" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7728" src="https://www.osradar.com/wp-content/uploads/2018/11/12-5.png" alt="12.- Entering the password" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/12-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/12-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/12-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/12-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/12-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/12-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/12-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7728" class="wp-caption-text">12.- Entering the password</figcaption></figure>
<figure id="attachment_7729" aria-describedby="caption-attachment-7729" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7729" src="https://www.osradar.com/wp-content/uploads/2018/11/13-4.png" alt="13.- Opening a tomb" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/13-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/13-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/13-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/13-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/13-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/13-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/13-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7729" class="wp-caption-text">13.- Opening a tomb</figcaption></figure>
<p>And you will open the folder normally.</p>
<figure id="attachment_7730" aria-describedby="caption-attachment-7730" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7730" src="https://www.osradar.com/wp-content/uploads/2018/11/14-4.png" alt="14.- The folder has mounted" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/14-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/14-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/14-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/14-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/14-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/14-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/14-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7730" class="wp-caption-text">14.- The folder has been mounted</figcaption></figure>
<p>Finally, when you finish working with the tomb, close it.</p>
<pre class="">:~$ sudo tomb close</pre>
<figure id="attachment_7734" aria-describedby="caption-attachment-7734" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7734" src="https://www.osradar.com/wp-content/uploads/2018/11/15-3.png" alt="15.- Closing the tomb" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/15-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/15-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/15-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/15-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/15-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/15-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/15-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7734" class="wp-caption-text">15.- Closing the tomb</figcaption></figure>
<p>If you have many tombs opened.</p>
<pre class="">:~$ sudo tomb slam all</pre>
<p>So, that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>It&#8217;s never too much work to protect your files on Linux. Especially if they are private files that you don&#8217;t want anyone to be able to open. To do this, you have a simple tool like tomb that is very powerful and few commands let you encrypt a folder where you can store the most important things on your computer.</p>
<p>About security, we also talked about Buttercup a password manager. You can read it <a href="https://www.osradar.com/buttercup-a-password-manager-for-linux/">here</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/protect-your-files-on-linux-with-tomb/">Protect your files on Linux with Tomb</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/protect-your-files-on-linux-with-tomb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
