Solved

Solaris 10 su - fail can't send email

Posted on 2010-09-14
9
1,128 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

773 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