There's nothing wrong with removing /usr/spool/mail/root- assuming that
you didn't care to read the messages, of course. Absolutely no harm
whatsoever would come from this.
There would also be nothing wrong with removing the root.lock file, and
you should, but chances are you got into this mess because of something
else wrong elsewhere.
I wouldn't be at all surprised to find that you are running mmdf, and
that an lr of the directory /usr/spool/mmdf would show up with thousands
of files. If that's the case, you need to fix that problem first, and
if it's caused by some errant program somewhere generating excessive
messages, or by something silly like /usr/sys having been removed (thus
causing cron to complain by mail to sys), you need to find out what and
fix it, so reading some of the messages could be helpful.
After that, if there were thousands of messages you might need to reduce
the sizes of the subdirectories, which you could do with something like
this:
cd /usr/spool/mmdf/lock/home
for i in *
do
mv $i $i.junk
mkdir $i
chown mmdf $i
chgrp mmdf $i
chmod 777 $i
done
rm -r *.junk
--
Tony Lawrence (to...@aplawrence.com)
SCO ACE
SCO articles, help, book reviews: http://www.aplawrence.com