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

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

Tags:
  1. Dayneuske

    Dayneuske Registered

    Joined:
    Apr 26, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page