sftp logs files

Asked by aman_manu2003@yahoo.com on 2010-07-14

hi there,

I am new to Ubuntu and using 10.04 rel. I along with my friends use sftp for file transfer purposes. Just wanted to know how and where can i check the logs for who has used the sftp service and how can i clear the logs without doing any harm to os? can i delete the log files as a whole (assuming that Ubuntu will recreate them) ?

thanks.

regards-
aman

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu openssh Edit question
Assignee:
No assignee Edit question
Last query:
2010-07-15
Last reply:
2010-07-15
Attila Vági (avagi) said : #1

you can find login entries in the /var/log/auth.log, look for "subsystem request for sftp".
if you don't want to have LOGs (is not recommended), the sshd daemon should be restarted with nolog option.

Thanks for the reply.
I want to have the logs but will like to know how to clear them up.
I want to delete unnecessary login details.

________________________________
From: avagi <email address hidden>
To: <email address hidden>
Sent: Thu, July 15, 2010 10:53:08 AM
Subject: Re: [Question #117726]: sftp logs files

Your question #117726 on openssh in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/openssh/+question/117726

    Status: Open => Answered

avagi proposed the following answer:
you can find login entries in the /var/log/auth.log, look for "subsystem request
for sftp".
if you don't want to have LOGs (is not recommended), the sshd daemon should be
restarted with nolog option.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/openssh/+question/117726/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+source/openssh/+question/117726

You received this question notification because you are a direct
subscriber of the question.

Attila Vági (avagi) said : #3

pls. check the /var/log/auth.log file
there are no unecessary login details - this is my opinion

could you tell me more precisely, what do you plan to clean up?

thanks. I mean.. suppose 3 people (X,Y,Z) have logged in on a particular day.
next day i want to clear up the login data for person "Y".
Is that possible?

________________________________
From: avagi <email address hidden>
To: <email address hidden>
Sent: Thu, July 15, 2010 1:23:40 PM
Subject: Re: [Question #117726]: sftp logs files

Your question #117726 on openssh in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/openssh/+question/117726

    Status: Open => Answered

avagi proposed the following answer:
pls. check the /var/log/auth.log file
there are no unecessary login details - this is my opinion

could you tell me more precisely, what do you plan to clean up?

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/openssh/+question/117726/+confirm?answer_id=2

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+source/openssh/+question/117726

You received this question notification because you are a direct
subscriber of the question.

Attila Vági (avagi) said : #5

it is possible (but I have to repeat, not recommended):

  # sed -i '/Y/d' /var/log/auth.log
  (replace Y by the real name, to be clean up)

Can you help with this problem?

Provide an answer of your own, or ask aman_manu2003@yahoo.com for more information if necessary.

To post a message you must log in.