TAILIEUCHUNG - Module Linux essentials - Module 13: System and user security

Module Linux essentials - Module 13 introduce basic security and identifying user types. After studying this chapter students should be able to: Working with root and standard users, understanding system users. | Module 13 System and User Security Exam Objective Basic Security and Identifying User Types Objective Summary Working with Root and Standard Users System Users User accounts and passwords User accounts Files in the /etc directory contain account data. The /etc/passwd file defines some of the account information for user accounts. The /etc/passwd file Each line of the /etc/passwd file relates to a user account. Each line is separated into fields by colon characters. The fields from left to right are as follows: name:password placeholder:user id:primary group id:comment:home directory:shell The /etc/passwd file Field Example Description name root This is the name of the account. password placeholder x The x in the password placeholder field indicates to the system that the password is not stored here, but rather in the /etc/shadow file. user id 0 Each account is assigned a user ID (UID). primary group id 0 When a user creates a file, the file is owned by a group id (GID), the user's primary GID. comment root This field can contain any information about the user, including their real (full) name and other useful information home directory /root This field defines the location of the user's home directory. shell /bin/bash This is the location of the user's login shell. The /etc/shadow file Contains account information related to the user's password. The fields of the /etc/shadow file are: name:password:lastchange:min:max:warn:inactive:expire:reserved The /etc/shadow file Field Example Description name sysadmin This is the name of the account, which matches the account name in the /etc/passwd file. password $6$.rl1 The password field contains the encrypted password for the account. last change 15020 This field contains a number that represents the last time the password was changed. min 5 The password can't be changed again for the specified number of days. max 30 This field is used to force users to change their passwords on a regular basis warn 7 If the

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.