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!

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:
    35
    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,719
    Likes Received:
    97
    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:
    44,344
    Likes Received:
    1,852
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice