Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc admin users list not support #6767

Closed
kellenchen opened this issue Nov 6, 2018 · 10 comments
Closed

mc admin users list not support #6767

kellenchen opened this issue Nov 6, 2018 · 10 comments

Comments

@kellenchen
Copy link

[root@localhost ~]# ./mc admin users list myminio1
mc: Cannot list user sio: unsupported version
[root@localhost ~]# ./mc admin users -h
NAME:
mc admin users - Manage regular users

USAGE:
mc admin users COMMAND [COMMAND FLAGS | -h] [ARGUMENTS...]

COMMANDS:
add Add new users
policy Set policy for user
disable Disable users
enable Enable users
remove Remove users
list List all users

FLAGS:
--config-folder value, -C value Path to configuration folder. (default: "/root/.mc")

@kellenchen kellenchen changed the title mc admin users list not supoort mc admin users list not support Nov 6, 2018
@kellenchen
Copy link
Author

mc admin users add myminio newuser newuser123 getonly

After execute the above command successfully, I can not use the newuser/newuser123 to login in the minio browser. why ?

@kannappanr
Copy link
Contributor

kannappanr commented Nov 6, 2018

@kellenchen I tried $ mc admin users add myminio newuser1 newuser123 readonly Added used newuser1successfully.
trying mc admin users add myminio newuser2 newuser123 getonly mc: <ERROR> Cannot set user policy for new user The canned policy does not exist.

Also, I was able to login to the browser using newuser1 . Listing of added users also worked for me.

I am using the latest released minio and mc

@kellenchen
Copy link
Author

[root@localhost ~]# ./mc version
Version: 2018-11-06T01:12:20Z
Release-tag: RELEASE.2018-11-06T01-12-20Z
Commit-id: b827fac6356f80354a1cf61f43cf5e5b60bbb511

@kellenchen
Copy link
Author

[root@localhost ~]# ./mc admin policies add myminio1 getonly getonly.json
Added policy getonly successfully.
[root@localhost ~]# ./mc admin users add myminio1 newuser newuser123 getonly
Added used newuser successfully.

@kellenchen
Copy link
Author

when i login in, the dialog show The access key ID you provided does not exist in our records

@kellenchen
Copy link
Author

the minio I setup is in distributed mode , and I use mc command on one minio instance.

@harshavardhana
Copy link
Member

The users are loaded every 5 mins on rest of the other nodes

@kellenchen
Copy link
Author

I just login on the node I execute the mc command. It pass not only 5 minutes.

@kellenchen
Copy link
Author

When i use the latest minio, it works.

@lock
Copy link

lock bot commented Apr 19, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants