|
35.
|
|
|
Now that <application>Samba</application> is configured, the directory needs to be created and the permissions changed. From a terminal enter:
|
|
|
|
Unha vez configurado <application>Samba</application>, hai que crear o directorio e cambiar os permisos. Nun terminal, escriba:
|
|
Translated by
Miguel Anxo Bouzada
|
|
Reviewed by
Miguel Anxo Bouzada
|
|
|
|
Located in
serverguide/C/windows-networking.xml:193(para)
|
|
36.
|
|
|
sudo mkdir -p /srv/samba/share
|
|
|
|
sudo mkdir -p /srv/samba/share
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
serverguide/C/windows-networking.xml:199(command)
|
|
37.
|
|
|
sudo chown nobody.nogroup /srv/samba/share/
|
|
|
|
sudo chown nobody.nogroup /srv/samba/share/
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
serverguide/C/windows-networking.xml:200(command)
|
|
38.
|
|
|
The <emphasis>-p</emphasis> switch tells mkdir to create the entire directory tree if it doesn't exist. Change the share name to fit your environment.
|
|
|
|
A opción <emphasis>-p</emphasis> indícalle a mkdir que cree a árbore completa ata o directorio se non existira. Cambie o nome «share» por outro que se axuste máis ao seu entorno (p.ex. «compartida»).
|
|
Translated and reviewed by
Miguel Anxo Bouzada
|
|
|
|
Located in
serverguide/C/windows-networking.xml:204(para)
|
|
39.
|
|
|
Finally, restart the <application>samba</application> services to enable the new configuration:
|
|
|
|
Por último, reinicie os servizos de <application>samba</application> para activar a nova configuración:
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
serverguide/C/windows-networking.xml:213(para)
|
|
40.
|
|
|
sudo /etc/init.d/samba restart
|
|
|
|
sudo /etc/init.d/samba restart
|
|
Translated and reviewed by
Dario
|
|
|
|
Located in
serverguide/C/windows-networking.xml:218(command) serverguide/C/windows-networking.xml:331(command) serverguide/C/windows-networking.xml:468(command) serverguide/C/windows-networking.xml:567(command) serverguide/C/windows-networking.xml:937(command) serverguide/C/windows-networking.xml:1047(command) serverguide/C/windows-networking.xml:1162(command) serverguide/C/network-auth.xml:1860(command)
|
|
41.
|
|
|
Once again, the above configuration gives all access to any client on the local network. For a more secure configuration see <xref linkend="samba-fileprint-security"/>.
|
|
|
|
De novo, a configuración anterior permítelle todos os accesos a calquera cliente da rede local. Para unha configuración máis segura vexa <xref linkend="samba-fileprint-security"/>.
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
serverguide/C/windows-networking.xml:226(para)
|
|
42.
|
|
|
From a Windows client you should now be able to browse to the Ubuntu file server and see the shared directory. To check that everything is working try creating a directory from Windows.
|
|
|
|
Desde un cliente Windows debería poder navegar polo servidor de ficheiros de Ubuntu e ver o cartafol compartido. Para comprobar que todo funciona ben, probe a crear un cartafol desde Windows.
|
|
Translated and reviewed by
Fran Diéguez
|
|
|
|
Located in
serverguide/C/windows-networking.xml:232(para)
|
|
43.
|
|
|
To create additional shares simply create new <emphasis>[dir]</emphasis> sections in <filename>/etc/samba/smb.conf</filename>, and restart <emphasis>Samba</emphasis>. Just make sure that the directory you want to share actually exists and the permissions are correct.
|
|
|
|
Para crear máis carpetas compartidas, simplemente cree novas seccións <emphasis>[dir]</emphasis> en <filename>/etc/samba/smb.conf</filename>, e reinicie <emphasis>Samba</emphasis>. Debe asegúrese de que o directorio que desexa compartir existe realmente, e que os seus permisos son correctos.
|
|
Translated by
Miguel Anxo Bouzada
|
|
Reviewed by
Miguel Anxo Bouzada
|
|
|
|
Located in
serverguide/C/windows-networking.xml:237(para)
|
|
44.
|
|
|
Resources
|
|
|
|
Recursos
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
serverguide/C/windows-networking.xml:244(title) serverguide/C/windows-networking.xml:343(title) serverguide/C/windows-networking.xml:700(title) serverguide/C/windows-networking.xml:1080(title) serverguide/C/windows-networking.xml:1288(title) serverguide/C/virtualization.xml:366(title) serverguide/C/virtualization.xml:1168(title) serverguide/C/reporting-bugs.xml:304(title) serverguide/C/remote-administration.xml:491(title) serverguide/C/network-config.xml:569(title) serverguide/C/network-config.xml:824(title) serverguide/C/network-auth.xml:1540(title) serverguide/C/network-auth.xml:1985(title) serverguide/C/network-auth.xml:2589(title) serverguide/C/network-auth.xml:3097(title) serverguide/C/installation.xml:892(title) serverguide/C/installation.xml:1173(title) serverguide/C/databases.xml:122(title) serverguide/C/databases.xml:273(title) serverguide/C/backups.xml:855(title)
|