Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After fresh install of Solaris 10 5/08, below entries in crontab may be found:
Code:
bash-3.00# crontab -l
#ident "@(#)root 1.21 04/03/23 SMI"
#
# The root crontab should be used to perform accounting data collection.
#
#
10 3 * * * /usr/sbin/logadm
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___
I can understand 1st entry: its a log rotation.
But another entry is unknown: nfsfind at 3:15 every day.
What more, in syslog at this time I can see this:
Code:
Jul 24 03:15:00 SRV sendmail[10813]: [ID 702911 mail.crit] My unqualified host name (SRV) unknown; sleeping for retry
Jul 24 03:15:00 SRV sendmail[10808]: [ID 702911 mail.crit] My unqualified host name (SRV) unknown; sleeping for retry
Jul 24 03:15:00 SRV sendmail[10804]: [ID 702911 mail.crit] My unqualified host name (SRV) unknown; sleeping for retry
Jul 24 03:15:00 SRV sendmail[10814]: [ID 702911 mail.crit] My unqualified host name (SRV) unknown; sleeping for retry
Jul 24 03:15:00 SRV sendmail[10807]: [ID 702911 mail.crit] My unqualified host name (SRV) unknown; sleeping for retry
Jul 24 03:15:00 SRV sendmail[10806]: [ID 702911 mail.crit] My unqualified host name (SRV) unknown; sleeping for retry
Jul 24 03:16:00 SRV sendmail[10804]: [ID 702911 mail.alert] unable to qualify my own domain name (SRV) -- using short name
Jul 24 03:16:00 SRV sendmail[10814]: [ID 702911 mail.alert] unable to qualify my own domain name (SRV) -- using short name
Jul 24 03:16:00 SRV sendmail[10813]: [ID 702911 mail.alert] unable to qualify my own domain name (SRV) -- using short name
Jul 24 03:16:00 SRV sendmail[10807]: [ID 702911 mail.alert] unable to qualify my own domain name (SRV) -- using short name
Jul 24 03:16:00 SRV sendmail[10806]: [ID 702911 mail.alert] unable to qualify my own domain name (SRV) -- using short name
Jul 24 03:16:00 SRV sendmail[10808]: [ID 702911 mail.alert] unable to qualify my own domain name (SRV) -- using short name
Jul 24 03:16:00 SRV sendmail[10804]: [ID 801593 mail.info] m6O1G0ZD010804: from=usr1, size=367, class=0, nrcpts=1, msgid=<200807240116.m6O1G0ZD010804@SRV>, relay=usr1@localhost
Jul 24 03:16:00 SRV sendmail[10806]: [ID 801593 mail.info] m6O1G0gF010806: from=usr2, size=371, class=0, nrcpts=1, msgid=<200807240116.m6O1G0gF010806@SRV>, relay=usr2@localhost
Jul 24 03:16:00 SRV sendmail[10804]: [ID 801593 mail.info] m6O1G0ZD010804: to=usr1, ctladdr=usr1 (60006/401), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30367, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jul 24 03:16:00 SRV sendmail[10806]: [ID 801593 mail.info] m6O1G0gF010806: to=usr2, ctladdr=usr2 (60004/401), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30371, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jul 24 03:16:00 SRV sendmail[10813]: [ID 801593 mail.info] m6O1G0Et010813: to=ndr63, ctladdr=ndr63 (60011/401), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30371, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jul 24 04:57:15 SRV sendmail[13357]: [ID 702911 mail.crit] My unqualified host name (SRV) unknown; sleeping for retry
Jul 24 04:58:15 SRV sendmail[13357]: [ID 702911 mail.alert] unable to qualify my own domain name (SRV) -- using short name
Jul 24 04:58:15 SRV sendmail[13357]: [ID 801593 mail.info] m6O2wFds013357: from=root, size=1118, class=0, nrcpts=1, msgid=<200807240258.m6O2wFds013357@SRV>, relay=root@localhost
Jul 24 04:58:15 SRV sendmail[13357]: [ID 801593 mail.info] m6O2wFds013357: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31118, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Note that SENDMAIL is disabled.
Is this entry connected with those errors in syslog ?
Can I hash it as I am not using any NFS ?
The problem is that script does not contain any single command that would execute sendmail.
Please take a look:
Code:
bash-3.00# cat /usr/lib/fs/nfs/nfsfind
#!/bin/sh
# Copyright (c) 1993 by Sun Microsystems, Inc.
#ident "@(#)nfsfind.sh 1.7 00/07/17 SMI"
#
# Check shared NFS filesystems for .nfs* files that
# are more than a week old.
#
# These files are created by NFS clients when an open file
# is removed. To preserve some semblance of Unix semantics
# the client renames the file to a unique name so that the
# file appears to have been removed from the directory, but
# is still usable by the process that has the file open.
if [ ! -s /etc/dfs/sharetab ]; then exit ; fi
# Get all NFS filesystems exported with read-write permission.
DIRS=`/usr/bin/nawk '($3 != "nfs") { next }
($4 ~ /^rw$|^rw,|^rw=|,rw,|,rw=|,rw$/) { print $1; next }
($4 !~ /^ro$|^ro,|^ro=|,ro,|,ro=|,ro$/) { print $1 }' /etc/dfs/sharetab`
for dir in $DIRS
do
find $dir -type f -name .nfs\* -mtime +7 -mount -exec rm -f {} \;
done
That is why I am wondering about those errors in syslog.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by czezz
OK, correct me if I am wrong:
Okay, let's do that !
Quote:
everything what cron does is what is inside crontab.
I'm afraid you are wrong here. Cron does things by itself, like parsing the crontabs, running commands found there here and do something with their outputs, like sending mails to the users ...
Quote:
No sendmail there.
You are correct, no sendmail in the crontab.
Quote:
So where should I look for that sendmail execution ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.