---
title: "คัดลอกไฟล์ด้วย Amazon AWS S3 CLI พร้อมกำหนดสิทธิ์"
description: "เปิด term (หรือโปรแกรมที่คล้ายกัน) แล้ววางคำสั่งต่อไปนี้:"
canonical: https://oozou.com/til/amazon-aws-s3-cli-copy-with-set-perms-14
locale: th
date: 2020-10-13
topic: shell
---

# คัดลอกไฟล์ด้วย Amazon AWS S3 CLI พร้อมกำหนดสิทธิ์

> เปิด term (หรือโปรแกรมที่คล้ายกัน) แล้ววางคำสั่งต่อไปนี้:

Published: 2020-10-13 · Topic: [shell](https://oozou.com/th/til-topics/shell) ([markdown](https://oozou.com/th/til-topics/shell.md))

เปิด *term* (หรือโปรแกรมที่คล้ายกัน) แล้ววางคำสั่งต่อไปนี้:

## คัดลอกไฟล์บน S3

- อัปโหลดไฟล์ที่ทุกคนอ่านได้:

```
aws s3 cp source.file s3://bucket/path/dest.file --acl public-read
```

ตัวเลือกของพารามิเตอร์ *--acl* ได้แก่:

- *private* - มองเห็นได้เฉพาะเจ้าของเท่านั้น
- *public-read* - ทุกคนอ่านได้
- *public-read-write* - ทุกคนอ่านและเขียนได้

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/th/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
