mirror of
https://github.com/minio/minio.git
synced 2025-03-03 15:20:08 -05:00
Fix multi-user doc (#6662)
This commit is contained in:
parent
7e0f1eb8b5
commit
0edfb32621
@ -1,5 +1,6 @@
|
|||||||
# Minio multi-user Quickstart Guide [](https://slack.minio.io)
|
# Minio Multi-user Quickstart Guide [](https://slack.minio.io)
|
||||||
This document explains how to add, revoke users. Multi-user as name implies means Minio supports long term users other than default credentials, each of these users can be configured to deny or allow access to buckets, resources.
|
Minio supports multiple long term users in addition to default user created during server startup. New users can be added after server starts up, and server can be configured to deny or allow access to buckets and resources to each of these users. This document explains how to add/remove users and modify their access rights.
|
||||||
|
|
||||||
|
|
||||||
## Get started
|
## Get started
|
||||||
In this document we will explain in detail on how to configure multiple users.
|
In this document we will explain in detail on how to configure multiple users.
|
||||||
@ -8,8 +9,10 @@ In this document we will explain in detail on how to configure multiple users.
|
|||||||
- Install mc - [Minio Client Quickstart Guide](https://docs.minio.io/docs/minio-client-quickstart-guide.html)
|
- Install mc - [Minio Client Quickstart Guide](https://docs.minio.io/docs/minio-client-quickstart-guide.html)
|
||||||
- Install Minio - [Minio Quickstart Guide](https://docs.minio.io/docs/minio-quickstart-guide)
|
- Install Minio - [Minio Quickstart Guide](https://docs.minio.io/docs/minio-quickstart-guide)
|
||||||
|
|
||||||
### 2. Create a new user and policy
|
### 2. Create a new user with canned policy
|
||||||
Create new canned policy `getonly` with `newuser.json` use `mc admin policies`. This policy enables users to download all objects in my-bucketname.
|
Use [`mc admin policies`](https://docs.minio.io/docs/minio-admin-complete-guide.html#policies) to create canned policies.
|
||||||
|
|
||||||
|
Create new canned policy file `getonly.json`. This policy enables users to download all objects under `my-bucketname`.
|
||||||
```json
|
```json
|
||||||
cat > getonly.json << EOF
|
cat > getonly.json << EOF
|
||||||
{
|
{
|
||||||
@ -28,11 +31,14 @@ cat > getonly.json << EOF
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
Create new canned policy by name `getonly` using `getonly.json` policy file.
|
||||||
|
```
|
||||||
mc admin policies add myminio getonly getonly.json
|
mc admin policies add myminio getonly getonly.json
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a new user `newuser` on Minio use `mc admin users`, additionally specify `getonly` canned policy for this `newuser`.
|
Create a new user `newuser` on Minio use `mc admin users`, specify `getonly` canned policy for this `newuser`.
|
||||||
```
|
```
|
||||||
mc admin users add myminio newuser newuser123 getonly
|
mc admin users add myminio newuser newuser123 getonly
|
||||||
```
|
```
|
||||||
@ -49,6 +55,12 @@ Remove the user `newuser`.
|
|||||||
mc admin users remove myminio newuser
|
mc admin users remove myminio newuser
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 5. Change user policy
|
||||||
|
Change the policy for user `newuser` to `putonly` canned policy.
|
||||||
|
```
|
||||||
|
mc admin users policy myminio newuser putonly
|
||||||
|
```
|
||||||
|
|
||||||
### 5. List all users
|
### 5. List all users
|
||||||
List all enabled and disabled users.
|
List all enabled and disabled users.
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user