Entradas

Mostrando las entradas etiquetadas como passwd

Basic Linux stuff: The passwd file

The passwd file is located at /etc, and in that file is where the username and other user data is stored when a new user is created or when it is modified. A line that represents the data of a user is written like this: rukia:x:1000:1000:Rukia:/home/rukia:/bin/bash rukia - Is the username. x - This means that the user has a password. Passwords are encrypted and saved in the shadow file. 1000 - The user ID also known as UID. 1000 - The group ID also known as GID. Rukia - This field is the complete name of the user but it also contains other data. For example, when in Ubuntu we create a new user, it asks for a lot of information like room number, telephone, etc., well all this info is saved in this field and it is known as the gecos field. /home/rukia - The home folder. /bin/bash - Is the shell that will be executed by the user when he or she logins at a terminal.

Cosas básicas Linux: El archivo passwd

Estos días he utilizado mucho el archivo passwd por un proyecto y hasta ahora he analizado como está compuesto -.-... Así que publicaré una descripción de como entender este archivo. A lo mejor muchos ya saben o ya hay muchos artículos pero aún así lo voy a poner. Bueno el archivo passwd se encuentra en el directorio /etc y ahí es donde se almacenan el nombre de usuario, y otros datos más cuando se agrega un usuario nuevo o cuando se modifica. Una línea que representa los datos de un usuario está escrita de la siguiente forma: rukia:x:1000:1000:Rukia:/home/rukia:/bin/bash rukia - Es el nombre de usuario. x - Esto quiere decir que el usuario tiene una contraseña. Las contraseñas se almacenan en el archivo shadow de forma encriptada. 1000 - Es el ID de usuario también conocido como UID. 1000 - El ID de grupo también conocido como GID. Rukia - Este campo es el nombre completo del usuario pero también contiene otros datos. Por ejemplo en Ubuntu cuando creamos un nu...