tencent cloud

Cloud File Storage

Releases Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Strengths
Storage Classes and Performance
Use Cases
Recommended Regions
Use Limits
Service Regions and Service Providers
Purchase Guide
Billing Overview
Pricing Overview
General Series Billing
Turbo Series Billing
High-Throughput CFS Billing
Billing Mode
IA ‍Storage Billing
Storage Resource Units
Resource Purchase
Viewing Bills
Arrears Reminder
Getting Started
Creating File Systems and Mount Targets
Using CFS File Systems on Linux Clients
Using CFS File Systems on Windows Clients
Using CFS Turbo on Linux Clients
Using the CFS Client Assistant to Mount File Systems
Operation Guide
Access Management
Managing File Systems
Permission Management
Using Tags
Snapshot Management
Guide for Cross-AZ and Cross-Network Access
Automatically Mounting File Systems
Data Migration Service
User Permission Management
User Quotas
Data Encryption
Data Lifecycle Management
Upgrading Standard File Systems
Practical Tutorial
Selecting Kernels for NFS Clients
Managing Turbo CFS Directories
Terminating Compute Instances
Using CFS on TKE
Using CFS on SCF
Using CFS Turbo on TKE
Using CFS Turbo on TKE Serverless Cluster
Selecting a Network for Turbo CFS
Copying Data
CFS Storage Performance Testing
API Documentation
History
Introduction
API Category
Snapshot APIs
File system APIs
Lifecycle APIs
Other APIs
Data Flow APIs
Making API Requests
Permission Group APIs
Service APIs
Scaling APIs
Data Migration APIs
Data Types
Error Codes
Troubleshooting
Client Use Bottleneck due to Large Number of Small Files or Parallel Requests
FAQs
CFS Service Level Agreement
Contact Us
Glossary
문서Cloud File StorageOperation GuideUser Permission Management

User Permission Management

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-01-22 22:15:48
This document describes how to set the access permissions of users and user groups based on the POSIX syntax in a file system, which can be Standard (NFS), High-Performance (NFS), Standard Turbo, or High-Performance Turbo.

Prerequisites

You have mounted the file system over the Turbo or NFSv3 protocol as instructed in Using CFS Turbo on Linux Clients or Using CFS File Systems on Linux Clients.

Command description

Command
Description
getfacl <filename>
View the current ACL of the file.
setfacl -m g:cfsgroup:w <filename>
Set the write permission for the cfsgroup user group.
setfacl -m u:cfsuser:w <filename>
Set the write permission for the cfsuser user.
setfacl -x g:cfsgroup <filename>
Delete the permission of the players user group.
getfacl file1 | setfacl --set-file=- file2
Copy the ACL of file1 to file2.
setfacl -b file1
Delete all extended ACL rules and retain basic ACL rules (owner, group, and others).
setfacl -k file1
Delete all default rules from file1.
setfacl -R -m g:cfsgroup:rw dir
Grant the cfsgroup user group the permission to read/write files and directories in the dir directory tree.
setfacl -d -m g:cfsgroup:rw dir
Grant the cfsgroup user group the permission to read/write newly created files and directories in the dir directory tree.

Example

sudo useradd cfsuser # Create the `cfsuser` user
sudo useradd otheruser # Create the `otheruser` user
sudo groupadd cfsgroup # Create the `cfsgroup` user group
sudo usermod -g cfsgroup cfsuser # Allocate `cfsuser` to `cfsgroup`
sudo touch file1 # Create a file named `file1`
sudo setfacl -m g:cfsgroup:r-x file1 # Grant the `cfsgroup` user group the permission to read and execute `file1`
sudo setfacl -m u:otheruser:rwx file1 # Grant the `otheruser` user the permission to read/write and execute `file1`


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백