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

Create users who can only use the function WOL

Scheduled Pinned Locked Moved
Feature Request
3
31
5.6k
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.
  • L
    Lenain
    last edited by Jan 8, 2019, 9:00 AM

    Hello,
    I’m working in a school and teachers need to wake up computers to save time, is it possible to create user that can only access to groups and can only use wake up in basic tasks?
    By the way, thanks for your work!

    1 Reply Last reply Reply Quote 0
    • F
      Fernando Gietz Developer
      last edited by Jan 9, 2019, 12:45 PM

      Hi @Lenain ,

      FOG can not do the thing that you say. You can control the access to the main menus using the controlAccess Plugin, with this plugin you can “erase” the icons in the menu bar, in this way you can enable the access to some users to Dashboard, Hosts, Groups and Logout entries in the menu bar.

      1 Reply Last reply Reply Quote 0
      • L
        Lenain
        last edited by Jan 15, 2019, 7:58 AM

        Hello,
        Thank you for your answer, I will try this Plugin.

        1 Reply Last reply Reply Quote 0
        • L
          Lenain
          last edited by Jan 18, 2019, 2:03 PM

          Hello,
          I have installed the plugin but when I try to add user to be member of the Access Control role nothing happen.
          Does this plugin work with 1.5.5?
          Thanks

          1 Reply Last reply Reply Quote 0
          • F
            Fernando Gietz Developer
            last edited by Jan 18, 2019, 2:30 PM

            Hello @Lenain ,

            Do you assign rules to the role?

            By default are two roles: Administrator and technician. And when you install the plugin, the plugin creates some default rules. These rules can be to config the main menu, the top tool bar, and to config the access to the submenus.

            First assign users to the role
            Second assign rules to the role.

            L 1 Reply Last reply Jan 18, 2019, 2:40 PM Reply Quote 0
            • L
              Lenain @Fernando Gietz
              last edited by Jan 18, 2019, 2:40 PM

              Hello @Fernando-Gietz ,
              Thank’s for your help.
              I’ve tried to assign users to the role before assign rules but it don’t work.
              I check the box to see users, I check the user and click Add button but it is not assign to the role.

              1 Reply Last reply Reply Quote 0
              • F
                Fernando Gietz Developer
                last edited by Jan 18, 2019, 2:52 PM

                The user, is local? Do you create it from web user interface?

                L 1 Reply Last reply Jan 18, 2019, 3:25 PM Reply Quote 0
                • L
                  Lenain @Fernando Gietz
                  last edited by Jan 18, 2019, 3:25 PM

                  @Fernando-Gietz
                  The user have been created from the web user interface.

                  1 Reply Last reply Reply Quote 0
                  • F
                    Fernando Gietz Developer
                    last edited by Fernando Gietz Jan 18, 2019, 9:50 AM Jan 18, 2019, 3:47 PM

                    @Lenain I think that you find a bug XD.
                    Well, I think that we can apply a workaround.

                    Go to the database:
                    select * from roleUserAssoc;
                    ±------±--------±----------±----------+
                    | ruaID | ruaName | ruaRoleID | ruaUserID |
                    ±------±--------±----------±----------+
                    | 27 | | 2 | 180 |
                    | 96 | | 1 | 216 |

                    Is your user in this table?
                    Do you use the LDAP plugin?

                    L 1 Reply Last reply Jan 21, 2019, 8:56 AM Reply Quote 0
                    • L
                      Lenain @Fernando Gietz
                      last edited by Jan 21, 2019, 8:56 AM

                      Hello @Fernando-Gietz,
                      I don’t use LDAP plugin, here the result of mysql:
                      text alternatif
                      I have 3 users and I can only see one:
                      text alternatif
                      Thanks for your help ^^

                      1 Reply Last reply Reply Quote 0
                      • F
                        Fernando Gietz Developer
                        last edited by Jan 21, 2019, 4:14 PM

                        @Lenain Can you see all users in the Users page (Users -> List All Users)?
                        Please, can you show the users table in the database?

                        L 1 Reply Last reply Jan 22, 2019, 9:58 AM Reply Quote 0
                        • L
                          Lenain @Fernando Gietz
                          last edited by Jan 22, 2019, 9:58 AM

                          Hi @Fernando-Gietz,
                          Here sql:
                          text alternatif
                          Here All Users:
                          text alternatif

                          Does it help?

                          1 Reply Last reply Reply Quote 0
                          • F
                            Fernando Gietz Developer
                            last edited by Jan 22, 2019, 3:14 PM

                            @Lenain Do you assign the prof user (uId = 4) to the Profs role? or to technician role (rID = 2)

                            #select * from roles;
                            

                            This Profs role, has any rule associated?
                            Has technician role any rule associated?

                            #select * from roleRuleAssoc;
                            
                            L 1 Reply Last reply Jan 25, 2019, 7:21 AM Reply Quote 0
                            • F
                              Fernando Gietz Developer
                              last edited by Jan 23, 2019, 12:15 PM

                              How create roles and rules:
                              https://forums.fogproject.org/topic/9624/control-access-plugin/14

                              1 Reply Last reply Reply Quote 0
                              • L
                                Lenain @Fernando Gietz
                                last edited by Jan 25, 2019, 7:21 AM

                                Hi @Fernando-Gietz,
                                -My problem is that I can’t assign a user to a role. When I try to add it (select the user and click on add) nothing happen, the member section of Profs role stay empty.
                                -Yes the Profs role have rules but technician have nothing:
                                text alternatif
                                I’ve tried to use technician instead but I have the same problem.
                                -Here the result of mysql:
                                text alternatif

                                1 Reply Last reply Reply Quote 0
                                • F
                                  Fernando Gietz Developer
                                  last edited by Jan 25, 2019, 3:30 PM

                                  Hi @Lenain ,

                                  When you try to assign an user, does the php log throw an error?

                                  Your version is 1.5.5, no? Can you update it from working branch?

                                  L 1 Reply Last reply Jan 28, 2019, 9:12 AM Reply Quote 0
                                  • L
                                    Lenain @Fernando Gietz
                                    last edited by Jan 28, 2019, 9:12 AM

                                    Hi @Fernando-Gietz,
                                    I got no error from php, but I got this from mysql:
                                    MysqlError

                                    I already have installed it from working branch, does an update will help?

                                    Thanks for your help ^^

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Sebastian Roth Jan 28, 2019, 5:25 AM Jan 28, 2019, 11:23 AM

                                      @Lenain About crashed tables and how to recover, read this: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Repair_broken_database

                                      If that doesn’t help, the web is full of help on this… https://stackoverflow.com/questions/8843776/mysql-table-is-marked-as-crashed-and-last-automatic-repair-failed

                                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                      L 1 Reply Last reply Jan 28, 2019, 11:49 AM Reply Quote 0
                                      • L
                                        Lenain @Sebastian Roth
                                        last edited by Jan 28, 2019, 11:49 AM

                                        hello @Sebastian-Roth,
                                        Thank you for the tip, I don’t have any error with mysql ^^
                                        But sadly it doesn’t solve my problem with Access Control Management…

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          Fernando Gietz Developer
                                          last edited by Jan 28, 2019, 1:06 PM

                                          That is very strange!!

                                          Let’s go to begin again. We will to reset all 🙂

                                          1. Unistall the plugin
                                          2. Verify that the tables roleRuleAssoc, roleUserAssoc, roles and rules are being erased from the database by the uninstall process.
                                          3. Reinstall the plugin
                                          4. To test if the plugin works fine, we will not create a new role, we use the roles that the install process create. For example, administrator role.
                                          5. After install the plugin, go to users page -> List all Users. Does appear a new column named “Role”?
                                          6. Go to AccessControl Page -> List all Roles. Select Administrator role.
                                          7. Go to Rules tab -> Check the checkbox to see the rules that can be assign.
                                          8. Select MAIN_MENU-about, MAIN_MENU-printer adn MAIN_MENU-storage.
                                          9. Go to Members tab -> Check the checkbox to see the users that can be added.
                                          10. Select fog user (for example, you can select profs users if you want). Does appear the fog user in the list of members?
                                          11. Go to User Page -> list all users. Does appear in the role column the name of the role in fog row?
                                          12. Any error log in the apache log?
                                          L 1 Reply Last reply Jan 28, 2019, 1:37 PM Reply Quote 1
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            11/31
                                            Last post

                                          154

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project