每天一個linux命令(31):/etc/group檔案詳解

來源:互聯網
上載者:User


每天一個linux命令(31):/etc/group檔案詳解 相關連結:每天一個linux命令(1):ls命令http://www.bkjia.com/os/201210/163049.html;每天一個linux命令(2):cd命令http://www.bkjia.com/os/201210/163050.html;每天一個linux命令(3):pwd命令http://www.bkjia.com/os/201210/163462.html;每天一個linux命令(4):mkdir命令http://www.bkjia.com/os/201210/163463.html;每天一個linux命令(5):rm命令http://www.bkjia.com/os/201210/163662.html;每天一個linux命令(6):rmdir命令http://www.bkjia.com/os/201210/164017.html;每天一個linux命令(7):mv命令http://www.bkjia.com/os/201210/164247.html;每天一個linux命令(8):cp命令http://www.bkjia.com/os/201210/164254.html;每天一個linux命令(9):touch命令http://www.bkjia.com/os/201211/165699.html;每天一個linux命令(10):cat命令http://www.bkjia.com/os/201211/165989.html;每天一個linux命令(11):nl命令http://www.bkjia.com/os/201211/165990.html每天一個linux命令(12):more命令http://www.bkjia.com/os/201211/165994.html每天一個linux命令(13):less命令http://www.bkjia.com/os/201211/165998.html每天一個linux命令(14):head命令http://www.bkjia.com/os/201211/166191.html每天一個linux命令(15):tail命令http://www.bkjia.com/os/201211/168702.html每天一個linux命令(16):which命令http://www.bkjia.com/os/201211/168890.html每天一個linux命令(17):whereis命令http://www.bkjia.com/os/201211/168893.html每天一個linux命令(18):locate命令http://www.bkjia.com/os/201211/168895.html每天一個linux命令(19):find命令概覽http://www.bkjia.com/os/201211/168897.html每天一個linux命令(20):find命令之exechttp://www.bkjia.com/os/201211/168901.html每天一個linux命令(21):find命令之xargshttp://www.bkjia.com/os/201211/168903.html每天一個linux命令(22):find命令的參數詳解http://www.bkjia.com/os/201211/168912.html每天一個linux命令(23):Linux目錄結構http://www.bkjia.com/os/201211/170430.html每天一個linux命令(24):Linux檔案類型與副檔名http://www.bkjia.com/os/201211/170431.html每天一個linux命令(25):linux檔案屬性詳解http://www.bkjia.com/os/201211/170434.html每天一個linux命令(26):用SecureCRT來上傳和下載檔案http://www.bkjia.com/os/201211/172022.html每天一個linux命令(27):linux chmod命令http://www.bkjia.com/os/201211/172028.html每天一個linux命令(28):tar命令http://www.bkjia.com/os/201212/172641.html每天一個linux命令(29):chgrp命令http://www.bkjia.com/os/201212/172983.html每天一個linux命令(30):chown命令http://www.bkjia.com/os/201212/173239.html   Linux /etc/group檔案與/etc/passwd和/etc/shadow檔案都是有關於系統管理員對使用者和使用者組管理時相關的檔案。linux /etc/group檔案是有關於系統管理員對使用者和使用者組管理的檔案,linux使用者組的所有資訊都存放在/etc/group檔案中。具有某種共同特徵的使用者集合起來就是使用者組(Group)。使用者組(Group)設定檔主要有 /etc/group和/etc/gshadow,其中/etc/gshadow是/etc/group的加密資訊檔。  www.2cto.com       將使用者分組是Linux系統中對使用者進行管理及控制存取權限的一種手段。每個使用者都屬於某個使用者組;一個組中可以有多個使用者,一個使用者也可以屬於不 同的組。當一個使用者同時是多個組中的成員時,在/etc/passwd檔案中記錄的是使用者所屬的主組,也就是登入時所屬的預設組,而其他組稱為附加組。     使用者組的所有資訊都存放在/etc/group檔案中。此檔案的格式是由冒號(:)隔開若干個欄位,這些欄位具體如下:     組名:口令:組標識號:組內使用者列表     具體解釋:     組名:  組名是使用者組的名稱,由字母或數字構成。與/etc/passwd中的登入名稱一樣,組名不應重複。  www.2cto.com      口令:     口令欄位存放的是使用者組加密後的口令字。一般Linux系統的使用者組都沒有口令,即這個欄位一般為空白,或者是*。     組標識號:     組標識號與使用者標識號類似,也是一個整數,被系統內部用來標識組。別稱GID.     組內使用者列表:     是屬於這個組的所有使用者的列表,不同使用者之間用逗號(,)分隔。這個使用者組可能是使用者的主組,也可能是附加組。     使用執行個體:     輸出:  [root@localhost test6]# cat /etc/grouproot:x:0:root,linuxsirbin:x:1:root,bin,daemondaemon:x:2:root,bin,daemonsys:x:3:root,bin     說明:     我們以root:x:0:root,linuxsir 為例: 使用者組root,x是密碼段,表示沒有設定密碼,GID是0,root使用者組下包括root、linuxsir以及GID為0的其它使用者。
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.