Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2006
    Posts
    272
    cPanel/Enkompass Access Level

    Root Administrator

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

    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    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
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

Similar Threads & Tags
Similar threads

  1. Deleted user - can I get my files?
    By lestyle in forum Data Protection
    Replies: 1
    Last Post: 02-14-2009, 08:31 PM
  2. dot files not showing in x3
    By kernow in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 05-23-2007, 02:08 AM
  3. Chowned All Files To User Root Please Help
    By mohdyasar in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 09-12-2006, 01:12 PM
  4. Chowned All Files To User Root Please Help
    By mohdyasar in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-12-2006, 10:34 AM
  5. Accounts getting deleted but not username and user files
    By anand in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-13-2002, 01:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube