reset users to use default style

kjg

Well-Known Member
Mar 2, 2004
160
3
168
Hi
How can we reset all users to use default style?

As it is now, all users that have not earlier changed style can be changed via WHM Cusomtization, but if the account has changed style sometime in history, they will not be changed.

I know there is a script that can be used to just change the style ( /usr/local/cpanel/scripts/modify_accounts --all-users --theme=paper_lantern --style=whatever ) but I want the accounts to be reset to use the default so when we change next time, they will also change

Somewhere very, very long back and deep down in my head I kind of remember there should be some files on each account that has to be removed, but I just can't remember which ones ...

Any help would be appreciated.
 

kjg

Well-Known Member
Mar 2, 2004
160
3
168
Finally my brain started working again and I remembered what to do.
Posting it here if someone else has the same issues

The setting for an accounts style is in
/home/username/var/cpanel/styled/
and in that directory there is a symlink pointing to the style used. ex
current_style -> /usr/local/cpanel/base/frontend/paper_lantern/styled/retro/

To find all accounts not using the default style you could use f ex:
find /home/*/var/cpanel/styled/current_style -ls

Removing the symlink will make the account use the default style instead.
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,439
1,004
313
cPanel Access Level
Root Administrator
You can also specify this through the modifyacct API call as mentioned here:


using the "style" parameter. If you use something like this it will remove the Style field:

Code:
whmapi1 modifyacct user='username' STYLE=""
which will force it to use the default for the server.