Skip to content

How to change the admin password? #82

Answered by buhtigpater
buhtigpater asked this question in Q&A
Discussion options

You must be logged in to vote

got it!

  1. backup the existing config file

    cd /var/www/baikal/config
    cp -p baikal.yaml baikal.yaml_keep
  2. generate a new password hash

    echo -n 'admin:BaikalDAV:MyNewTopSecretPassword' | sha256sum | cut -d' ' -f1`
    # new password hash: c06c5eedc0950a347fdffc7270605db834a4d57ece3cf88bb2924723f1edc900
  3. get old password hash

    grep admin_passwordhash baikal.yaml
    # admin_passwordhash: 41739d5e231d38110d4c5e8c33dd5b4d4f11246d8d02aafa78ce599455e15b0f
  4. replace old hash with new hash

    sed 's/old password hash/new password hash/' baikal.yaml.keep > baikal.yaml`

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@buhtigpater
Comment options

Comment options

You must be logged in to vote
1 reply
@ckulka
Comment options

Answer selected by ckulka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants