|
23.
|
|
|
First, edit the following key/value pairs in the <emphasis>[global]</emphasis> section of <filename>/etc/samba/smb.conf</filename>:
|
|
|
|
Primeiro, edite os seguintes pares de chave/valor na sección <emphasis>[global]</emphasis> do ficheiro <filename>/etc/samba/smb.conf</filename>:
|
|
Translated and reviewed by
Fran Diéguez
|
|
|
|
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 = EXEMPLO
...
security = user
|
|
Translated and reviewed by
Xosé
|
|
|
|
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.
|
|
|
|
O parámetro <emphasis>security</emphasis> está máis abaixo na sección [global], e está comentado de forma predeterminada. Pode cambiar <emphasis>EXEMPLO</emphasis> para adaptalo mellor ao seu entorno.
|
|
Translated and reviewed by
Miguel Anxo Bouzada
|
|
|
|
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:
|
|
|
|
Cree unha nova sección no final do ficheiro, ou descomete un dos exemplos para compartir un cartafol:
|
|
Translated by
Miguel Anxo Bouzada
|
|
Reviewed by
Miguel Anxo Bouzada
|
|
|
|
Located in
serverguide/C/windows-networking.xml:135(para)
|
|
27.
|
|
|
![](/@@/translation-newline)
[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.
|
|
|
|
![](/@@/translation-newline)
[share]
comment = Servidor de ficheiros compartidos de Ubuntu
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
|
|
Translated and reviewed by
Fran Diéguez
|
|
|
|
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> unha descrición curta do elemento compartido Axústeo para axeitalo ás súas necesidades.
|
|
Translated and reviewed by
Fran Diéguez
|
|
|
|
Located in
serverguide/C/windows-networking.xml:151(para)
|
|
29.
|
|
|
<emphasis>path:</emphasis> the path to the directory to share.
|
|
|
|
<emphasis>path:</emphasis> a ruta ao cartafol que se vai compartir.
|
|
Translated by
Miguel Anxo Bouzada
|
|
Reviewed by
Miguel Anxo Bouzada
|
|
|
|
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.
|
|
|
|
Este exemplo emprega <filename>/srv/samba/sharename</filename> xa que, conforme co estándar de xerarquía do sistema de ficheiros <emphasis>Filesystem Hierarchy Standard (FHS)</emphasis>, <ulink url="http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM">/srv</ulink> é onde deben ir os datos servidos polo equipo en sí. Tecnicamente, os cartafoles compartidos de Samba pódense colocar en calquera parte do sistema de ficheiros sempre que os permisos sexan correctos, mais é recomendábel axustarse aos estándares.
|
|
Translated and reviewed by
Miguel Anxo Bouzada
|
|
|
|
Located in
serverguide/C/windows-networking.xml:159(para)
|
|
31.
|
|
|
<emphasis>browsable:</emphasis> enables Windows clients to browse the shared directory using <application>Windows Explorer</application>.
|
|
|
|
<emphasis>browsable:</emphasis> permítelle aos clientes Windows examinar o cartafol compartido empregando o <application>Explorador de Windows</application>.
|
|
Translated by
Miguel Anxo Bouzada
|
|
Reviewed by
Miguel Anxo Bouzada
|
|
|
|
Located in
serverguide/C/windows-networking.xml:168(para)
|
|
32.
|
|
|
<emphasis>guest ok:</emphasis> allows clients to connect to the share without supplying a password.
|
|
|
|
<emphasis>guest ok:</emphasis> permítelle aos clientes conectarse sen introducir un contrasinal.
|
|
Translated by
Miguel Anxo Bouzada
|
|
Reviewed by
Miguel Anxo Bouzada
|
|
|
|
Located in
serverguide/C/windows-networking.xml:174(para)
|