Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    173

    Default User Deleted Own Directory

    How can I check a log of actions on a server. I restored the directory the user deleted but I wanted to be able to check that it was the user who deleted it..

  2. #2
    Member
    Join Date
    Apr 2004
    Location
    Brisbane, Queensland, Australia
    Posts
    66

    Default

    login to shell command on the server through ssh
    and then goto the home directory of the user - cd /home/username
    and then view the bash history file - pico .bash_history

  3. #3
    Member
    Join Date
    Apr 2004
    Location
    Brisbane, Queensland, Australia
    Posts
    66

    Default

    Also, this is not a cpanel issue. would be best to post these questions on your datacentre's web hosting forum of on another type of forum such as webhostingtalk.com

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    It does depend on how they deleted it (shell, script or ftp). Shell is covered above, script you're pretty much out of luck since there's no audit trail for scripts and ftp can be found in /var/log/xferlog
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Oct 2003
    Posts
    173

    Default

    Thanks for the replies.

    exodux : I do agree that at first glance this is not a cpanel issue except that the only way for them to access their account (because I block shell access) is either FTP (Not Cpanel) or the FTP manager IN Cpanel as well as the other tools in Cpanel that allow them to manipulate directories and files etc which is why I posted the question here. I did not know if CPanel logged a user's actions.

    Thanks again for the replies!

  6. #6
    Member
    Join Date
    Oct 2003
    Posts
    173

    Default

    One last update. I thought I would contribute some information I found regarding FTP logs.

    Check Ftp Logs for Different Types of actions. Make sure you change the username to the user you are searching for

    Code:
    Incoming files : 
    more /var/log/xferlog | grep username | grep "_ i "
    
    Outgoing files : 
    more /var/log/xferlog | grep username | grep "_ o "
    
    Deleting Files
    more /var/log/xferlog | grep username | grep "_ d "
    To create file subsets you can download

    Code:
    Incoming files : 
    more /var/log/xferlog | grep username | grep "_ i " > path.to.file/ftp.incoming.files.txt
    
    Outgoing files : 
    more /var/log/xferlog | grep username | grep "_ o " > path.to.file/ftp.outgoing.files.txt
    
    Deleting Files
    more /var/log/xferlog | grep username | grep "_ d " > path.to.file/ftp.delete.files.txt

Similar Threads & Tags
Similar threads

  1. ahhh! i deleted all the files in the home directory!
    By sohrabian in forum New User Questions
    Replies: 1
    Last Post: 04-05-2011, 08:43 PM
  2. Replies: 1
    Last Post: 02-21-2010, 07:00 PM
  3. Deleted user - can I get my files?
    By lestyle in forum Data Protection
    Replies: 1
    Last Post: 02-14-2009, 08:31 PM
  4. domain deleted but user account still there
    By gordypordy in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-23-2006, 01:18 PM
  5. FTP user quota not being deleted
    By mitu in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-15-2005, 09:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube