[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
es:howtos:network_services:nfs-quick_and_dirty_setup [2019/02/15 19:54 (UTC)] – [Mounting] slackwarespanoles:howtos:network_services:nfs-quick_and_dirty_setup [2019/02/18 20:35 (UTC)] (actual) – [Supuestos] slackwarespanol
Línea 1: Línea 1:
-<note warning>En proceso. Victor</note> 
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
-====== NFS - Quick and Dirty Setup ======+====== NFS - Configuración detallada y  Guía Rápida   ======
  
 Se sabe que funcionan con Slackware 14, 14.1 y 14.2 \\ Se sabe que funcionan con Slackware 14, 14.1 y 14.2 \\
  
 ====== Supuestos ====== ====== Supuestos ======
-1) Este HOWTO asume que estás usando ** una instalación de Slackware **  vainilla  ** no has cambiado ** las reglas predeterminadas de HOSTS_ALLOW, HOSTS_DENY o firewall. \\+1) Este HOWTO asume que estás usando ** una instalación de Slackware **  vanilla que  ** no has cambiado ** las reglas predeterminadas de HOSTS_ALLOW, HOSTS_DENY o firewall. \\
 2) Para este ejemplo, el directorio compartido en el servidor será /nfs_share \\ 2) Para este ejemplo, el directorio compartido en el servidor será /nfs_share \\
 3) Para este ejemplo, el punto de montaje del recurso compartido NFS será /mnt/nfs_share \\ 3) Para este ejemplo, el punto de montaje del recurso compartido NFS será /mnt/nfs_share \\
Línea 63: Línea 62:
 Si lo monta durante el arranque y la máquina del servidor no está disponible, la máquina cliente tardará mucho tiempo en iniciarse, ya que el cliente NFS hará múltiples intentos de conexión y tendrá que esperar a que se agote el tiempo de espera para cada intento. . \\ Si lo monta durante el arranque y la máquina del servidor no está disponible, la máquina cliente tardará mucho tiempo en iniciarse, ya que el cliente NFS hará múltiples intentos de conexión y tendrá que esperar a que se agote el tiempo de espera para cada intento. . \\
  
-====== For The Impatient ======  +====== Para el impaciente ====== 
-All the steps with no explanation: \\  +Todos los pasos sin explicación:\\  
-**SERVER:** \\ +** SERVIDOR: ** \\
 <code>echo "/SHARED_DIR YOUR_SUBNET/24(rw,sync,no_subtree_check)" >> /etc/exports <code>echo "/SHARED_DIR YOUR_SUBNET/24(rw,sync,no_subtree_check)" >> /etc/exports
 chmod 755 /etc/rc.d/rc.nfsd chmod 755 /etc/rc.d/rc.nfsd
Línea 73: Línea 72:
 exportfs -a</code> exportfs -a</code>
  
-**CLIENT:** \\ +**CLIENTE:** \\ 
 <code>mkdir /mnt/nfs_share <code>mkdir /mnt/nfs_share
 chmod 755 /etc/rc.d/rc.rpc chmod 755 /etc/rc.d/rc.rpc
Línea 81: Línea 80:
 </code> </code>
  
-====== Problems/Solutions ======+====== Problemas Soluciones ======
  
-PROBLEM: NFS shares won't mount on client box with a "Stale NFS file handleerror.\\  +PROBLEMALos recursos compartidos de NFS no se montarán en la caja del cliente con un error "Manejador de archivo NFS obsoleto". 
-SOLUTION: \\  +SOLUCIÓN: \\ 
-1) Forcibly unmount the directory on the CLIENT machine (if mounted):+1) Desmonte por la fuerza el directorio en la máquina del CLIENTE (si está montado):
 <code>umount -f /mnt/nfs_share</code> <code>umount -f /mnt/nfs_share</code>
-2) Flush the NFS registry on the SERVER machine:+2) Vacíe el registro NFS en la máquina del SERVIDOR:
 <code>exportfs -f</code> <code>exportfs -f</code>
-3) Remount the NFS share+3) Vuelva a montar el recurso NFS
  
 4) No Root Squash: 4) No Root Squash:
-There are many options for NFS and I want to keep this article short but effective so I am leaving out many of the various configuration items that you could doHowever there is one option that is worth mentioning, **no_root_squash**. By default NFS will downgrade any files created with the root permissions to the nobody userThis is security feature that prevents privileges from being shared unless specifically requested. +Hay muchas opciones para NFS y quiero que este artículo sea breve pero efectivo, por lo que omito muchos de los diversos elementos de configuración que podría hacerSin embargo, hay una opción que vale la pena mencionar, ** no_root_squash **. Por defecto, NFS degradará cualquier archivo creado con los permisos de root para el usuario nobody. Esta es una característica de seguridad que evita que los privilegios se compartan menos que se solicite específicamente.Si creo un archivo como usuario root en el cliente en el recurso compartido NFS, de forma predeterminada, ese archivo es propiedad del usuario nobody.
-If I create a file as the root user on the client on the NFS shareby default that file is owned by the nobody user.+
 <code> <code>
  root@client:~# touch /shared/nfs1/file2   root@client:~# touch /shared/nfs1/file2 
Línea 99: Línea 97:
  -rw-r--r-- 1 nobody nogroup 0 Nov 18 18:06 file2  -rw-r--r-- 1 nobody nogroup 0 Nov 18 18:06 file2
 </code> </code>
-Sometimes it is important to share files that are owned as root with the proper permissionsin these cases this can be done by simply adding the **no_root_squash** attribute to the **/etc/exports** configuration.+A veces es importante compartir archivos que son propiedad de la raíz con los permisos adecuadosen estos casos se puede hacer simplemente agregando el atributo ** no_root_squash ** a la configuración ** / etc / exports **.
  
-**Edit the /etc/exports file:**+**Edite /etc/exports file:**
 <code> <code>
 /nfs_share 192.168.1.1/24(rw,sync,no_root_squash) /nfs_share 192.168.1.1/24(rw,sync,no_root_squash)
 </code> </code>
-====== Sources ======+====== Fuentes ======
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 <!-- * Original source: Banging my head in frustration and figuring it out. --> <!-- * Original source: Banging my head in frustration and figuring it out. -->
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
- Originally written by [[wiki:user:arfon | arfon]]+    Escrito originalmente por  [[wiki:user:arfon | arfon]] 
 +    * Traducido por:  [[wiki:user: slackwarespanol | Victor]]    2019/02/15 20:22 (UTC) 
 <!-- * Contributions by [[wiki:user:yyy | User Y]] --> <!-- * Contributions by [[wiki:user:yyy | User Y]] -->
  
 es:howtos:network_services:nfs-quick_and_dirty_setup ()