LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-17-2004, 11:11 AM   #1
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Rep: Reputation: 20
syslog and normal user logins


Hi,
I am monitoring the logs generated by the syslogd to catch the logins. I've checked the syslog.conf and the root logins go to the secure log. Now I need to catch the normal user logins. I can't find these on any log, I've also tried to put *.* /var/log/everything in syslog.conf to catch everything, but it can't catch the normal user logins.

Is there a way to do this?
Thnks.
 
Old 12-17-2004, 11:23 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
i think you should look in ' /var/log/syslog '.
mine are there, and it's standard-config for Slack 10.

egag

Last edited by egag; 12-17-2004 at 11:25 AM.
 
Old 12-17-2004, 11:24 AM   #3
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 17
I like to add *.* to /etc/syslogd.conf also.
but mine looks like so

*.* <6xtab> /dev/tty8

this way, when I am in console, I can just
switch over to tty8 and view my syslog.

-tank
 
Old 12-17-2004, 12:07 PM   #4
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Original Poster
Rep: Reputation: 20
I've added *.* <six tabs> /dev/tty8 to /etc/syslog.conf, restarted the daemon, but stills not showing the normal users logins. I've switched over to tty8 to check but there was no normal user login message.
This error is showed to many times, modprobe: modprobe: Can't locate module char-major-10-134, I'm not sure but I think the problem doesn't have to do with this error, I've searched in the net and saw that this error is something related with cdrom...

Any ideas?
Thanks.
 
Old 12-17-2004, 12:15 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
can you post your syslog.conf file ?

egag
 
Old 12-17-2004, 12:20 PM   #6
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Original Poster
Rep: Reputation: 20
Here's my syslog.conf :

# /etc/syslog.conf
# For info about the format of this file, see "man syslog.conf"
# and /usr/doc/sysklogd/README.linux. Note the '-' prefixing some
# of these entries; this omits syncing the file after every logging.
# In the event of a crash, some log information might be lost, so
# if this is a concern to you then you might want to remove the '-'.
# Be advised this will cause a performation loss if you're using
# programs that do heavy logging.

# Uncomment this to see kernel messages on the console.
#kern.* /dev/console

# Log anything 'info' or higher, but lower than 'warn'.
# Exclude authpriv, cron, mail, and news. These are logged elsewhere.
*.info;*.!warn;authpriv.none;\
cron.none;mail.none;news.none -/var/log/messages

# Log anything 'warn' or higher.
# Exclude authpriv, cron, mail, and news. These are logged elsewhere.
*.warn;\
authpriv.none;cron.none;mail.none;news.none -/var/log/syslog

# Debugging information is logged here.
*.=debug -/var/log/debug

# Private authentication message logging:
authpriv.* -/var/log/secure

# Cron related logs:
cron.* -/var/log/cron

# Mail related logs:
mail.* -/var/log/maillog

# Emergency level messages go to all users:
*.emerg *

# This log is for news and uucp errors:
uucp,news.crit -/var/log/spooler

# Uncomment these if you'd like INN to keep logs on everything.
# You won't need this if you don't run INN (the InterNetNews daemon).
#news.=crit -/var/log/news/news.crit
#news.=err -/var/log/news/news.err
#news.notice -/var/log/news/news.notice

*.* /dev/tty8

#### end of syslog.conf
 
Old 12-17-2004, 12:30 PM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

user logs go to
/var/run/utmp
file

man utmp wil help u more

regards
 
Old 12-20-2004, 08:48 AM   #8
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Original Poster
Rep: Reputation: 20
But /var/run/utmp it's not in plain text, I think it's generated with some program...
The syslog daemon doesn't control this type of logins?
 
Old 12-20-2004, 09:15 AM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
you can take a look at it with :

#dump-utmp -n 20 /var/run/utmp
or
#dump-utmp -n 20 /var/log/wtmp
but i don't think it's what you're looking for.....
( see also man-pages )

btw: the logs i saw in the syslog were all su-to-root-logs ( wich is the first thing i do after logging in...)

egag
 
Old 12-20-2004, 11:18 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by bujecas
But /var/run/utmp it's not in plain text, I think it's generated with some program...
The syslog daemon doesn't control this type of logins?
thats whaty i told u
have a look at man utmp for more info
u need to write C progrma for ur utmp file
same way as "w " and "who" does

i have ben involved in that kind of project
have a look at my link below , it has that code for the C program also

regards
 
  


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
Normal User to restart syslog server lier74ok Linux - Security 2 05-12-2005 12:23 AM
Syslog logging Cron logins rhoekstra Fedora 4 02-17-2005 02:45 AM
Normal /var/log/syslog?? jimdaworm Slackware 2 02-03-2005 09:32 PM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
User Logins TerminalPhreak Linux - Newbie 3 02-28-2003 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:56 PM.

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