linux筆記_day06

來源:互聯網
上載者:User

標籤: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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.