[GH-ISSUE #226] How to create Admin User on terminal? #180

Closed
opened 2026-02-26 09:36:32 +03:00 by kerem · 1 comment
Owner

Originally created by @BoBBer446 on GitHub (Apr 4, 2017).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/226

Hey, i try to write an awesome Script to Administrate your own server. :D:D

I have a problem:
I refer the SALTS from the website

PATH_TO_VMA_SALTS="/root/vma.txt"
wget "http://${MYDOMAIN}/vma/auth/setup" -O vma.txt 

VMA_SECURITY_SALT=$(grep -Pom 1 "(?<=^securitysalt                       = ).*$" $PATH_TO_VMA_SALTS)
VMA_REMEMBERME_SALT=$(grep -Pom 1 "(?<=^resources.auth.oss.rememberme.salt = ).*$" $PATH_TO_VMA_SALTS)
MAILBOX_PASSWORD_SALT=$(grep -Pom 1 "(?<=^defaults.mailbox.password_salt     = ).*$" $PATH_TO_VMA_SALTS)

echo "VMA_SECURITY_SALT"
echo $VMA_SECURITY_SALT
echo "-----------------------"

echo "VMA_REMEMBERME_SALT"
echo $VMA_REMEMBERME_SALT
echo "-----------------------"

echo "MAILBOX_PASSWORD_SALT"
echo $MAILBOX_PASSWORD_SALT
echo "-----------------------"

However, I do not know how I can create an admin user. Is there a solution to this in your great project?

Originally created by @BoBBer446 on GitHub (Apr 4, 2017). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/226 Hey, i try to write an awesome Script to Administrate your own server. :D:D I have a problem: I refer the SALTS from the website ``` PATH_TO_VMA_SALTS="/root/vma.txt" wget "http://${MYDOMAIN}/vma/auth/setup" -O vma.txt VMA_SECURITY_SALT=$(grep -Pom 1 "(?<=^securitysalt = ).*$" $PATH_TO_VMA_SALTS) VMA_REMEMBERME_SALT=$(grep -Pom 1 "(?<=^resources.auth.oss.rememberme.salt = ).*$" $PATH_TO_VMA_SALTS) MAILBOX_PASSWORD_SALT=$(grep -Pom 1 "(?<=^defaults.mailbox.password_salt = ).*$" $PATH_TO_VMA_SALTS) echo "VMA_SECURITY_SALT" echo $VMA_SECURITY_SALT echo "-----------------------" echo "VMA_REMEMBERME_SALT" echo $VMA_REMEMBERME_SALT echo "-----------------------" echo "MAILBOX_PASSWORD_SALT" echo $MAILBOX_PASSWORD_SALT echo "-----------------------" ``` However, I do not know how I can create an admin user. Is there a solution to this in your great project?
kerem closed this issue 2026-02-26 09:36:32 +03:00
Author
Owner

@barryo commented on GitHub (May 16, 2020):

Hi @BoBBer446 - only way to currently create an admin user is to insert a row directly into the database.

<!-- gh-comment-id:629624967 --> @barryo commented on GitHub (May 16, 2020): Hi @BoBBer446 - only way to currently create an admin user is to insert a row directly into the database.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#180
No description provided.