[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

Próxima revisión
Revisión previa
es:howtos:network_services:nfs-quick_and_dirty_setup [2019/02/11 12:16 (UTC)] – creado slackwarespanoles:howtos:network_services:nfs-quick_and_dirty_setup [2019/02/18 20:35 (UTC)] (actual) – [Supuestos] slackwarespanol
Línea 1: Línea 1:
 <!-- 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   ======
  
-Known to work on Slackware 14, 14.1 and 14.2 \\ +Se sabe que funcionan con Slackware 14, 14.1 14.2 \\
  
-====== Assumptions ====== +====== Supuestos ====== 
-1) This HOWTO assumes that you are using a **vanilla install of Slackware** and have **not changed** the default HOSTS_ALLOW, HOSTS_DENY, or firewall rules. \\  +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 firewall. \\ 
-2) For this examplethe shared directory on the server will be /nfs_share \\  +2) Para este ejemploel directorio compartido en el servidor será /nfs_share \\ 
-3) For this examplethe mount point of the NFS share will be /mnt/nfs_share \\  +3) Para este ejemploel punto de montaje del recurso compartido NFS será /mnt/nfs_share \\ 
-4) We want anyone on our subnet (192.168.1.x) to have RW access the share \\  +4) Queremos que cualquier persona en nuestra subred (192.168.1.x) tenga acceso RW al recurso compartido \\ 
- +====== Descripción general ====== 
-====== Overview ====== +1) Configurar el servidor \\ 
-1) Setup the server \\  +2) Configurar el cliente \\ 
-2) Setup the client \\  +3) Montar los directorios NFS en el cliente \\ 
-3) Mount the NFS directories on the client \\  +====== Configuración del servidor ====== 
- +Agregue los recursos compartidos de NFS al archivo / etc / exports \\
-====== Server Setup ====== +
-Add the NFS shares to the /etc/exports file \\ +
 <code>vi /etc/exports</code> <code>vi /etc/exports</code>
-add: \\ +agregue: \\ 
 <file sh /etc/exports>/nfs_share 192.168.1.1/24(rw,sync,no_subtree_check)</file> <file sh /etc/exports>/nfs_share 192.168.1.1/24(rw,sync,no_subtree_check)</file>
  
-Start the NFS and RPC daemons \\ +Inicia los demonios NFS RPC \\
 <code>chmod 755 /etc/rc.d/rc.nfsd <code>chmod 755 /etc/rc.d/rc.nfsd
 chmod 755 /etc/rc.d/rc.rpc chmod 755 /etc/rc.d/rc.rpc
Línea 27: Línea 25:
 /etc/rc.d/rc.rpc start</code> /etc/rc.d/rc.rpc start</code>
  
-Export the shares \\+Exporte los compartidos \\
 <code>exportfs -a</code> <code>exportfs -a</code>
  
-Check to see if the shares are being shared \\ +Compruebe si los recursos compartidos se comparten \\
 <code>exportfs</code> <code>exportfs</code>
  
-====== Client Setup ====== +====== Configuración del cliente ====== 
-Create the mount point \\ +Crear el punto de montaje \\
 <code>mkdir /mnt/nfs_share</code> <code>mkdir /mnt/nfs_share</code>
-Start the RPC daemon \\ +Inicia el demonio RPC \\
 <code>chmod 755 /etc/rc.d/rc.rpc <code>chmod 755 /etc/rc.d/rc.rpc
 /etc/rc.d/rc.rpc start</code> /etc/rc.d/rc.rpc start</code>
  
  
-====== Mounting ====== +====== Montaje ====== 
-On the CLIENT machineyou have options heremanually mountingauto-mount at boot, or semi-auto mount+En la máquina CLIENTEtiene opcionesmontaje manualmontaje automático en el arranque o montaje semiautomático
  
-**MANUALLY MOUNT** \\ +** MONTAJE MANUAL ** \\
 <code>mount my.nfs.server:/nfs_share /mnt/nfs_share</code> <code>mount my.nfs.server:/nfs_share /mnt/nfs_share</code>
  
-**AUTO-MOUNT AT BOOT** \\ +**MONTAJE AUTOMÁTICO EN EL ARRANQUE ** \\ 
-Add the mount command to /etc/fstab \\+Agregue el comando mount a  /etc/fstab \\
 <code> vi /etc/fstab</code> <code> vi /etc/fstab</code>
 add: \\  add: \\ 
 <file sh /etc/fstab>my.nfs.server:/nfs_share /mnt/nfs_share nfs rw,defaults 0 0</file> <file sh /etc/fstab>my.nfs.server:/nfs_share /mnt/nfs_share nfs rw,defaults 0 0</file>
  
-**SEMI-AUTO-MOUNT** \\  +**MONTAJE SEMI AUTOMÁTICO ** \\  
-Add the mount command to /etc/fstab \\+Agregue el comando de montaje a /etc/fstab \\
 <code> vi /etc/fstab</code> <code> vi /etc/fstab</code>
-add: \\ +agregue: \\ 
 <file sh /etc/fstab>my.nfs.server:/nfs_share /mnt/nfs_share nfs rw,noauto 0 0</file> <file sh /etc/fstab>my.nfs.server:/nfs_share /mnt/nfs_share nfs rw,noauto 0 0</file>
-then when you want to mountjust run: \\ +entonces cuando quieras montarsimplemente ejecuta: \\
 <code>mount /mnt/nfs_share</code> <code>mount /mnt/nfs_share</code>
  
-**NOTE ABOUT AUTO_MOUNTING** \\  +** NOTA SOBRE AUTO_MOUNTING ** \\ 
-If you mount at boot and the server machine is unavailableit will cause your client machine to take a long time to boot as the NFS client will make multiple attempts to connect and you will have to wait for it to time-out for each attampt. \\  +Si lo monta durante el arranque y la máquina del servidor no está disponiblela 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 75: 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 83: 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 101: 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 ()