Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-04-2008, 10:46 AM   #1
LQ Newbie
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
vsftpd and log files - can i up the log level to see login attempts?

I'm trying to troubleshoot a problem with provisioning of Polycom phones. They're set up to be provisioned by FTP, the username/pw I provided to the phone works when I log in from a client on my PC, but the phones aren't provisioning. I checked the /var/log/vsftpd.log file, but it doesn't show login attempts, it only shows file transfers. How can I up the loglevel so I can see login attempts and any other commands issued to the server?

Old 04-04-2008, 12:16 PM   #2
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
this is some stuff i mucked about with a little when i had a little testing environment.. if i remember you'll need to add/make these changes into you vsftpd.conf file...

syslog_enable=NO #makes use of syslog deamon for logging set to NO - writes directly to log file instead
log_ftp_protocol=NO #Logs everything passing between client and ftp service, basically like being verbose not really required to much information given
xferlog_enable=YES #Logs the uploads and downloads and the username of which has done this.
vsftpd_log_file=/var/log/vsftpd.log #Specifies where i want the log file to be written
xferlog_std_format=YES/NO #currently have this set yo yes need to play with it a bit more to find if its actually any use or not.
xferlog_file=/var/log/xfer.log #Don't know if this is really required, again need to play, doesn't seem to log anything overly helpful
dual_log_enable=YES #enables logging in both vsftpd or xfer logging styles, vsftpd looks better so far

So there's a couple of things worth looking at you may find useful, this is just from notes i had when i played arround with it a little so can't say much else..

Old 04-04-2008, 12:23 PM   #3
LQ Newbie
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I added the log_ftp_protocol line, but it doesn't appear to be a valid value. Let me google that entry and see if I can get some further info. It looks like that may be the key to what I need. Thanks.

root@pbx:/polycom $ service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: 500 OOPS: bad bool value in config file for: log_ftp_protocol

nevermind, i must have cut/paste something strange that didn't show up in VI from your post. I deleted the line and manually retyped it and it started up fine. Let me go see if I now have more verbose logs.

Nope. No go, I still only see file transfers appearing in the log . Tried the syslog_enable=NO as well. Still no love.

Last edited by robr; 04-04-2008 at 12:29 PM.
Old 04-04-2008, 12:38 PM   #4
LQ Newbie
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Got it!!! These two are mutually exclusive:


You have to set
xferlog_std_format=NO for the log_ftp_protocol to work.

Thanks for the clue that led me to the solution!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh...log files that store the login attempts Bgrad Linux - Networking 4 03-29-2010 10:40 AM
vsftpd log files varala_kanth Linux - General 1 05-05-2006 01:10 AM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 05:03 PM
/var/log/messages shows failed login attempts... plan9 Linux - Security 8 08-08-2004 01:52 PM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 11:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration