Checking who uploaded a file to the server?

forumheem

New member
Registered
Joined
Jul 23, 2017
Messages
13
Points
0
Does any one know how to track down who uploaded a file to a server?
I need to know how to check which user uploaded this file. The server is linux.
Is there a log of some sort?
Thank you for the replies!
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,488
Points
63
To know someone uploaded a file to your server then you need a name or an account name, from there you can trace who upload files.
But if someone uploaded files via a script or a way that your server could not track that then I think it is not possible to find out who uploaded a file to the server.
This question is very interesting and I also wait better answers or a solution for this.
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
You should be able to track this down.

It all depends how the file was uploaded as to what evidence you will have in the logs.
Do you know how the file was uploaded ? i.e FTP etc
 

QuadraNet-Adam

New member
Registered
Joined
Jul 21, 2017
Messages
11
Points
0
Please provide more details about your hosting set up. Does it have a control panel such as cPanel? Do you have root access to the server?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Ok so grep the log for the file name and see what information you have.
 

mobin

Well-known member
Registered
Joined
Jun 22, 2017
Messages
234
Points
28
Mostly there are few main resources people use to upload files, which are

1. FTP
2. via Web
3. File manager
4. SSH/SCP/SFTP

In above cases, it is fairly easy to track the upload details in either of the first 3 cases above but hard to track down in the 4th case. The first step you should take is to identify the file onwer and time stamp of file update. Once you have the details, you can go throguh each of the log files and check for necessary information [ I cannot comment your log file locations as long as there is limited information regarding your server ]. Good luck!
 

24x7serverman

Well-known member
Hosting Provider
Registered
Joined
Jul 25, 2017
Messages
651
Points
28
You can find the newly uploaded file under the below path -

find /var/www/upload/ -newer $file
If the files are uploaded from FTP then you can check the logs on below location -
/var/log/messages
Open required FTP log file and search for the contents using grep command.
 
Newer Threads
Replies
20
Views
9,543
Replies
5
Views
2,232
Replies
8
Views
2,803
Replies
2
Views
1,921

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top