server 建立大量帳號 分配目錄

2021-08-20 19:12:07 字數 413 閱讀 3091

1、建立群組 fmgroup,並且新增5個使用者,每個使用者的密碼是pd。

#!/bin/bash

groupadd fmgroup

for username in fm1 fm2 fm3 fm4 fm5

do useradd -g fmgroup $username

echo

"pd" | passwd --stdin $username //設定每個使用者的密碼為pd

done

2、為以上5個使用者建立共享目錄,目錄屬於fmgroup群組。每個人可以修改該目錄的任意檔案。

sgid: 在目錄上設定sgid,可以使該目錄下的任何檔案、資料夾的群組都是設定的群組(fmgroup)。

許可權設定:chmod 2770 /home/vg

建立多個Git帳號

第一步 進入ssh資料夾 cd ssh 第二步 獲取git的金鑰 ssh keygen t rsa b 4096 c email email.com f id rsa github id rsa github 是金鑰檔案 第三步 複製金鑰 clip ssh id rsa github.pub 第四步...

oracle建立帳號SQL

建立使用者 create user username identified by password 建立了使用者 username,密碼為 password 對使用者授權 grant connect,resource to username 對使用者username授予了連線資料庫和訪問資源的許可權...

eclipse無法建立Server

報錯 cannot create a server using the selected type 1.退出eclipse 2.到 工程目錄下 metadata plugins org.eclipse.core.runtime settings 3.把 org.eclipse.wst.server....