6
LINUX USERS AND GROUPS: Done by: fatma almurr

Linux users and groups:

  • Upload
    hasad

  • View
    36

  • Download
    0

Embed Size (px)

DESCRIPTION

Done by: fatma almurr. Linux users and groups:. Username Password By default, all user home directories are created and maintained in the /home directory. However, the root user’s home directory is /root. How Linux User Accounts Work. - PowerPoint PPT Presentation

Citation preview

Page 1: Linux users and groups:

LINUX USERS AND GROUPS:Done by: fatma almurr

Page 2: Linux users and groups:

HOW LINUX USER ACCOUNTS WORK

Username Password By default, all user home directories

are created and maintained in the /homedirectory.

However, the root user’s home directory is /root

Page 3: Linux users and groups:

WHERE LINUX USER ACCOUNTS ARE STORED

Linux is a very flexible operating system. One of its flexible features is the location of user accounts on the system. When you originally installed the system, your distribution may have given you several options for where you wanted to store youruser accounts. This screen allows you to choose from the following authentication methods:

Page 4: Linux users and groups:

LOCAL OPTION

/etc/passwd This file contains the user account information for your system.

/etc/shadow This file contains passwords for your user accounts.

/etc/group This file contains your system’s groups.

Page 5: Linux users and groups:

HOW LINUX GROUPS WORK

If your Linux system has been configured to use local authentication, your groups are defined in the /etc/group file. Each record is composed of the following four fields:

Group:Password:GID:Users Group Specifies the name of the group. In

the example above, the name of the group is video.

Password Specifies the group password.

Page 6: Linux users and groups:

GID Specifies the group ID (GID) number of the group.

Users Lists the members of the group.

As with /etc/shadow, each line in /etc/gshadow represents a record for a single group. Each record is composed of the following fields: Group_Name:Password:Group_Admins:Group_Members