cp users default settings

Discussion in 'Installation/Configuration' started by Steffan, Jan 12, 2017.

  1. Steffan

    Steffan Member

    hello,

    is it possible to set the defailt settings of the cp users?
    i want to remove the DNS module for my users
    or can someone point me to the settings in the DB so i can let cron change it?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, see ISPConfig configuration file: /usr/local/ispconfig/interface/lib/config.inc.php
     
  3. Steffan

    Steffan Member

    edit:
    you mean this?
    $conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools,help';
    Is there an option to change it to the exsisting users?
     
    Last edited: Jan 12, 2017
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    yes.

    System > CP users
     
  5. Steffan

    Steffan Member

    i found that one
    i was hoping on a oneliner :)
    or mysql table to overwrite
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you should have asked for that ;)

    The modules are in the sys_user table, column "modules". You can change them with a SQL query, e.g.:

    UPDATE sys_user set modules = 'dashboard,mail,sites,tools,help' WHERE typ = 'user';
     
  7. Steffan

    Steffan Member

    thanxs i see that i didnt asked it the correct way.

    just one note
    resellers are also client in the db.
    So they lost the client part. Changed it back with cp users
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, you are right. I did not took that into account for the query. So if someone finds this thread in future, better use .... WHERE modules = '.........' instead of the WHERE typ = '....' query part.
     

Share This Page