Skip to main content
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

從CIFS稽核共用區移除使用者或群組

貢獻者

您無法移除上次允許存取稽核共用的使用者或群組。

您需要的產品
  • 您的「Passwords.txt」檔案含有root帳戶密碼(可在上述套件中找到)。

  • 您有「Configuration.TXT」檔案(可在上述套件中找到)。

關於這項工作

透過CIFS/Samba進行的稽核匯出已過時、將在未來StorageGRID 的版本中移除。

步驟
  1. 登入主要管理節點:

    1. 輸入下列命令:「sh admin@_primary管理節點IP」

    2. 輸入「passwords.txt」檔案中所列的密碼。

    3. 輸入下列命令以切換至root:「u -」

    4. 輸入「passwords.txt」檔案中所列的密碼。

      以root登入時、提示會從「$」變更為「#」。

  2. 啟動CIFS組態公用程式:「config_CIFs.rb」

    ---------------------------------------------------------------------
    | Shares                 | Authentication         | Config          |
    ---------------------------------------------------------------------
    | add-audit-share        | set-authentication     | validate-config |
    | enable-disable-share   | set-netbios-name       | help            |
    | add-user-to-share      | join-domain            | exit            |
    | remove-user-from-share | add-password-server    |                 |
    | modify-group           | remove-password-server |                 |
    |                        | add-wins-server        |                 |
    |                        | remove-wins-server     |                 |
    ---------------------------------------------------------------------
  3. 開始移除使用者或群組:「移除使用者自共用區」

    系統會顯示管理節點可用稽核共用的編號清單。稽核共用會標示為稽核匯出。

  4. 輸入稽核共用區的編號:「nap_share_number

  5. 當系統提示您移除使用者或群組時:「使用者」或「群組」

    隨即顯示稽核共用的使用者或群組編號清單。

  6. 輸入您要移除的使用者或群組對應的號碼:「number

    稽核共用區將會更新、且使用者或群組不再允許存取稽核共用區。例如:

    Enabled shares
     1. audit-export
    Select the share to change: 1
    Remove user or group? [User/group]: User
    Valid users for this share
    1. audituser
    2. newaudituser
    Select the user to remove: 1
    
    Removed user "audituser" from share "audit-export".
    
    Press return to continue.
  7. 關閉CIFS組態公用程式:「Exit(結束)」

  8. 如果StorageGRID 此功能包括其他站台的管理節點、請視需要停用每個站台的稽核共用。

  9. 設定完成時、請登出每個命令Shell:「exit」