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.

Removing shell access after account restore.

Discussion in 'General Discussion' started by ddovidenko, Oct 30, 2007.

  1. ddovidenko

    ddovidenko Registered

    Dec 13, 2006
    Likes Received:
    Trophy Points:

    I am trying to write a script that removes shell access post account restore (from a full cPanel backup.) So far I've tried to use /scripts/postwwwacct and /scripts/postwwwacctuser, however both of these methods fail. Does anyone know a method to get a script to run after the restore without modifying any core cpanel files, as it seems shell is changed after both of those post- scripts run, so they change the shell to noshell then it gets changed back to bash when the restore finishes. Any help would be greatly appreciated.

Share This Page