2.27linux和windows互傳檔案 3.1 使用者設定檔和密碼設定檔 3.2 使用者組管理 3.3 使用者管理

來源:互聯網
上載者:User

標籤:2.27linux和windows互傳檔案 3.1 使用者設定檔和密碼設定檔 3.2 使用者組管理 3.3 使用者管理

2.27linux和windows互傳檔案

3.1 使用者設定檔和密碼設定檔

3.2 使用者組管理

3.3 使用者管理


2.27 linux和windows互傳檔案

首相只能使用遠程工具

xshell  、securecrt

首先安裝一個包

yum install  -y lrzsz

sz + 檔案名稱   把linux 上的檔案 傳到  windows上

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/4AC2AC81926D4501A5C79A71F7ECE200/6587" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/E12A8150DF4F44ED8E7B29EC0DD3B94C/6589" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/F287E33DBD80423CA646145CE521F8DA/6619" style="height:auto;margin-top:8px;border:0px;" />

把 linux 上的 4.txt 傳到windows 上

使用rz 斷行符號

就可以吧windows 上的檔案傳到linux 下 的目前的目錄下

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/5C2373BDB772452E96E509538F2FA07F/6610" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/1E9C18D30A6A444898E256A3D7EADEE4/6608" style="height:auto;margin-top:8px;border:0px;" />

傳輸windows 上的bij.txt 到目前的目錄下

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/DAE12B9CB8C74C38876A9C1B80193B86/6629" style="height:auto;margin-top:8px;border:0px;" />

3.1 使用者設定檔和密碼設定檔

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/7C92EAE8456E45F7996931E78D89205E/6612" style="height:auto;margin-top:8px;border:0px;" />

這個是專門控制使用者密碼的檔案

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/B0B4C77CC7C74CABB0DAE19A766CC751/6615" style="height:auto;margin-top:8px;border:0px;" />

看/etc/shadow 檔案的 前面1行 和/etc/shadow 檔案的後2行

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/E1E5053698AD4B8BB53E62D3ECA07356/6623" style="height:auto;margin-top:8px;border:0px;" />

給aming使用者佈建一個密碼

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/002EF9C95DE84F4AA1C45809B8586B83/6630" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/2C2F2DF41D6A4B79BA3FBDBD1F2D7E56/6609" style="height:auto;margin-top:8px;border:0px;" />

man shadow 查看

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/1479E645947642D0B70D24C0E7F947C9/6613" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/A356AB8F54EC44A8809C0617899AFE42/6611" style="height:auto;margin-top:8px;border:0px;" />

3.2 使用者組管理

使用者組密碼設定檔

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/CD30045FB95341D0974CE1E6BFA79E71/6620" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/33F60DDB96D34F69BEC5CFEF9C7F9F7C/6617" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/69D3494CA0CE4EAB831E8E5EBBFB0AAD/6632" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/10D31946F0A74C42B55A3963897BC4B6/6635" style="height:auto;margin-top:8px;border:0px;" />

增加一個組 grp1  查看最後一行

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/87A6A513A6DE4128B8B33B4D9F1F0B7E/6633" style="height:auto;margin-top:8px;border:0px;" />

增加一個組 grp2 定義gid 為1005

普通組的

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/BEDAA5F07DA241FA864C0018A354E7C2/6627" style="height:auto;margin-top:8px;border:0px;" />

刪掉組grp1

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/C4B090680D8D44BD855F8E7FE1B5A72A/6634" style="height:auto;margin-top:8px;border:0px;" />

刪除群組user1

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/D73D238985F34D8D88DBE3F1DFB5BB53/6636" style="height:auto;margin-top:8px;border:0px;" />

失敗了,因為user1裡面有使用者,如果想刪除一個組,組裡面不能有使用者

3.3 使用者管理

增加一個使用者user2

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/AC5BC223FA1142018D36C6899DF52DD9/6624" style="height:auto;margin-top:8px;border:0px;" />

普通使用者uid 從1000開始

建立使用者 user3  指定uid 為1005 指定組為 grp2

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/0006E07EA86941EC8FE06592E82A46E7/6621" style="height:auto;margin-top:8px;border:0px;" />

建立使用者user4  指定uid 1006  指定組為grp2  指定家目錄 /home/aming111  指定shell

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/F473A60643494683AD07C9C05EB75524/6622" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/95F5C5ACA2BF4CF1B5E9C7550C946ACA/6637" style="height:auto;margin-top:8px;border:0px;" />

建立使用者user5 的同事不建立家目錄

但是家目錄還是有的 ,是/home/user5     只是這個目錄不存在

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/9D445738ACA44C94807EF93DE45C2C96/6625" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/4440B43393994650AED89C270FC30CBB/6628" style="height:auto;margin-top:8px;border:0px;" />

新建立的 uid  會從  自然  從1006開始往後算

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/65696147080E4E38A5AF2381C7A6E738/6618" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/9619092F9611443CA92111AC61DDBC75/6626" style="height:auto;margin-top:8px;border:0px;" />

建立使用者的 uid  會自己增加

而  gid 和上面的數字沒有關係 ,他不會根據gid 去自己增加 ,僅僅根據uid 增加

useradd  adduser 是一樣的命令

刪除使用者

userdel

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/A54BFA52B3B54008AE6726085C93D9A4/6614" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/906754E1901549D2A78384FF3D11433D/6616" style="height:auto;margin-top:8px;border:0px;" />

650) this.width=650;" src="http://note.youdao.com/yws/public/resource/58f068e7e4922c15771ee2ef3360a34e/xmlnote/9C20954A7E944FA4B21F6213DC376BB5/6631" style="height:auto;margin-top:8px;border:0px;" />

userdel -r  刪除使用者 同時刪除使用者的家目錄


2.27linux和windows互傳檔案 3.1 使用者設定檔和密碼設定檔 3.2 使用者組管理 3.3 使用者管理

相關文章

聯繫我們

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