Skip to main content
Quick Note on Minio Users
  1. Posts/

Quick Note on Minio Users

·128 words·1 min·
Notes Linux Wiki
May Meow
Author
May Meow
MayMeow is a developer and cybersecurity enthusiast with a passion for cryptography, DevSecOps, and open-source contributions. They enjoy creating tools that strengthen digital security, blending creativity and technology to innovate in fields like PHP and .NET. Always exploring new frontiers in tech, MayMeow is dedicated to safeguarding the digital landscape through their work.

Hi! I want to show you how you can add new user on your minio server and how you can assign him access rights to selected folders by creating policy.

Create user

mc admin user add mystorage <NEW-USER-ACCESS-KEY> <NEW-USER-SECRET-KEY>

New users dont have any access on server, You can just login so you will need to setup policy and assign it to newly created user

Create Bucket

mc mb mystorage/my-site

Create policy.

Add this policy content to policy-name.json.

{
    "Version": "2012-10-17",
    "Statement": [
      {
        "Action": [
          "s3:GetObject",
          "s3:PutObject",
          "s3:DeleteObject",
          "s3:GetBucketLocation",
          "s3:ListBucket",
          "s3:ListAllMyBuckets"
        ],
        "Effect": "Allow",
        "Resource": [
          "arn:aws:s3:::my-site/*"
        ],
        "Sid": "Public"
      }
    ]
  }

Install policy to server

mc admin policy add mystorage policy-name policy-name.json

Assign policy to user

mc admin policy set mystorage "policy-name" user=<NEW-USER-ACCESS-KEY>

That’s all!

Reply by Email

Related

Update User Guid to Match Existing User in Microsoft 365 Azure Ad
·352 words·2 mins
Administration Guide Notes Microsoft Wiki Azure
Settig Up SSH Keys for Ubuntu
·681 words·4 mins
Linux Ubuntu Security Tutorials
Initial Server Setup on Cloud Services
·398 words·2 mins
Administration Fundamentals Linux Ubunutu Tutorial