~giuseppeterrasi-deactivatedaccount/wiki-ubuntu-it/help-repo

« back to all changes in this revision

Viewing changes to www/10.10/ubuntu/serverguide/it/ecryptfs.html

  • Committer: Leo Iannacone
  • Date: 2011-04-30 16:06:52 UTC
  • Revision ID: l3on@ubuntu.com-20110430160652-p5rufesrmfuzge6k
Creato;
Aggiunti 10.10 - 10.04 - 8.04;
Aggiunti index;
Aggiunti css base;
Aggiunti favicon.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml">
 
4
  <head xmlns="http://www.w3.org/1999/xhtml">
 
5
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
6
    <title xmlns="">eCryptfs</title>
 
7
    <link rel="stylesheet" href="../../libs/ubuntu-book.css" type="text/css" />
 
8
    <style xmlns="" type="text/css">
 
9
#content { background-image: url('images/draft.png');
 
10
       background-repeat: repeat-y;
 
11
       background-position: top center;
 
12
       /* The following properties make the watermark "fixed" on the page. */
 
13
       /* I think that's just a bit too distracting for the reader... */
 
14
       /* background-attachment: fixed; */
 
15
       /* background-position: center center; */
 
16
     }</style>
 
17
    <link rel="home" href="index.html" title="Guida a Ubuntu Server" />
 
18
    <link rel="up" href="security.html" title="Capitolo 8. Sicurezza" />
 
19
    <link rel="prev" href="certificates-and-security.html" title="Certificati" />
 
20
    <link rel="next" href="monitoring.html" title="Capitolo 9. Monitoraggio" />
 
21
    <link rel="copyright" href="legal.html" title="Riconoscimenti e licenza" />
 
22
  </head>
 
23
  <link href="http://help.ubuntu-it.org/favicon.ico" rel="shortcut icon" />
 
24
  <body>
 
25
    <div id="page-border-left-repeat">
 
26
      <div id="page-border-right-repeat">
 
27
        <script type="text/javascript">
 
28
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
 
29
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 
30
</script>
 
31
        <script type="text/javascript">
 
32
try {
 
33
var pageTracker = _gat._getTracker("UA-8147493-2");
 
34
pageTracker._trackPageview();
 
35
} catch(err) {}</script>
 
36
        <div id="page-border-top-repeat">
 
37
          <div id="header">
 
38
            <div id="header-navigation">
 
39
              <ul>
 
40
                <li>
 
41
                  <a href="http://www.ubuntu-it.org">Web</a>
 
42
                </li>
 
43
                <li>
 
44
                  <a href="http://wiki.ubuntu-it.org">Documentazione</a>
 
45
                </li>
 
46
                <li>
 
47
                  <a href="http://forum.ubuntu-it.org">Forum</a>
 
48
                </li>
 
49
                <li>
 
50
                  <a href="http://planet.ubuntu-it.org">Planet</a>
 
51
                </li>
 
52
              </ul>
 
53
            </div>
 
54
            <form action="http://help.ubuntu-it.org/10.10/ubuntu/search.php" id="cse-search-box">
 
55
              <div>
 
56
                <input type="text" name="s" size="28" title="search" />
 
57
                <input type="submit" value="Cerca" title="search" />
 
58
              </div>
 
59
            </form>
 
60
          </div>
 
61
        </div>
 
62
        <div>
 
63
          <div id="bodyarea">
 
64
            <div class="pagelocation"><a href="http://help.ubuntu-it.org/">Documentazione di Ubuntu</a> &gt; <a href="http://help.ubuntu-it.org/ubuntu1010.html">Ubuntu 10.10</a> &gt; <span class="breadcrumb-link"><a href="index.html">Guida a Ubuntu Server</a></span> &gt; <span class="breadcrumb-link"><a href="security.html">Sicurezza</a></span> &gt; <span class="breadcrumb-node">eCryptfs</span></div>
 
65
            <div xmlns="http://www.w3.org/1999/xhtml" class="sect1" title="eCryptfs">
 
66
              <div class="titlepage">
 
67
                <div>
 
68
                  <div>
 
69
                    <h2 class="title" style="clear: both"><a id="ecryptfs"></a>eCryptfs</h2>
 
70
                  </div>
 
71
                </div>
 
72
              </div>
 
73
              <p><span class="emphasis"><em>eCryptfs</em></span> è un file system crittografico POSIX-conforme per Linux.  Disponendosi al di sopra del livello del file system normale, <span class="emphasis"><em>eCryptfs</em></span> è in grado di proteggere i file indipendentemente dal file system sottostante, dal tipo di partizione, ecc...</p>
 
74
              <p>Durante la fase di installazione è disponibile un'opzione per cifrare l'intera partizione <code class="filename">/home</code> in grado di configurare tutto il necessario per cifrare e montare la partizione.</p>
 
75
              <p>
 
76
          As an example, this section will cover configuring <code class="filename">/srv</code> to be encrypted using <span class="emphasis"><em>eCryptfs</em></span>.
 
77
          </p>
 
78
              <div class="sect2" title="Usare eCryptfs">
 
79
                <div class="titlepage">
 
80
                  <div>
 
81
                    <div>
 
82
                      <h3 class="title"><a id="ecryptfs-usage"></a>Usare eCryptfs</h3>
 
83
                    </div>
 
84
                  </div>
 
85
                </div>
 
86
                <p>Per prima cosa, installare i pacchetti necessari. In un terminale digitare:</p>
 
87
                <pre class="screen">
 
88
<span class="command"><strong>sudo apt-get install ecryptfs-utils</strong></span>
 
89
</pre>
 
90
                <p>Montare la partizione da cifrare:</p>
 
91
                <pre class="screen">
 
92
<span class="command"><strong>sudo mount -t ecryptfs /srv /srv</strong></span>
 
93
</pre>
 
94
                <p>Vengono chiesti alcuni dettagli su come <span class="application"><strong>ecryptfs</strong></span> dovrebbe cifrare i dati.</p>
 
95
                <p>Per verificare che i file in <code class="filename">/srv</code> siano veramente cifrati, copiare la directory <code class="filename">/etc/default</code> in <code class="filename">/srv</code>:</p>
 
96
                <pre class="screen">
 
97
<span class="command"><strong>sudo cp -r /etc/default /srv</strong></span>
 
98
</pre>
 
99
                <p>Smontare <code class="filename">/srv</code> e cercare di visualizzare un file:</p>
 
100
                <pre class="screen">
 
101
<span class="command"><strong>sudo umount /srv</strong></span>
 
102
<span class="command"><strong>cat /srv/default/cron</strong></span>
 
103
</pre>
 
104
                <p>Montare <code class="filename">/srv</code> utilizzando <span class="application"><strong>ecryptfs</strong></span> per poter visualizzare nuovamente i dati.</p>
 
105
              </div>
 
106
              <div class="sect2" title="Montare automaticamente le partizioni cifrate">
 
107
                <div class="titlepage">
 
108
                  <div>
 
109
                    <div>
 
110
                      <h3 class="title"><a id="ecryptfs-automount"></a>Montare automaticamente le partizioni cifrate</h3>
 
111
                    </div>
 
112
                  </div>
 
113
                </div>
 
114
                <p>È possibile montare un file system <span class="application"><strong>ecryptfs</strong></span> in diversi modi all'avvio. Questo esempio fa uso di un file <code class="filename">/root/.ecryptfsrc</code> contenente le opzioni di mount e un file, salvato su una chiave USB, contenente la passphrase.</p>
 
115
                <p>Creare il file <code class="filename">/root/.ecryptfsrc</code> contenente:</p>
 
116
                <pre class="programlisting">
 
117
key=passphrase:passphrase_passwd_file=/mnt/usb/passwd_file.txt
 
118
ecryptfs_sig=5826dd62cf81c615
 
119
ecryptfs_cipher=aes
 
120
ecryptfs_key_bytes=16
 
121
ecryptfs_passthrough=n
 
122
ecryptfs_enable_filename_crypto=n
 
123
</pre>
 
124
                <div class="note" title="Nota" style="margin-left: 0.5in; margin-right: 0.5in;">
 
125
                  <table border="0" summary="Note">
 
126
                    <tr>
 
127
                      <td rowspan="2" align="center" valign="top" width="25">
 
128
                        <img alt="[Nota]" src="../../libs/admon/note.png" />
 
129
                      </td>
 
130
                      <th align="left"></th>
 
131
                    </tr>
 
132
                    <tr>
 
133
                      <td align="left" valign="top">
 
134
                        <p>Modificare il campo <span class="emphasis"><em>ecryptfs_sig</em></span> con la firma presente in <code class="filename">/root/.ecryptfs/sig-cache.txt</code>.</p>
 
135
                      </td>
 
136
                    </tr>
 
137
                  </table>
 
138
                </div>
 
139
                <p>Creare il file <code class="filename">/mnt/usb/passwd_file.txt</code> per la passphrase:</p>
 
140
                <pre class="programlisting">
 
141
passphrase_passwd=[secrets]
 
142
</pre>
 
143
                <p>Aggiungere quanto necessario in <code class="filename">/etc/fstab</code>:</p>
 
144
                <pre class="programlisting">
 
145
/dev/sdb1       /mnt/usb        ext3    ro      0 0
 
146
/srv /srv ecryptfs defaults 0 0
 
147
</pre>
 
148
                <p>Assicurarsi che il dispositivo USB venga montato prima della partizione cifrata.</p>
 
149
                <p>
 
150
            Finally, reboot and the <code class="filename">/srv</code> should be mounted using <span class="emphasis"><em>eCryptfs</em></span>.  
 
151
            </p>
 
152
              </div>
 
153
              <div class="sect2" title="Altre utilità">
 
154
                <div class="titlepage">
 
155
                  <div>
 
156
                    <div>
 
157
                      <h3 class="title"><a id="ecryptfs-other-utils"></a>Altre utilità</h3>
 
158
                    </div>
 
159
                  </div>
 
160
                </div>
 
161
                <p>Il pacchetto <span class="application"><strong>ecryptfs-utils</strong></span> contiene diverse utilità:</p>
 
162
                <div class="itemizedlist">
 
163
                  <ul class="itemizedlist" type="disc">
 
164
                    <li class="listitem">
 
165
                      <p><span class="emphasis"><em>ecryptfs-setup-private</em></span>: crea una directory <code class="filename">~/Private</code> per contenere informazioni cifrate. Questa utilità può essere eseguita da utenti senza alcun tipo di privilegio all'interno del sistema per creare una piccola zona privata dove salvare dati.</p>
 
166
                    </li>
 
167
                    <li class="listitem">
 
168
                      <p><span class="emphasis"><em>ecryptfs-mount-private</em></span> e <span class="emphasis"><em>ecryptfs-umount-private</em></span>: monta e smonta la directory <code class="filename">~/Private</code> degli utenti.</p>
 
169
                    </li>
 
170
                    <li class="listitem">
 
171
                      <p><span class="emphasis"><em>ecryptfs-add-passphrase</em></span>: aggiunge una nuova passphrase al portachiavi.</p>
 
172
                    </li>
 
173
                    <li class="listitem">
 
174
                      <p><span class="emphasis"><em>ecryptfs-manager</em></span>: gestisce gli oggetti <span class="application"><strong>eCryptfs</strong></span> come le chiavi.</p>
 
175
                    </li>
 
176
                    <li class="listitem">
 
177
                      <p><span class="emphasis"><em>ecryptfs-stat</em></span> consente di visualizzare le meta informazioni di <span class="application"><strong>ecryptfs</strong></span> relative a un file.</p>
 
178
                    </li>
 
179
                  </ul>
 
180
                </div>
 
181
              </div>
 
182
              <div class="sect2" title="Riferimenti">
 
183
                <div class="titlepage">
 
184
                  <div>
 
185
                    <div>
 
186
                      <h3 class="title"><a id="eCryptfs-references"></a>Riferimenti</h3>
 
187
                    </div>
 
188
                  </div>
 
189
                </div>
 
190
                <div class="itemizedlist">
 
191
                  <ul class="itemizedlist" type="disc">
 
192
                    <li class="listitem">
 
193
                      <p>
 
194
                For more information on <span class="emphasis"><em>eCryptfs</em></span> see the <a class="ulink" href="https://launchpad.net/ecryptfs" target="_top">Launchpad project page</a>.
 
195
                </p>
 
196
                    </li>
 
197
                    <li class="listitem">
 
198
                      <p>
 
199
                There is also a <a class="ulink" href="http://www.linuxjournal.com/article/9400" target="_top">Linux Journal</a> article covering <span class="emphasis"><em>eCryptfs</em></span>.
 
200
                </p>
 
201
                    </li>
 
202
                    <li class="listitem">
 
203
                      <p>
 
204
                Also, for more <span class="application"><strong>ecryptfs</strong></span> options see the
 
205
                <a class="ulink" href="http://manpages.ubuntu.com/manpages/maverick/en/man7/ecryptfs.7.html" target="_top">ecryptfs man page</a>.
 
206
                </p>
 
207
                    </li>
 
208
                    <li class="listitem">
 
209
                      <p>
 
210
                The <a class="ulink" href="https://help.ubuntu.com/community/eCryptfs" target="_top">eCryptfs Ubuntu Wiki</a> page also has more details.
 
211
                </p>
 
212
                    </li>
 
213
                  </ul>
 
214
                </div>
 
215
              </div>
 
216
            </div>
 
217
            <div xmlns="http://www.w3.org/1999/xhtml" class="navfooter">
 
218
              <hr />
 
219
              <table width="100%" summary="Navigation footer">
 
220
                <tr>
 
221
                  <td width="40%" align="left"><a accesskey="p" href="certificates-and-security.html"><img src="../../libs/navig/prev.png" alt="Indietro" /></a> </td>
 
222
                  <td width="20%" align="center">
 
223
                    <a accesskey="u" href="security.html">
 
224
                      <img src="../../libs/navig/up.png" alt="Risali" />
 
225
                    </a>
 
226
                  </td>
 
227
                  <td width="40%" align="right"> <a accesskey="n" href="monitoring.html"><img src="../../libs/navig/next.png" alt="Avanti" /></a></td>
 
228
                </tr>
 
229
                <tr>
 
230
                  <td width="40%" align="left" valign="top">Certificati </td>
 
231
                  <td width="20%" align="center">
 
232
                    <a accesskey="h" href="index.html">
 
233
                      <img src="../../libs/navig/home.png" alt="Partenza" />
 
234
                    </a>
 
235
                  </td>
 
236
                  <td width="40%" align="right" valign="top"> Capitolo 9. Monitoraggio</td>
 
237
                </tr>
 
238
              </table>
 
239
            </div>
 
240
          </div>
 
241
        </div>
 
242
        <div id="page-border-bottom-repeat">
 
243
          <div id="footer">
 
244
            <div id="copyright">
 
245
                                                Ubuntu e Canonical sono marchi registrati da Canonical Ltd.
 
246
                                        </div>
 
247
          </div>
 
248
        </div>
 
249
        <div id="page-border-right-top"></div>
 
250
        <div id="page-border-right-bottom"></div>
 
251
      </div>
 
252
      <div id="page-border-left-top"></div>
 
253
      <div id="page-border-left-bottom"></div>
 
254
    </div>
 
255
    <p></p>
 
256
  </body>
 
257
</html>