Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minio doesn't allow root user change

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.

like image 549
Zerg Overmind Avatar asked Sep 19 '25 20:09

Zerg Overmind


1 Answers

#minio version go1.16

#secret key must be minimum 8 or more characters long

touch runminio.sh

vi runminio.sh:

export MINIO_ROOT_USER=otheruser
export MINIO_ROOT_PASSWORD=otherpass
nohup /usr/local/minio server /home/minio/data > /home/minio/minio.log 2>&1&

./runminio.sh

like image 136
ujun Avatar answered Sep 23 '25 12:09

ujun