Add default canned policies (#6690)

This commit is contained in:
Harshavardhana
2018-10-24 17:14:27 -07:00
committed by kannappanr
parent e6252dee5a
commit fde8c38638
3 changed files with 80 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ In this document we will explain in detail on how to configure multiple users.
- Install Minio - [Minio Quickstart Guide](https://docs.minio.io/docs/minio-quickstart-guide)
### 2. Create a new user with canned policy
Use [`mc admin policies`](https://docs.minio.io/docs/minio-admin-complete-guide.html#policies) to create canned policies.
Use [`mc admin policies`](https://docs.minio.io/docs/minio-admin-complete-guide.html#policies) to create canned policies. Server provides a default set of canned policies namely `writeonly`, `readonly` and `readwrite` *(these policies apply to all resources on the server)*. These can be overridden by custom policies using `mc admin policies` command.
Create new canned policy file `getonly.json`. This policy enables users to download all objects under `my-bucketname`.
```json