Technical article 111128

UnixWare 7, sendmail reports that a user's .forward file is a world-writable directory and is not forwarding the mail as expected.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6UnixWare 7.1.1

Written · Last revised

Problem

I keep noticing in /var/adm/syslog that sendmail reports:

forward /home/<username>/.forward.<hostname>: World writable
directory
forward /home/<username>/.forward: World writable directory

The user's mail is not being forwarded correctly and is instead being filed to the local mailbox.

Cause

The most recent version of sendmail, shipping with UnixWare 7.1.1, includes new security enhancements. With this version, sendmail actively checks for permissions on critical configuration files.

Solution

All directories leading up the directory tree from / must not be world writable. For example, if the user's .forward file exists in:

/home/ericd/.forward
then /home, /home/ericd, and /home/ericd/.forward must all have
the permissions set to o-w, using chmod.  For example:
chmod o-w /home
chmod o-w /home/ericd
chmod o-w /home/ericd/.forward

See also

http://www.sendmail.org
NOTES:    This is true for OpenServer as well as UnixWare, but it may not log
          any errors to /var/adm/syslog.  Make sure all directories are not
          world-writable.

From the Xinuos technical article database, record 111128. Reproduced with permission. The original is at www.sco.com/ta/111128, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.