Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change Style For All Accounts

Discussion in 'General Discussion' started by PCZero, Feb 1, 2018.

  1. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    580
    Likes Received:
    42
    Trophy Points:
    178
    Location:
    Earth
    I have all users on Paper Lantern but across my 30-50 users they have several different styles. How do I make a mass change for all users to be on a new style?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,722
    Likes Received:
    77
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    You can disable the change style feature from the feature list, so no cPanel account will be able to use it and then they will be forced to use only Paper Lantern...
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,553
    Likes Received:
    40
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Hi PCZero,

    It looks like the only way to make a mass change is via the command line. The script /usr/local/cpanel/scripts/modify_accounts will allow you to change the style of your users. Here is an example for all users:

    Code:
    /usr/local/cpanel/scripts/modify_accounts --all-users --theme=paper_lantern --style=basic
    [code]
    
    Running the script with --help will show all options for the script.
    
    Once you make that change you likely want to remove the change style privilege that 24x7server mentioned.
     
  4. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    580
    Likes Received:
    42
    Trophy Points:
    178
    Location:
    Earth
    24x7 thanks but that is not relvant to the question asked.

    Kenneth much appreciated. I was not aware of the style parameter on that script. That will do exactly what I am looking for.
     
Loading...

Share This Page