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.

Editing /var/cpanel/users/username

Discussion in 'General Discussion' started by domeneas, Nov 15, 2017.

  1. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi,

    I want to mass manipulate my users Contact Information Notification options in the /var/cpanel/users/username files with a script, but when I manually edit the file, the change does not show in cpanel for the user.

    I'm guessing I need to run something after I have made the edit.

    It says at the top of the file:

    # cPanel -- If you edit this file directly you must run /usr/local/cpanel/scripts/updateuserdomains afterwards to rebuild the system caches.

    Running that does not make the edit show in the users Cpanel.

    Thank you.
     
    #1 domeneas, Nov 15, 2017
    Last edited: Nov 15, 2017
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,592
    Likes Received:
    57
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    What specifically are you changing?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,715
    Likes Received:
    1,704
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Manually editing the userdata files is not a supported method of making changes to the contact preferences. Instead, you should use the cPanel API 2 function referenced on the following post:

    In Progress - SSL Notifications in cPanel 68

    Thanks!
     
Loading...

Share This Page