How to decode x-amz-meta-file-acl

0

When using an SMB file share on S3 File Gateway, the file level ACLs at the windows as stored as object meta data on s3. What format is this attribute being stored as? How can I decode it to a human readable format?

"file-acl" or "x-amz-meta-file-acl"

$ aws s3api head-object --bucket storage-gateway-user1581 --key user1581/filename.xlsx
{
    "AcceptRanges": "bytes",
    "LastModified": "2023-10-25T19:58:22+00:00",
    "ContentLength": 14984,
    "ETag": "\"25b3b9c62nned0fgffat5b28f3b21d6f\"",
    "ContentType": "application/octet-stream",
    "ServerSideEncryption": "AES256",
    "Metadata": {
        "user-agent": "aws-storage-gateway",
        "user-agent-id": "sgw-84178D7XD",
        "aws-sgw": "fe2e0cfb07ecdf5d1c094b26c5630853780877025edfb37f3f2b6c0cf2407694",
        "file-acl": "EQUFFajv2K4G2IvQ7QSHyu/ZAtHUGgUFFajv2F6G2IvQ7QSHyu/ZAoEEjAQDAACQqQUFFajv2K4G2IvQ7QSHyu/ZAtb4xAYAAJCpBAAVqO/YrgbYi9DtBIfK79kCs9WIBgAQ+f8BGQA=",
        "file-ctime": "1698263901160000000ns",
        "file-dosattr": "32",
        "file-owner": "503483",
        "file-permissions": "0777",
        "file-group": "67179",
        "file-mtime": "1696618082735595800ns"
    }
}

1개 답변
0

The ACLs are encoded for use by the storage gateway only and are required to keep the gateway working correctly. You should not modify these fields outside the gateway.

AWS
답변함 7달 전
  • I have data in S3 bucket and I want to now present is as SMB share(using file gateway). We know which ACLs to apply to specific files before they are accessed via file gateway. Knowing how to decode will help me apply the permissions by updating object metadata(even before they are presented via file gateway) rather than mounting the smb fileshare on a different server, then apply ACLs and then re-share to end users.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠