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.

User deleted most DOT files from their root. Potential problem?

Discussion in 'General Discussion' started by Metro2, Sep 20, 2010.

  1. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Hi everyone,

    Here's one that I haven't had to face yet in all these years (since I instruct all new customers not to touch any of the files above /public_html when they sign up) :

    One of my customers deleted the following list of files and folders from the /home/username/ folder.

    Files they deleted:
    .bash_logout
    .bash_profile
    .bashrc
    .canna
    .contactemail
    .emacs
    .ftpquota
    .lastlogin
    .zshrc

    Folders they deleted:
    /www
    /.cpanel
    /.fantasticodata
    /.htpasswds
    /access-logs

    Apparently the user did this a long time ago and their account has been working OK, BUT I'm concerned about the possible problems or issues that might stem from this.

    Would anyone here care to share their opinions/experience on what the ramifications of this situation are, and what course of action I should take (if any)?

    Thank you for any opinions and advice on the topic,
    M2
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'll let someone else smarter than I provide you assistance with this, I'll just add a few comments. The .dot files are of course config files.

    These could be copied over from another account with the same shell access.
    .bash_logout
    .bash_profile
    .bashrc
    .canna

    Set a new contact email, I believe this one is recreated.
    .contactemail

    This could be copied back from another account.
    .emacs

    Reset this users quota, or edit it, and this one should be recreated too I believe.

    .ftpquota

    The old X theme showed last user to login. This file is for that. No need for it, but it could be recreated manually and left empty I think.
    .lastlogin

    This could be copied over from another account with the same shell access.

    .zshrc


    Folders they deleted:

    This one is a system link or shortcut.
    /www

    This one contains the details for the account your cPanel system uses. I'm not sure without testing if simply editing this users account to give him another package, and then move him back, if that would recreate this or not.
    /.cpanel

    This one is of course for Fantastico data and should be recreated next time that user uses Fantastico.

    /.fantasticodata

    Setup a directory to be password protected, I think this one will be recreated automagially.
    /.htpasswds

    System link to domlogs I believe.
    /access-logs

    If you want my opinion, if this user doesn't have much of anything on the account other than a few files back those up manually, kill it, recreate it and put the files you backed up, back on the account and you'd be good to go.

    HTH
     
Loading...

Share This Page