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.

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:
    6
    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:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    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.
     
  3. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  4. victomeyezr

    victomeyezr Well-Known Member

    Joined:
    Sep 25, 2008
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    That would be great to have something like that. Some people, you just can't take anywhere. :)
     
Loading...

Share This Page