PowerFlex 如何變更 PFMP 主機上的預設權限 umask 值

Summary: 在 PowerFlex Manager 平台 (PFMP) 叢集部署期間,客戶安全性標準不允許使用預設的 UMASK 值為 0022,因此已將其變更為其他值。CMO需要UMASK 022來設置舵圖。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

問題系統的 UMASK 值 為 027

  •     以 640 權限建立新檔案。
  •     具有 750 個權限的新建立目錄 

 

要瞭解當 umask 設置為 027 時使用哪些許可權創建檔和目錄,只需從 Linux 為 umask 之前的檔和目錄設置的默認許可權中減去該值,該檔為 666 ,目錄為 777

  • 新檔案:666 - 027 = 640
  • 新目錄:777 - 027 = 750

由於此設定,所有 helm 映像在 PVC 中都有 640 個權限。

將 UMASK 變更為 0022

1。更新 UMASK 值。

vi /etc/login.defs
   Update the line UMASK 027 ---> UMASK 022
   save it.

2.載入組態:

   source /etc/profile

3.結束命令列,然後重新登入 
最新組態已更新。
#測試:如果您建立任何新檔案,則會以 644 個權限建立該檔案
 

Affected Products

PowerFlex rack, PowerFlex Appliance, PowerFlex Software
Article Properties
Article Number: 000217888
Article Type: How To
Last Modified: 09 Jun 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.