Solved

Solaris 10 su - fail can't send email

Posted on 2010-09-14
9
1,125 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
  • 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
 

Author Comment

by:USTTN-LAN
ID: 33686435
sendmail is up too
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now