I am trying to change use a different password on mini. I followed the guide. First time around executed it via sudo (since the guide uses /data
folder) and then cleaned everything up (deleted /data as well as .minio dir).
Trying to set the variables…
export MINIO_ROOT_USER=otheruser
export MINIO_ROOT_PASSWORD=otherpass
./minio server /home/debian/data/
… only results in Invalid Credentials
message. Same case for…
export MINIO_ROOT_USER=otheruser
export MINIO_ROOT_PASSWORD=otherpass
export MINIO_ROOT_USER_OLD=minioadmin
export MINIO_ROOT_PASSWORD_OLD=minioadmin
./minio server /home/debian/data/
…which also gives the same result. If i set both variables to minioadmin, it all works.
How do i change the admin account?
EDIT 1:
I also tried executing everything with sudo -E. Doing so, for both options, does nothing (throws same exception).
EDIT 2:
I have tried clean new install of whole machine. Even with that and without ever using sudo
this time, it doesn’t work.
4
Answers
Most likely you have not exported the variables properly or have left the old values in place (or the values you exported via sudo were not there when you started as a normal user). I assume you are following this guide: https://docs.minio.io/docs/minio-server-configuration-guide.html. One note, is that per that guide, you should be removing
MINIO_ROOT_USER_OLD
andexport MINIO_ROOT_PASSWORD_OLD
on subsequent restarts of the server. This works fine for me following the steps from the doc.#minio version go1.16
#secret key must be minimum 8 or more characters long
touch runminio.sh
vi runminio.sh:
./runminio.sh
I have problem with change default user and password too
I try to
and run
finally, I change user to root
and export env again and run the server again
I can use new user and password with user aaa and password bbb
In version
RELEASE.2023-02-27T18-10-45Z
this is no longer an issue:With same commands:
And alias is created accordingly: