Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hi I'm not really a sysadmin, but I inherited a webserver running Red Hat 3.

I'm going to replace the server with a newer OS, but I want to find out which users are still using it. My users don't have SSH access, only FTP.

How do I find out who has uploaded something into this server in the last 60 days? Is there a log file that keeps track of SFTP logins?

Or is there a way to find files that were changed in the last 60 days?

share|improve this question
    
What is the output of grep sftp /etc/ssh/sshd_config? –  quanta Nov 4 '11 at 0:53
1  
I'd like to know beforehand what ftp/sftp service you're running, if possible. What you're running may help in finding out –  sandroid Nov 4 '11 at 0:54
    
Subsystem sftp /usr/libexec/openssh/sftp-server –  jeph perro Nov 7 '11 at 18:18
add comment

1 Answer

up vote 2 down vote accepted

You should find logs from the FTP server somewhere below /var/log, this is a first step but might not be enough in case of log rotation and seldom use.

To find all files files modified in the last 60 days, you can use the find command:

find / -type f -mtime -60 -print 

will list all files modified in the last 60 days. If you know where the files would be stored, you could restrict this list further by giving this to find, i.e.

find /var/ftp -type f -mtime -60 -print 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.