mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
update README.md (#6893)
This commit is contained in:
@@ -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. 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.
|
||||
Use [`mc admin policy`](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 policy` command.
|
||||
|
||||
Create new canned policy file `getonly.json`. This policy enables users to download all objects under `my-bucketname`.
|
||||
```json
|
||||
@@ -35,36 +35,36 @@ EOF
|
||||
|
||||
Create new canned policy by name `getonly` using `getonly.json` policy file.
|
||||
```
|
||||
mc admin policies add myminio getonly getonly.json
|
||||
mc admin policy add myminio getonly getonly.json
|
||||
```
|
||||
|
||||
Create a new user `newuser` on Minio use `mc admin users`, specify `getonly` canned policy for this `newuser`.
|
||||
Create a new user `newuser` on Minio use `mc admin user`, specify `getonly` canned policy for this `newuser`.
|
||||
```
|
||||
mc admin users add myminio newuser newuser123 getonly
|
||||
mc admin user add myminio newuser newuser123 getonly
|
||||
```
|
||||
|
||||
### 3. Disable user
|
||||
Disable user `newuser`.
|
||||
```
|
||||
mc admin users disable myminio newuser
|
||||
mc admin user disable myminio newuser
|
||||
```
|
||||
|
||||
### 4. Remove user
|
||||
Remove the user `newuser`.
|
||||
```
|
||||
mc admin users remove myminio newuser
|
||||
mc admin user remove myminio newuser
|
||||
```
|
||||
|
||||
### 5. Change user policy
|
||||
Change the policy for user `newuser` to `putonly` canned policy.
|
||||
```
|
||||
mc admin users policy myminio newuser putonly
|
||||
mc admin user policy myminio newuser putonly
|
||||
```
|
||||
|
||||
### 5. List all users
|
||||
List all enabled and disabled users.
|
||||
```
|
||||
mc admin users list myminio
|
||||
mc admin user list myminio
|
||||
```
|
||||
|
||||
### 6. Configure `mc`
|
||||
|
||||
Reference in New Issue
Block a user