Enjoy Slackware 15.0!
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
es:slackbook:filesystem_permissions [2019/02/03 02:47 (UTC)] slackwarespanol [chmod, chown, y chgrp] |
es:slackbook:filesystem_permissions [2019/03/02 21:19 (UTC)] rramp [Resumen de permisos] |
||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | <note warning> | ||
- | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
====== Permisos del sistema de archivos ====== | ====== Permisos del sistema de archivos ====== | ||
Línea 23: | Línea 21: | ||
| Otros | r-x | Todos los demás pueden leer y ejecutar | | | Otros | r-x | Todos los demás pueden leer y ejecutar | | ||
- | Los permisos son bastante autoexplicativos, | + | Los permisos son bastante autoexplicativos, |
Línea 34: | Línea 32: | ||
- | Aquí vemos los permisos en mi directorio personal y su propiedad. El directorio es propiedad del usuario alan y los usuarios del grupo. Al usuario se le otorgan todos los derechos (rwx), al grupo solo se le otorgan permisos de lectura y ejecución (r-x), y todos los demás tienen prohibido hacer cualquier cosa. | + | Aquí vemos los permisos en mi directorio personal y su propiedad. El directorio es propiedad del usuario alan y el grupo users. Al usuario se le otorgan todos los derechos (rwx), al grupo solo se le otorgan permisos de lectura y ejecución (r-x), y todos los demás tienen prohibido hacer cualquier cosa. |
===== chmod, chown, y chgrp ===== | ===== chmod, chown, y chgrp ===== | ||
Línea 111: | Línea 109: | ||
- | ** // chmod // ** también puede usar valores de letras junto con <key> ' | + | ** // chmod // ** también puede usar valores de letras junto con <key>''+''</ |
- | **Table 10.3. Alphabetic Permissions** | + | ** Tabla 10.3. Permisos alfabéticos |
- | ^Permission ^Letter Value| | + | ^ Permiso |
- | |Read |r| | + | | Leer | r | |
- | |Write |w| | + | | Escribir |
- | |Execute |x| | + | | Ejecutar |
- | **Table 10.4. Alphabetic Users and Groups** | + | ** Tabla 10.4. Usuarios y grupos alfabéticos |
- | ^Accounts Affected ^Letter Value| | + | ^ Cuentas afectadas |
- | |User/Owner |u| | + | | Usuario |
- | |Group |g| | + | | Grupo | g | |
- | |Others/World |o| | + | | Otros / Mundo | o | |
- | + | Para usar los valores de las letras con **// | |
- | To use the letter values with **// | + | |
- | must specify which set to use them with, either | + | |
- | group, and //" | + | |
- | adding or removing permissions with the //" | + | |
- | sets can be changed at once by separating each with a comma. | + | |
Línea 149: | Línea 142: | ||
-r-xr----- 1 alan users 0 2008-06-06 23:37 d* | -r-xr----- 1 alan users 0 2008-06-06 23:37 d* | ||
</ | </ | ||
+ | Lo que prefieras usar depende completamente de ti. Hay lugares donde uno es mejor que el otro, por lo que un verdadero Slacker lo sabrá de adentro hacia afuera. | ||
+ | ===== SUID, SGID, y el " | ||
+ | Todavía no hemos terminado con los permisos. Hay otros tres // permisos " | ||
- | Which you prefer to use is entirely up to you. There are places where | + | SUID y SGID representan |
- | one is better than the other, so a real Slacker will know both inside | + | |
- | out. | + | |
- | ===== SUID, SGID, and the " | + | |
- | + | ||
- | We're not quite done with permissions just yet. There are three other | + | |
- | //"special"// | + | |
- | SUID, SGID, and the sticky bit. When a file has one or more of these | + | |
- | permissions set, it behaves in special ways. The SUID and SGID | + | |
- | permissions change the way an application is run, while the sticky bit | + | |
- | restricts deletion of files. These permissions are applied with | + | |
- | **// | + | |
- | like read, write, and execute, but with a twist. | + | |
- | + | ||
- | + | ||
- | SUID and SGID stand for //"Set User ID"// | + | |
- | When an application with one of these bits is set, the application runs | + | |
- | with the user or group ownership permissions of that application | + | |
- | regardless of what user actually | + | |
- | executed it. Let's take a look at a common | + | |
- | **// | + | |
Línea 184: | Línea 160: | ||
- | Notice the permissions on **// | + | Observe los permisos en **// |
- | an < | + | |
- | < | + | |
- | **// | + | |
- | it, the process will run as the user //" | + | |
- | that actually executed it. The reason for this is readily apparent as | + | |
- | soon as you look at the two files it modifies. Neither | + | |
- | ''/ | + | |
- | are writable by anyone other than root. Since users need to change | + | |
- | their personal | + | |
- | run as root in order to modify those files. | + | |
- | So what about the sticky bit? The sticky bit restricts the ability to | + | Entonces, ¿qué pasa con el sticky bit? El sticky bit restringe la capacidad de mover o eliminar archivos y solo se establece en directorios. Los usuarios que no son root no pueden mover o eliminar ningún archivo de un directorio con el conjunto de sticky bit a menos que sean los propietarios de ese archivo. Normalmente, |
- | move or delete files and is only ever set on directories. Non-root | + | |
- | users cannot move or delete any files under a directory with the sticky | + | |
- | bit set unless they are the owner of that file. Normally anyone with | + | |
- | write permission to the file can do this, but the sticky bit prevents | + | |
- | it for anyone but the owner (and of course, root). | + | |
- | a common | + | |
< | < | ||
Línea 212: | Línea 171: | ||
- | Naturally, being a directory for the storage of temporary files system | + | Naturalmente, al ser un directorio para el almacenamiento de archivos temporales en todo el sistema, ''/ |
- | wide, ''/ | + | |
- | executable by anyone and everyone. Since any user is likely to have a | + | |
- | file or two stored here at any time, it only makes good sense to | + | |
- | prevent other users from deleting those files, so the sticky bit has | + | |
- | been set. You can see it by the presence of the < | + | |
- | place of the < | + | |
- | + | ** Tabla 10.5. Permisos | |
- | **Table 10.5. SUID, SGID, and "Sticky" | + | ^ Tipo de permiso |
- | ^Permission Type ^Octal Value ^Letter Value| | + | |
|SUID |4 |s| | |SUID |4 |s| | ||
|SGID |2 |s| | |SGID |2 |s| | ||
|Sticky |1 |t| | |Sticky |1 |t| | ||
- | When using octal permissions, you must specify an additional leading | + | Al utilizar permisos octales, debe especificar un valor octal inicial adicional. Por ejemplo, para recrear el permiso en ''/ |
- | octal value. For example, to recreate the permission on | + | |
- | ''/ | + | |
- | permissions on ''/ | + | |
- | Essentially, any time this leading fourth octet isn't specified, | + | |
- | **// | + | |
Línea 240: | Línea 187: | ||
</ | </ | ||
- | + | El uso de los valores de permiso alfabético es ligeramente diferente. Asumiendo que los dos archivos anteriores tienen permisos de 0000 (sin permisos), aquí es cómo los estableceríamos. | |
- | Using the alphabetic permission values is slightly different. Assuming | + | |
- | the two files above have permissions of 0000 (no permissions at all), | + | |
- | here is how we would set them. | + | |
Línea 251: | Línea 195: | ||
</ | </ | ||
- | ====== Chapter Navigation | + | ===== Navegación de capítulos |
- | **Previous Chapter: [[slackbook: | + | **Capítulo anterior: [[:es:slackbook: |
- | **Next Chapter: [[slackbook: | + | **Capítulo siguiente: [[:es:slackbook: |
- | ====== | + | ====== |
<!-- If you copy information from another source, then specify that source --> | <!-- If you copy information from another source, then specify that source --> | ||
- | * Original source: [[http:// | + | * Fuente original: [[http:// |
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> | ||
- | * Originally written by Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson | + | * Escrito originalmente por Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson |
- | <!-- * Contributions | + | * Traducción por: [[wiki: |
+ | <!-- * Contrbutions | ||
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> |