Solved

Solaris 10 su - fail can't send email

Posted on 2010-09-14
9
1,134 Views
Last Modified: 2013-12-16
My server was able to send an email to me whenever someone fail to su to root.
Recently this is not happening.
I checked the syslog.conf:
#ident  "@(#)syslog.conf        1.5     98/12/14 SMI"   /* SunOS 5.0 */
#
# Copyright (c) 1991-1998 by Sun Microsystems, Inc.
# All rights reserved.
#
# syslog configuration file.
#
# This file is processed by m4 so be careful to quote (`') names
# that match m4 reserved words.  Also, within ifdef's, arguments
# containing commas must be quoted.
#
*.err;kern.notice;auth.notice                   /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages

*.alert;kern.err;daemon.err                     operator
*.alert                                         root

*.emerg                                         *

# Logging FTP activities
daemon.info                                     /var/adm/ftp.log
#

# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.notice                    ifdef(`LOGHOST', /var/log/authlog, @loghost)

mail.debug                      ifdef(`LOGHOST', /var/log/syslog, @loghost)

#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err                                        /dev/sysmsg
user.err                                        /var/adm/messages
user.alert                                      `root, operator'
user.emerg                                      *
)

and my email address is in the /etc/aliases root section:
#######################
# Local aliases below #
#######################
root:abc.efg@company.com,xyz.pqr@company.com

Please help
0
Comment
Question by:USTTN-LAN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 33676971
Is syslog daemon running? ie.

# ps -ef | grep syslogd

0
 

Author Comment

by:USTTN-LAN
ID: 33681099
it is, I got other alert from the system.
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 33686179
What about sendmail, ie.

# ps -ef | grep sendmail
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:USTTN-LAN
ID: 33686435
sendmail is up too
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 33686924
Do you have a loginglog setup, this file does not exist by default.
If this file exists, the login program records failed login attempts.
The file should be create in /var/adm directory.
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 33686969
0
 
LVL 13

Expert Comment

by:Rowley
ID: 33704603
Check for invalid field separators between values in syslog.conf. Not sure if posting messed with the formatting or not, but its worth checking.
view syslog.conf
set line
 
0
 
LVL 13

Expert Comment

by:Rowley
ID: 33723022
the vi option is actually "set list". Ensure that there are only "^I" characters between the log facility and levels, eg:

*.alert^I^I^I^Iroot$
0
 

Accepted Solution

by:
USTTN-LAN earned 0 total points
ID: 33894797
found out we actually have a script to do so
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question