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 the adduser script

Discussion in 'Workarounds and Optimization' started by Dayneuske, Jan 16, 2017.

  1. Dayneuske

    Dayneuske Registered

    Apr 26, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I'm working on getting cpanel account public_html directories mounted to an NFS. Right now, I have to manually add the individual accounts to this mount point. For future cPanel accounts I would like to edit the /scripts/adduser script to automatically create the mount point.

    I am planning on writing a script that will do this, so what I would like to have the adduser script do is call the addmount script. I figure this can easily be added to the file. I also figure that when upcp runs it will overwrite any changes I make to the adduser script.

    How can I get the changes I make to adduser from being lost whenever upcp runs?

    I should probably also ask the same question about the killacct script as I would want it to automatically delete the mounts when an account is deleted.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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