Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 08:47:43 +0000
From:      David Jenkins <david.jenkins@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Bad file descriptor
Message-ID:  <9395922d050111004779ba834f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I have no idea what's causing the problem here but it seems that mail cannot
be delivered to the root account - I know I should have mail forwarded to a
different user in the aliases file...

I'm running 5.3-RELEASE-p2 (haven't applied the latest patch yet) and
GENERIC kernel. The MTA is sendmail, the box is only used for web
services for a few friends.

Anyway, last night, when the daily periodic was run by cron it appears the
mail could not be delivered to root.

The sendmail logs show the error

DSN: Service unavailable (/var/mail/root: lstat: file changed after open)

I have tried emailing other user accounts, and that works fine. I have tried
emailing root again, and I get exactly the same errors.

So, I checked /var/mail - here's the interesting thing.

# ls
<some user accounts> root <some more user accounts>

# ls -a
. .. <some user accounts> root <some more user accounts>

# ls -la
.
..
<some user accounts>
<some more user accounts>

i.e. root's file does not show.

# touch root
touch: root: Bad file descriptor

I tried

# vi /var/mail/root
(which created a new file, I saved it (empty), and the box paniced and
rebooted)

I've checked google / the mailing list archives but can't seem to find
anything relevant (I must be searching for the wrong keywords). If
someone could give me a few pointers that would be great.

Cheers,
David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9395922d050111004779ba834f>