標籤:logs info job form home ntc 基本 named usr
1.使用者:表示符,憑證
2.使用者組:表示符
進程也是有屬主和屬組的
安全上下文(secure context):
使用者:UID,/etc/pawwd
組:GID ,/etc/group
影子口令:
使用者:/etc/shadow
組:/etc/gshadow
使用者類別:
管理員:uid=0
普通使用者:1-65535
系統使用者1-499(後台進程的屬主)
一般使用者500-60000
使用者組類別:
基本組:使用者的預設組
私人組: 在建立使用者時,如果沒有給使用者指定其所屬的組,系統會預設給使用者建立一個和使用者同名的組。
附加組:
進程被發起之前是個可執行檔,檔案執行之前的許可權,進程的許可權是進程發起者的身份(進程可以使用那些資源檔,由發起者決定,不是檔案的所屬者)
[[email protected] eric usr]# whatis passwdpasswd (1) - update user‘s authentication tokenspasswd (5) - password filepasswd [sslpasswd] (1ssl) - compute password hashes[[email protected] eric usr]# man 5 passwdThe field descriptions are: account the name of the user on the system. It should not contain capital letters. password the encrypted user password, an asterisk (*), or the letter ‘x‘. (See pwconv(8) for an expla- nation of ‘x‘.) UID the numerical user ID. GID the numerical primary group ID for this user. GECOS This field is optional and only used for informational purposes. Usually, it contains the full username. GECOS means General Electric Comprehensive Operating System, which has been renamed to GCOS when GE’s large systems division was sold to Honeywell. Dennis Ritchie has reported: "Sometimes we sent printer output or batch jobs to the GCOS machine. The gcos field in the password file was a place to stash the information for the $IDENTcard. Not elegant." directory the user’s $HOME directory. shell the program to run at login (if empty, use /bin/sh). If set to a non-existing executable, the user will be unable to login through login(1).使用者預設shell
linux筆記_day06