• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Access Control, locked the only admin out....

    Scheduled Pinned Locked Moved
    General Problems
    3
    5
    649
    Loading More Posts
    • 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.
    • Q
      quinniedid
      last edited by

      Hi all,

      I am in need of some desperate help. I installed the Access Control plugin and started poking around at how everything came together. I added the only admin account to the Administrators group, which apparently had no rules added to. I have no other user that can login to FOG. I have two other users but API (mobile only) is disabled and cannot correct the issue.

      Is there a way to go through the database to enable API for one of these other users? Is there someway to disable the plugin for now? Anything I can do to get back into my server?

      Any help would be greatly appreciated!

      Thank you ahead of time!

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @quinniedid
        last edited by

        @quinniedid Yes, refer to this article: https://wiki.fogproject.org/wiki/index.php?title=Password_Central#1.4.0_and_1.5.0_series
        You’ll want to specify a different user than fog, probably admin or something. The new user’s default password will be password

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • F
          Fernando Gietz Developer
          last edited by Fernando Gietz

          Hi @quinniedid ,

          You can disable this plugin erasing one registry in the database. In the database:

          MariaDB [fog]> select * from plugins;
          ±----±--------------±-------±-----------±---------±-------±-------±-------±-------±-------+
          | pID | pName | pState | pInstalled | pVersion | pAnon1 | pAnon2 | pAnon3 | pAnon4 | pAnon5 |
          ±----±--------------±-------±-----------±---------±-------±-------±-------±-------±-------+
          | 48 | accesscontrol | 1 | 1 | 1 | | | | | |
          | 44 | xixare | 1 | 1 | 1 | | | | | |
          | 53 | LDAP | 1 | 1 | 1 | | | | | |
          | 41 | wolbroadcast | 1 | 1 | 1 | | | | | |
          ±----±--------------±-------±-----------±---------±-------±-------±-------±-------±-------+
          4 rows in set (0.00 sec)

          And now delete it:

          MariaDB [fog]> delete from plugins where pID = pDI_of_your_AccessControlPlugin;

          In my case pID=48.

          With this you will have the control back.

          UPDATE: TAke in account that this process do a “dirty” unsintall of the plugin. To uninstall correctly the plugin, use the FOG User Interface and unstall it from Plugins menu.

          1 Reply Last reply Reply Quote 1
          • F
            Fernando Gietz Developer
            last edited by

            Some recomendations about this plugin:

            • Don’t asociate the “fog” user to one role. This user is special, like a system user, in this way you can use it to roll back of changes.
            • Test the role and their rules first with one local test user.
            1 Reply Last reply Reply Quote 1
            • Q
              quinniedid
              last edited by

              I would admit you are absolutely correct. I should not have put the local admin into the group…

              I was finally able to get back in. I appreciate all of your help!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              182

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project