|
21.
|
|
|
The main Samba configuration file is located in <filename>/etc/samba/smb.conf</filename>. The default configuration file has a significant amount of comments in order to document various configuration directives.
|
|
|
|
Il file principale di configurazione di Samba è localizzato in <filename>/etc/samba/smb.conf</filename> e dispone di molti commenti utili nella configurazione delle varie direttive.
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:101(para)
|
|
22.
|
|
|
Not all the available options are included in the default configuration file. See the <filename>smb.conf</filename><application>man</application> page or the <ulink url="http://samba.org/samba/docs/man/Samba-HOWTO-Collection/">Samba HOWTO Collection</ulink> for more details.
|
|
|
|
Non tutte le opzioni disponibili sono incluse nel file di configurazione predefinito. Per maggiori informazioni, consultare la pagina <application>man</application> di <filename>smb.conf</filename> oppure «<ulink url="http://samba.org/samba/docs/man/Samba-HOWTO-Collection/">Samba HOWTO Collection</ulink>».
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:106(para)
|
|
23.
|
|
|
First, edit the following key/value pairs in the <emphasis>[global]</emphasis> section of <filename>/etc/samba/smb.conf</filename>:
|
|
|
|
Per prima cosa, modificare le seguenti coppie chiave/valore nella sezione <emphasis>[global]</emphasis> del file <filename>/etc/samba/smb.conf</filename>:
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:116(para)
|
|
24.
|
|
|
workgroup = EXAMPLE
...
security = user
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
workgroup = ESEMPIO
...
security = user
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:121(programlisting) serverguide/C/windows-networking.xml:312(programlisting) serverguide/C/windows-networking.xml:780(programlisting) serverguide/C/windows-networking.xml:1003(programlisting)
|
|
25.
|
|
|
The <emphasis>security</emphasis> parameter is farther down in the [global] section, and is commented by default. Also, change <emphasis>EXAMPLE</emphasis> to better match your environment.
|
|
|
|
Il parametro <emphasis>security</emphasis> è più avanti nella sezione [global] ed è commentato. Inoltre, modificare <emphasis>ESEMPIO</emphasis> in modo che rispecchi il proprio ambiente di lavoro.
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:127(para)
|
|
26.
|
|
|
Create a new section at the bottom of the file, or uncomment one of the examples, for the directory to be shared:
|
|
|
|
Per la nuova directory da condividere, creare una nuova sezione verso la fine del file oppure togliere il commento a uno degli esempi:
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:135(para)
|
|
27.
|
|
|
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
[share]
comment = Condivisione file Ubuntu
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:139(programlisting)
|
|
28.
|
|
|
<emphasis>comment:</emphasis> a short description of the share. Adjust to fit your needs.
|
|
|
|
<emphasis>comment</emphasis>: una breve descrizione della condivisione. Modificarla in base alle proprie esigenze.
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:151(para)
|
|
29.
|
|
|
<emphasis>path:</emphasis> the path to the directory to share.
|
|
|
|
<emphasis>path</emphasis>: il percorso alla directory da condividere.
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:156(para)
|
|
30.
|
|
|
This example uses <filename>/srv/samba/sharename</filename> because, according to the <emphasis>Filesystem Hierarchy Standard (FHS)</emphasis>, <ulink url="http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM">/srv</ulink> is where site-specific data should be served. Technically Samba shares can be placed anywhere on the filesystem as long as the permissions are correct, but adhering to standards is recommended.
|
|
|
|
Questo esempio utilizza <filename>/srv/samba/sharename</filename> poiché, in base alla <emphasis>Filesystem Hierarchy Standard (FHS)</emphasis>, <ulink url="http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM">/srv</ulink> è la posizione in cui dovrebbero essere tenuti i file relativi ai siti. Tecnicamente, le condivisione Samba possono essere posizionate ovunque all'interno del file system, basta che i permessi siano impostati correttamente. In ogni caso, è raccomandato aderire agli standard.
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
serverguide/C/windows-networking.xml:159(para)
|