LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2009, 09:47 AM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
nothing in /var/log/messages


When setting up a tftp,vsftpd server some failed message came on my way which should be checked in the /var/log/messages file.But there is no content in that file ,alwayas empty...where will I check the log messages..???
 
Old 06-15-2009, 09:50 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, you may need root permission to access the files there.

I take it you have admin access.

Hope this helps.

Regards Glenn
 
Old 06-15-2009, 11:08 PM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by GlennsPref View Post
Hi, you may need root permission to access the files there.

I take it you have admin access.

Hope this helps.

Regards Glenn
Hey bro I am in root,server setup can't be done in user mode ...
 
Old 06-16-2009, 12:53 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, sorry 'bout that.

I said that because as user the file will open with kate but a 12Mb file looks empty.

type

ls -la /var/log/

to get a list of files and directories for /var/log/.

is there a messages file?

Check as root with

cat /var/log/messages

does the system or programs have write privileges to /var/log

You may need to check the groups they belong to.

regards Glenn
 
Old 06-16-2009, 01:25 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
isnt there a seperate log file for vsftpd check the /var/log/ directory
 
Old 06-16-2009, 03:55 AM   #6
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by GlennsPref View Post
Hi, sorry 'bout that.

I said that because as user the file will open with kate but a 12Mb file looks empty.

type

ls -la /var/log/

to get a list of files and directories for /var/log/.

is there a messages file?

Check as root with

cat /var/log/messages

does the system or programs have write privileges to /var/log

You may need to check the groups they belong to.

regards Glenn
Ya checked,a no of message file exist as below ,
Quote:
-rw------- 1 root root 0 Jun 14 16:32 messages
-rw------- 1 root root 0 Jun 7 04:02 messages.1
-rw------- 1 root root 0 May 31 11:57 messages.2
-rw------- 1 root root 0 May 24 12:06 messages.3
-rw------- 1 root root 0 May 17 08:15 messages.4
But all are of size zero,cat shows empty!!!!!!!!
Now what to do ??
 
Old 06-16-2009, 04:01 AM   #7
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by kirukan View Post
isnt there a seperate log file for vsftpd check the /var/log/ directory
No u just check ,/etc/syslog.conf for various logs.
 
Old 06-16-2009, 05:30 PM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I don't know! my short answer....

rpm -Va | grep miss

take a while but finds missing libs that are said to be installed, but are not.

It takes a while on my system.....upto 20 minutes...

My /etc/syslog.conf file looks like this...
Code:
# Mandriva syslog configuration
# $Id: sysklogd.conf 93075 2007-09-26 13:02:56Z blino $

# sensible stuff
auth,authpriv.*					/var/log/auth.log

# generic stuff
*.info;mail,news,authpriv.none			-/var/log/messages
*.*;auth,authpriv.none				-/var/log/syslog
user.*						-/var/log/user.log

# Mail logging
mail.=debug;mail.=info;mail.=notice		-/var/log/mail/info.log
mail.=warn					-/var/log/mail/warnings.log
mail.err					-/var/log/mail/errors.log

# Cron logging
cron.=debug;cron.=info;cron.=notice		-/var/log/cron/info.log
cron.=warn					-/var/log/cron/warnings.log
cron.err					-/var/log/cron/errors.log

# Kernel logging
kern.=debug;kern.=info;kern.=notice		-/var/log/kernel/info.log
kern.=warn					-/var/log/kernel/warnings.log
kern.err					/var/log/kernel/errors.log

# Daemons logging
daemon.=debug;daemon.=info;daemon.=notice	-/var/log/daemons/info.log
daemon.=warn					-/var/log/daemons/warnings.log
daemon.err					-/var/log/daemons/errors.log

# Drakxtools logging
local1.*					-/var/log/explanations

# Boot messages logging
local7.*					-/var/log/boot.log

# Emergency messages for logged users
*.emerg						*

# All messages on last terminal
*.* /dev/tty12
this may be different in Redhat, I use Mandriva.

see how you go, regards Glenn
 
Old 06-16-2009, 11:52 PM   #9
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by GlennsPref View Post
I don't know! my short answer....

rpm -Va | grep miss

take a while but finds missing libs that are said to be installed, but are not.

It takes a while on my system.....upto 20 minutes...

My /etc/syslog.conf file looks like this...
Code:
# Mandriva syslog configuration
# $Id: sysklogd.conf 93075 2007-09-26 13:02:56Z blino $

# sensible stuff
auth,authpriv.*					/var/log/auth.log

# generic stuff
*.info;mail,news,authpriv.none			-/var/log/messages
*.*;auth,authpriv.none				-/var/log/syslog
user.*						-/var/log/user.log

# Mail logging
mail.=debug;mail.=info;mail.=notice		-/var/log/mail/info.log
mail.=warn					-/var/log/mail/warnings.log
mail.err					-/var/log/mail/errors.log

# Cron logging
cron.=debug;cron.=info;cron.=notice		-/var/log/cron/info.log
cron.=warn					-/var/log/cron/warnings.log
cron.err					-/var/log/cron/errors.log

# Kernel logging
kern.=debug;kern.=info;kern.=notice		-/var/log/kernel/info.log
kern.=warn					-/var/log/kernel/warnings.log
kern.err					/var/log/kernel/errors.log

# Daemons logging
daemon.=debug;daemon.=info;daemon.=notice	-/var/log/daemons/info.log
daemon.=warn					-/var/log/daemons/warnings.log
daemon.err					-/var/log/daemons/errors.log

# Drakxtools logging
local1.*					-/var/log/explanations

# Boot messages logging
local7.*					-/var/log/boot.log

# Emergency messages for logged users
*.emerg						*

# All messages on last terminal
*.* /dev/tty12
this may be different in Redhat, I use Mandriva.

see how you go, regards Glenn
This in REDHAT
Code:
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*                                                 /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none                /var/log/messages

# The authpriv file has restricted access.
authpriv.*                                              /var/log/secure

# Log all the mail messages in one place.
mail.*                                                  -/var/log/maillog


# Log cron stuff
cron.*                                                  /var/log/cron

# Everybody gets emergency messages
*.emerg                                                 *

# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler

# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log
Actually it was working last time,but this time I think something happens,but not visible to me...

Last edited by divyashree; 06-16-2009 at 11:59 PM.
 
Old 06-17-2009, 12:40 AM   #10
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
What else is there in /var/log/*

ls -la /var/log/

You might have to read the readme for those ftp programs to see what else you may need to do.

Look in /usr/share/docs/ to see if there is any extra documentation.

The mention of "messages" in the error you described before may not mean /var/log/messages. It may be look for messages about the install errors.

You may need to go back and install it again to capture the error message, and quote it here to progress further.

Could Kirukan (post#5) be right, maybe the files you need are in a ftp dir in /var/log/...

Regards Glenn
 
Old 06-17-2009, 01:45 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Unless you've changed the cfg, I believe the default is /var/log/xferlog
 
Old 06-17-2009, 02:16 AM   #12
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Is syslog even running?

ps waux | grep syslog
 
Old 06-18-2009, 09:04 AM   #13
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by chrism01 View Post
Unless you've changed the cfg, I believe the default is /var/log/xferlog
Bro chrism,plz check the vsftp conf file,the /var/log/xferlog file is only for transaction issuse(downloads and uploads)....not for error logs like selinux logs while setting up the server,etc..
 
Old 06-18-2009, 09:07 AM   #14
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by micxz View Post
Is syslog even running?

ps waux | grep syslog
YA syslog is running

Code:
# ps -ax | grep syslog

 2072 ?        Ss     0:00 syslogd -m 0
 5068 pts/4    R+     0:00 grep syslog
 
Old 06-18-2009, 12:46 PM   #15
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
I would try to add
Code:
*.*;
as in:
Code:
*.*;*.info;mail.none;authpriv.none;cron.none                /var/log/messages
and maybe restart syslog
 
  


Reply



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
/var/log/messages and /var/log/cron not working sigkill Linux - Software 6 08-09-2008 01:08 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:24 AM.

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