The Linux Programming Interface: a linux and unix system Programming Handbook



tải về 6.93 Mb.
Chế độ xem pdf
trang10/806
Chuyển đổi dữ liệu08.07.2022
Kích6.93 Mb.
#52607
1   ...   6   7   8   9   10   11   12   13   ...   806
The Linux Programming Interface

8
USERS AND GROUPS
 
153
8.1
The Password File: /etc/passwd ................................................................................... 153
8.2
The Shadow Password File: /etc/shadow ...................................................................... 155
8.3
The Group File: /etc/group......................................................................................... 155
8.4
Retrieving User and Group Information ........................................................................ 157
8.5
Password Encryption and User Authentication............................................................... 162
8.6
Summary.................................................................................................................. 166
8.7
Exercises .................................................................................................................. 166
9
PROCESS CREDENTIALS
 167
9.1
Real User ID and Real Group ID.................................................................................. 167
9.2
Effective User ID and Effective Group ID....................................................................... 168
9.3
Set-User-ID and Set-Group-ID Programs ........................................................................ 168
9.4
Saved Set-User-ID and Saved Set-Group-ID ................................................................... 170
9.5
File-System User ID and File-System Group ID................................................................ 171
9.6
Supplementary Group IDs .......................................................................................... 172
9.7
Retrieving and Modifying Process Credentials............................................................... 172
9.7.1
Retrieving and Modifying Real, Effective, and Saved Set IDs ...................... 172
9.7.2
Retrieving and Modifying File-System IDs ................................................. 178
9.7.3
Retrieving and Modifying Supplementary Group IDs ................................. 178
9.7.4
Summary of Calls for Modifying Process Credentials ................................. 180
9.7.5
Example: Displaying Process Credentials ................................................. 182
9.8
Summary.................................................................................................................. 183
9.9
Exercises .................................................................................................................. 184

tải về 6.93 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   6   7   8   9   10   11   12   13   ...   806




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương