[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.
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente | ||
es:slackbook:users [2019/02/01 19:23 (UTC)] – [What Are Users and Groups?] slackwarespanol | es:slackbook:users [2019/02/01 20:05 (UTC)] – slackwarespanol | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | <note warning> | ||
- | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
- | |||
====== Gestión de usuarios y grupos ====== | ====== Gestión de usuarios y grupos ====== | ||
===== ¿Qué son los usuarios y los grupos? ===== | ===== ¿Qué son los usuarios y los grupos? ===== | ||
Slackware Linux hereda una fuerte tradición multiusuario de su inspiración UNIX. Esto significa que varias personas pueden usar el sistema a la vez, pero también significa que cada una de estas personas puede tener diferentes permisos. Esto permite a los usuarios evitar que otros modifiquen sus archivos, o permite a los administradores del sistema definir explícitamente lo que los usuarios pueden y no pueden hacer en el sistema. Además, los usuarios no necesitan ser personas reales en absoluto. De hecho, Slackware incluye varias docenas de cuentas de usuarios y grupos predefinidas que los usuarios normales no suelen utilizar. Más bien, estas cuentas permiten al administrador del sistema segmentar el sistema por razones de seguridad. Veremos cómo se hace en el siguiente capítulo sobre permisos de sistemas de archivos. | Slackware Linux hereda una fuerte tradición multiusuario de su inspiración UNIX. Esto significa que varias personas pueden usar el sistema a la vez, pero también significa que cada una de estas personas puede tener diferentes permisos. Esto permite a los usuarios evitar que otros modifiquen sus archivos, o permite a los administradores del sistema definir explícitamente lo que los usuarios pueden y no pueden hacer en el sistema. Además, los usuarios no necesitan ser personas reales en absoluto. De hecho, Slackware incluye varias docenas de cuentas de usuarios y grupos predefinidas que los usuarios normales no suelen utilizar. Más bien, estas cuentas permiten al administrador del sistema segmentar el sistema por razones de seguridad. Veremos cómo se hace en el siguiente capítulo sobre permisos de sistemas de archivos. | ||
- | ===== Managing Users and Groups | + | ===== Administrar usuarios y grupos |
- | === Adding users and groups | + | === Añadiendo usuarios y grupos |
- | + | ||
- | The easiest way to add new users in Slackware is through the use of our | + | |
- | very fine **// | + | |
- | **// | + | |
- | of the new user you wish to create and step you through the process | + | |
- | quickly and easily. It will even create a password for the new user. | + | |
+ | La forma más fácil de agregar nuevos usuarios en Slackware es mediante el uso de nuestro muy fino ** // adduser // ** shell script. ** // adduser // ** le pedirá que ingrese los detalles del nuevo usuario que desea crear y lo guiará a través del proceso de manera rápida y sencilla. Incluso creará una contraseña para el nuevo usuario. | ||
< | < | ||
Línea 83: | Línea 75: | ||
- | The addition of optional groups needs a little explaining. Every user | + | La adición de grupos opcionales necesita un poco de explicación. Cada usuario en Slackware |
- | in Slackware | + | |
- | default, this is the //"users"// | + | |
- | than one group at a time and will inherit all the permissions of every | + | |
- | group they belong to. Typical desktop users will need to add several | + | |
- | group memberships in order to do things like play sound or access | + | |
- | removeable media like cdroms | + | |
- | the up arrow key at this section and a list of default groups for | + | |
- | desktop users will magically appear. You can of course, add to or | + | |
- | remove groups from this listing. | + | |
- | Now that we've demonstrated how to use the interactive | + | Ahora que hemos demostrado cómo usar el programa interactivo |
- | **// | + | |
- | non-interactive tools that you may wish to use. The first is | + | |
- | **// | + | |
- | **// | + | |
- | faster for creating users in batches. This makes it ideal for use in | + | |
- | shell scripts. | + | |
- | a shell script | + | |
- | the heavy lifting. **// | + | |
- | and we can't explain them all here, so refer to its man page for the | + | |
- | complete details. Now, let's make a new user. | + | |
< | < | ||
Línea 113: | Línea 85: | ||
- | Here I have added the user //" | + | Aquí he añadido el usuario |
- | directory as ''/ | + | |
- | **// | + | |
- | default group as //" | + | |
- | for dekstop | + | |
- | does not do any prompting like **// | + | |
- | Unless you want to accept the defaults for everything, you'll need to | + | |
- | tell **// | + | |
- | Now that we know how to add users, we should learn how to add groups. | + | Ahora que sabemos cómo agregar usuarios, debemos aprender cómo agregar grupos. Como habrá adivinado, el comando para hacer esto es ** // groupadd // ** (8). ** // groupadd // ** funciona de la misma manera que ** // useradd // **, pero con muchas menos opciones. El siguiente comando agrega el grupo // " |
- | As you might have guessed, the command for doing this is | + | |
- | **// | + | |
- | **// | + | |
- | **// | + | |
- | following command adds the group //" | + | |
Línea 136: | Línea 96: | ||
- | Deleting users and groups is easy as well. Simply run the | + | Eliminar usuarios y grupos también es fácil. Simplemente ejecuta el comando** // userdel // ** (8) y/o ** // groupdel // ** (8). Por defecto, ** // userdel // ** dejará el directorio de inicio del usuarioen el sistema. Puede eliminar esto con el argumento |
- | **// | + | ===== Otras herramientas de usuario y grupo ===== |
- | **// | + | |
- | **// | + | |
- | on the system. You can remove this with the // | + | |
- | ===== Other User and Group Tools ===== | + | |
- | Several other tools exist for managing users and groups. Perhaps the | + | Existen varias otras herramientas para la gestión de usuarios y grupos. Quizás el más importante es ** // passwd // ** (1). Este comando cambia la contraseña de una cuenta de usuario. Los usuarios normales pueden cambiar sus propias contraseñas solamente, pero root puede cambiar la contraseña de cualquier persona. Además, root puede bloquear una cuenta de usuario con la opción |
- | most important one is **// | + | |
- | command changes a user account' | + | |
- | their own passwords only, but root can change anyone' | + | |
- | root can lock a user account with the // | + | |
- | doesn' | + | |
- | encrypted password to a value that can't be matched. | + | |
- | + | La forma más sencilla de modificar la información de un usuario es la utilidad | |
- | The easiest way for modifying a user's information is the | + | |
- | **// | + | |
- | modifying everything from group membership to home directories. A full | + | |
- | listing of its features won't be given here, so check the man page. | + | |
- | **// | + | |
- | modifying a user's group members. | + | |
- | arguments accomplish this. | + | |
Línea 167: | Línea 110: | ||
- | It important to note the differences in the two commands above. The | + | Es importante tener en cuenta las diferencias en los dos comandos anteriores. El primer comando agrega el usuario |
- | first command adds the user //" | + | |
- | modifying any other groups | + | |
- | makes //" | + | |
- | membership from any other groups, something you will very rarely want | + | |
- | to do! | + | |
+ | Otra herramienta útil es ** // chsh // ** (1) que cambia el shell predeterminado de un usuario. Al igual que ** // passwd // **, los usuarios normales solo pueden cambiar su propio shell, pero el usuario root puede cambiar el de cualquier persona. | ||
- | Another useful tool is **//chsh// | + | La última herramienta que vamos a discutir es ** // chfn // ** (1). Esto se utiliza para ingresar información de identificación sobre el usuario, como su número de teléfono y su nombre real. Esta información se almacena en el archivo '' |
- | user's default shell. Like **//passwd//**, normal | + | |
- | users can only change their own shell, but the root user can change | + | |
- | anyone' | + | |
+ | ===== Gestionar usuarios y grupos manualmente ===== | ||
- | The last tool we're going to discuss is | + | Como la mayoría de las cosas en Slackware Linux, |
- | **// | + | |
- | information on the user such as his phone number and real name. This | + | |
- | information is stored in the '' | + | |
- | retrieved using **// | + | |
- | + | ||
- | ===== Managing Users and Groups Manually ===== | + | |
- | + | ||
- | Like most things in Slackware Linux, | + | |
- | plain-text files. This means that you can edit all the details of a | + | |
- | user, or even create a new user or group simply by editing these files | + | |
- | and doing a few other tasks like creating the user's home directory. Of | + | |
- | course, after you see how this is done you'll appreciate just how | + | |
- | simple the included tools make this task. | + | |
- | + | ||
- | + | ||
- | Our first stop is the ''/ | + | |
- | the information about a user is stored, except for (oddly enough) the | + | |
- | user's password. The reason for this is rather simple. | + | |
- | ''/ | + | |
- | system, so you wouldn' | + | |
- | encrypted. Let's take a quick look at my entry in this file. | + | |
+ | Nuestra primera parada es el archivo '' | ||
< | < | ||
Línea 211: | Línea 128: | ||
- | Each line in this file contains a number of fields seperated by a | + | Cada línea de este archivo contiene varios campos separados por dos puntos. Son, de izquierda a derecha: nombre de usuario, contraseña, UID, UID, campo de comentarios, directorio de inicio y shell. |
- | colon. They are, from left to right: username, password, UID, GUID, a | + | |
- | comment field, home directory, and shell. | + | |
- | password field for every entry is an < | + | |
- | because | + | |
- | password is stored in ''/ | + | |
- | look there. | + | |
Línea 226: | Línea 137: | ||
- | The '' | + | El archivo |
- | encrypted password as you'll notice. The fields here, again from left | + | |
- | to right, are: username, encrypted password, last day the password was | + | |
- | changed, days before the password may be changed again, how many days | + | |
- | before the password expires, days that the account will be disabled | + | |
- | after expiring, when the account was disabled, and a reserved field. | + | |
- | You may notice on some accounts that the various | + | |
- | include very large numbers. The reason for this is that Slackware | + | |
- | counts time from the //" | + | |
- | reasons. | + | |
- | To create a new user account, you'll just need to open these files | ||
- | using **// | ||
- | ''/ | ||
- | defined by your VISUAL variable or your EDITOR variable if VISUAL isn't | ||
- | defined. If neither is present, it will fall back to | ||
- | **//vi//** by default. If you pass the //-s// | ||
- | argument, it will open ''/ | ||
- | important to use **// | ||
- | other editor, because **// | ||
- | file and prevent other programs from editing it right underneath your feet. | ||
+ | Para crear una nueva cuenta de usuario, solo tendrá que abrir estos archivos usando ** // vipw // ** (8). Esto abrirá ''/ | ||
- | That isn't all you'll need to do however; you must also create the | + | Eso no es todo lo que tendrás que hacer sin embargo; también debes crear el directorio de inicio del usuario y cambiar la contraseña del usuario utilizando |
- | user's home directory and change the user's password using | + | |
- | **// | + | |
- | ====== 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 |
+ | * Traducción original por: [[wiki: | ||
<!-- * Contrbutions by [[wiki: | <!-- * Contrbutions by [[wiki: | ||