Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Invidious
  3. How to change the default admin password?

How to change the default admin password?

Scheduled Pinned Locked Moved Invidious
2 Posts 2 Posters 14 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O Offline
      O Offline
      OrezBodajoy
      wrote last edited by
      #1

      Maybe I am missing something obvious, but I don't see how to change the default admin password.

      This link says to use a postgre user but that user does not exist in the cloudron web terminal.

      jamesJ 1 Reply Last reply
      0
      • O OrezBodajoy

        Maybe I am missing something obvious, but I don't see how to change the default admin password.

        This link says to use a postgre user but that user does not exist in the cloudron web terminal.

        jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote last edited by james
        #2

        @OrezBodajoy
        It is always good to check the official documentation for an app.
        But in this case, it is a bit misleading.
        Since you are using Cloudron, the PostgreSQL access is different.

        Creat an app backup first.

        If you are in the web terminal of your Invidious app, look to the top right corner.
        There is a big green button labeled Postgres.
        You can just click that button and confirm with ENTER. Then you are logged into your Invidious PostgreSQL database.

        From the official documentation you still need to do:

        python3 -c 'import bcrypt; print(bcrypt.hashpw(b"<INSERT PASSWORD HERE>", bcrypt.gensalt(rounds=10)).decode("ascii"))' # python
        mkpasswd --method=bcrypt-a -R 10 # mkpasswd
        

        Now you have your new password hash.
        Connect to your PostgreSQL database with the described button or copy and paste the following into your web-terminal (the button will print the same into your web terminal):

        PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} psql -h ${CLOUDRON_POSTGRESQL_HOST} -p ${CLOUDRON_POSTGRESQL_PORT} -U ${CLOUDRON_POSTGRESQL_USERNAME} -d ${CLOUDRON_POSTGRESQL_DATABASE}
        

        Now you should be able to update the password:

        UPDATE users SET password = 'HASH' WHERE email = 'USERNAME';
        

        I will request an update of the Cloudron documentation for Invidious to include the password reset with the Cloudron way to do it.
        Thanks for reporting this missing documentation and please report back if everything worked out on your part.

        ~Cheers

        1 Reply Last reply
        1
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search