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. SnappyMail
  3. problem logging into /?admin

problem logging into /?admin

Scheduled Pinned Locked Moved Solved SnappyMail
10 Posts 5 Posters 1.8k Views 5 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.
  • P Offline
    P Offline
    perler
    wrote on last edited by
    #1

    coming from rainloop some things changed in regard to login to the ../?admin URL.

    this

    Admin panel
    The admin panel is located at /?admin and is disabled by default.
    
    To enable it, open a File manager and edit the file /app/data/_data_/_default_/configs/application.ini. Set the value of allow_admin_panel to On.
    
    You can now login with the username admin. The password is located at /app/data/_data_/_default_/admin_password.txt.
    
    Restart the app for the changes to take effect.
    

    from here: https://docs.cloudron.io/apps/snappymail/ doesn't seem to work in my app.

    I found that I have a line

    admin_password =
    

    in /app/data/data/default/configs/application.ini in addition to the file /app/data/data/default/admin_password.txt which seems redundant.

    anyways, no combination of passwords in any of these files helped (app has been restarted)

    girishG 1 Reply Last reply
    1
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #2

      See

      @jdaviescoates said in admin panel - authentication failed:

      @perler said in admin panel - authentication failed:

      that's not my point. there is a line
      

      admin_password =
      (not allow_admin_panel = ) AND the file admin_password.txt which seems redundant.
      I will open a thread in the snappymail categorie, thanks @jdaviescoates

      I see what you mean.

      But on a new install I don't have any admin_password =

      But nor do I have any admin_password.txt file to edit!

      Ah, I think that file gets created on the restarted after enabling allow_admin_panel = On

      I had manually created and written a pw just before the restart, but that didn't work because the restart generated the pw and inserted it into that file.

      But now I'm in:

      Screenshot from 2022-08-08 14-41-32.png

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      1
      • jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by jdaviescoates
        #3

        If you start with a new install that admin_password = will not be there.

        I just tested and these instructions definitely work:

        1. install Snappymail at yourdomain.coop
        2. Use the File Manager to edit /app/data/_data_/_default_/configs/application.ini so that allow_admin_panel = On
        3. Visit yourdomain.coop/?admin (doing so generates the admin_password.txt file and writes the pw inside it)
        4. Use the File Manage to open app/data/_data_/_default_/admin_password.txt and copy the password that is now there.
        5. Browse to yourdomain.coop/?admin again
        6. login using user: admin pw: what you copied in step 4.
        7. Reset the admin password again using the admin user interface.

        No app restarts necessary, see:

        @staff I think the main problem with the docs is you don't include

        1. In order for the admin_password.txt file to be generated you have to visit /@admin first
        2. that the admin username is admin

        I use Cloudron with Gandi & Hetzner

        girishG 1 Reply Last reply
        1
        • P perler

          coming from rainloop some things changed in regard to login to the ../?admin URL.

          this

          Admin panel
          The admin panel is located at /?admin and is disabled by default.
          
          To enable it, open a File manager and edit the file /app/data/_data_/_default_/configs/application.ini. Set the value of allow_admin_panel to On.
          
          You can now login with the username admin. The password is located at /app/data/_data_/_default_/admin_password.txt.
          
          Restart the app for the changes to take effect.
          

          from here: https://docs.cloudron.io/apps/snappymail/ doesn't seem to work in my app.

          I found that I have a line

          admin_password =
          

          in /app/data/data/default/configs/application.ini in addition to the file /app/data/data/default/admin_password.txt which seems redundant.

          anyways, no combination of passwords in any of these files helped (app has been restarted)

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @perler said in problem logging into /?admin:

          in /app/data/data/default/configs/application.ini in addition to the file /app/data/data/default/admin_password.txt which seems redundant.

          The application.ini holds the hashed password. Whereas the txt file holds the raw password . Note that this comes from the upstream project. My understanding is that it is this way because in Rainloop code base application.ini used to hold the raw password. The author of snappymail has since changed it so that application.ini has the hashed password. I am not sure but I think admin_password.txt can possibly be deleted after you made a note of the password. This then secures the setup if application.ini gets leaked somehow.

          jdaviescoatesJ 1 Reply Last reply
          0
          • jdaviescoatesJ jdaviescoates

            If you start with a new install that admin_password = will not be there.

            I just tested and these instructions definitely work:

            1. install Snappymail at yourdomain.coop
            2. Use the File Manager to edit /app/data/_data_/_default_/configs/application.ini so that allow_admin_panel = On
            3. Visit yourdomain.coop/?admin (doing so generates the admin_password.txt file and writes the pw inside it)
            4. Use the File Manage to open app/data/_data_/_default_/admin_password.txt and copy the password that is now there.
            5. Browse to yourdomain.coop/?admin again
            6. login using user: admin pw: what you copied in step 4.
            7. Reset the admin password again using the admin user interface.

            No app restarts necessary, see:

            @staff I think the main problem with the docs is you don't include

            1. In order for the admin_password.txt file to be generated you have to visit /@admin first
            2. that the admin username is admin
            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @jdaviescoates said in problem logging into /?admin:

            In order for the admin_password.txt file to be generated you have to visit /@admin first

            You are right, will fix the docs.

            P 1 Reply Last reply
            1
            • girishG girish

              @jdaviescoates said in problem logging into /?admin:

              In order for the admin_password.txt file to be generated you have to visit /@admin first

              You are right, will fix the docs.

              P Offline
              P Offline
              perler
              wrote on last edited by
              #6

              @girish thanks, tried it this way and it works now.

              1 Reply Last reply
              1
              • girishG girish

                @perler said in problem logging into /?admin:

                in /app/data/data/default/configs/application.ini in addition to the file /app/data/data/default/admin_password.txt which seems redundant.

                The application.ini holds the hashed password. Whereas the txt file holds the raw password . Note that this comes from the upstream project. My understanding is that it is this way because in Rainloop code base application.ini used to hold the raw password. The author of snappymail has since changed it so that application.ini has the hashed password. I am not sure but I think admin_password.txt can possibly be deleted after you made a note of the password. This then secures the setup if application.ini gets leaked somehow.

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by jdaviescoates
                #7

                @girish said in problem logging into /?admin:

                admin_password.txt can possibly be deleted after you made a note of the password

                This seems to happen all by itself, actually.

                Also, once you're in the admin panel it suggests changing the password again using the UI, so that should prob go in the docs too.

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                1
                • necrevistonnezrN Offline
                  necrevistonnezrN Offline
                  necrevistonnezr
                  wrote on last edited by
                  #8

                  Has the procedure of getting into the admin panel changed?

                  • I set allow_admin_panel = On in /app/data/_data_/_default_/configs/application.ini
                  • restarted app
                  • when I visit snappymail.mydomain.tld/?admin I get an error "Access to the SnappyMail Admin Panel is not allowed!"
                  • In the log, the only relevant entry seems to be
                  Nov 17 06:16:47 82.##.##.## - - [17/Nov/2023:05:16:47 +0000] "GET /?admin HTTP/1.1" 403 1086 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko)"
                  
                  1 Reply Last reply
                  1
                  • robiR Offline
                    robiR Offline
                    robi
                    wrote on last edited by
                    #9

                    No, there's no reason to restart the app.
                    Check the .ini file again and save it, then visit the admin url again.

                    Works just fine on the demo server.

                    Conscious tech

                    necrevistonnezrN 1 Reply Last reply
                    0
                    • robiR robi

                      No, there's no reason to restart the app.
                      Check the .ini file again and save it, then visit the admin url again.

                      Works just fine on the demo server.

                      necrevistonnezrN Offline
                      necrevistonnezrN Offline
                      necrevistonnezr
                      wrote on last edited by
                      #10

                      @robi me stupid. I had two entries with allow_admin_panel, one was "On", one was "Off" 🙄

                      1 Reply Last reply
                      2
                      • nebulonN nebulon marked this topic as a question on
                      • nebulonN nebulon has marked this topic as solved on
                      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