Solved

Solaris 10 su - fail can't send email

Posted on 2010-09-14
9
1,121 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
Comment Utility
Is syslog daemon running? ie.

# ps -ef | grep syslogd

0
 

Author Comment

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

Expert Comment

by:Joseph Gan
Comment Utility
What about sendmail, ie.

# ps -ef | grep sendmail
0
 

Author Comment

by:USTTN-LAN
Comment Utility
sendmail is up too
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 16

Expert Comment

by:Joseph Gan
Comment Utility
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
Comment Utility
0
 
LVL 13

Expert Comment

by:Rowley
Comment Utility
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
Comment Utility
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
Comment Utility
found out we actually have a script to do so
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

743 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

8 Experts available now in Live!

Get 1:1 Help Now