mc admin user add
Table of Contents
Syntax
Adds new user to the target MinIO deployment.
More description
The following command something something
mc ilm restore myminio/mybucket/object.txt
The command has the following syntax:
mc [GLOBALFLAGS] admin user add \
ACCESSKEY \
SECRETKEY \
ALIAS
Brackets
[]
indicate optional parameters.Parameters sharing a line are mutually dependent.
Parameters separated using the pipe
|
operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
- ALIAS
- Required
The MinIO alias, bucket, and path to the archived object to restore.
Global Flags
This command supports any of the global flags.
Examples
Create a New User
Use mc admin user add
to create a user on an S3-compatible host:
mc admin user add ALIAS ACCESSKEY SECRETKEY
Replace
ACCESSKEY
with the access key for the user. MinIO allows retrieving the access key after user creation through themc admin user info
command.Replace
SECRETKEY
with the secret key for the user. MinIO does not provide any method for retrieving the secret key once set.
Specify a unique, random, and long string for both the ACCESSKEY
and SECRETKEY
.
Your organization may have specific internal or regulatory requirements around generating values for use with access or secret keys.
Behavior
Restored Objects Become HEAD
The restored object copy becomes HEAD for that object namespace regardless of it’s versioning history. This can result in applications returning “stale” data while the local copy exists.
S3 Compatibility
The mc commandline tool is built for compatibility with the AWS S3 API and is tested with MinIO and AWS S3 for expected functionality and behavior.
MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While mc commands may work as documented, any such usage is at your own risk.