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. Cubby
  3. I have completely forgotten the user with administrator rights. Is there another way to give a user the administrator role?

I have completely forgotten the user with administrator rights. Is there another way to give a user the administrator role?

Scheduled Pinned Locked Moved Solved Cubby
4 Posts 2 Posters 135 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.
  • luckowL Offline
    luckowL Offline
    luckow
    translator
    wrote on last edited by
    #1

    I have looked at the users for whom I now have the login details. None of them have an administrator role. Is there another way to give a known user the administrator role?

    Pronouns: he/him | Primary language: German

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      If you have SSH access to the server, you can generate temporary owner account login credentials with:

      cloudron-support --owner-login
      
      luckowL 1 Reply Last reply
      0
      • nebulonN nebulon has marked this topic as solved on
      • nebulonN nebulon

        If you have SSH access to the server, you can generate temporary owner account login credentials with:

        cloudron-support --owner-login
        
        luckowL Offline
        luckowL Offline
        luckow
        translator
        wrote on last edited by
        #3

        @nebulon not Cloudron <- the platform. Cubby. 🙂

        Pronouns: he/him | Primary language: German

        1 Reply Last reply
        0
        • nebulonN nebulon has marked this topic as unsolved on
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by nebulon
          #4

          Oh my bad, didn't read the section. Currently you have to set this then in the database manually. Normally the first created users gets the admin flag. To give other users the admin flag, open a webterminal into the app and run the following command, replacing <USERNAME> accordingly:

          PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} psql -h ${CLOUDRON_POSTGRESQL_HOST} -p ${CLOUDRON_POSTGRESQL_PORT} -U ${CLOUDRON_POSTGRESQL_USERNAME} -d ${CLOUDRON_POSTGRESQL_DATABASE} -c "UPDATE users SET admin=true WHERE username='<USERNAME>'"
          
          1 Reply Last reply
          1
          • 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