LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 07-24-2008, 07:50 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
crontab -l (default settings ???)


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 ?

Last edited by czezz; 07-24-2008 at 08:28 AM.
 
Old 07-24-2008, 10:23 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
These messages are unrelated to nfsfind but to cron. If you aren't using NFS as a client, you can remove that cron job.

Cron is sending mail to root at 3:15 to tell something about that nfsfind job.
 
Old 07-24-2008, 01:43 PM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
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.
 
Old 07-24-2008, 03:20 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I'm afraid you didn't carefully read my previous reply.

It is not the nfsfind script but cron that try to send these mails.
 
Old 07-25-2008, 03:53 AM   #5
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
OK, correct me if I am wrong:
everything what cron does is what is inside crontab. No sendmail there.

So where should I look for that sendmail execution ?
 
Old 07-25-2008, 04:35 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by czezz View Post
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 ?
In the cron manual page.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the default crontab editor kawatom Red Hat 5 03-06-2011 01:07 PM
crontab to add default gateway daemonkl Linux - Newbie 3 12-01-2007 08:19 PM
Crontab: How to change the default notification E-mail address? rignes Linux - Software 4 04-04-2007 02:21 PM
crontab settings varun_saa Fedora 1 08-31-2005 12:32 PM
how can I change the default editor (vipw, crontab -e) or pager? Xavius Linux - Newbie 1 04-05-2004 01:45 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration