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!

way to recreate required files/folders in account

Discussion in 'General Discussion' started by victomeyezr, Oct 8, 2011.

  1. victomeyezr

    victomeyezr Well-Known Member

    Joined:
    Sep 25, 2008
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    56
    It there a script to recreate files/folders that users like to delete without deleting/creating the whole account?
    I am referring to the default stuff that is usually behind the public_html folder like the /etc/ folder?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,513
    Likes Received:
    424
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Only one that I'm aware of, recreate the account from scratch. Depending on whats been deleted of course.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    I'm sure this script could easily be written though. Just create a skeleton directory from a new account and tar it up, then have the script determine the user and fix perms and ownership. If you want I can do this in about 4 minutes for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. victomeyezr

    victomeyezr Well-Known Member

    Joined:
    Sep 25, 2008
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    56
    That would be great to have something like that. Some people, you just can't take anywhere. :)
     
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