SUMMARY: Sendmail error: unsafe map file /etc/mail/aliases: Permission denied

From: John Bradley (john.bradley@sr5.chinalake.navy.mil)
Date: Thu Jul 30 1998 - 12:07:14 CDT


Thanx goes to:

Claus Assmann <ca@informatik.uni-kiel.de>
Casper Dik <casper@holland.Sun.COM>

They helped me quickly narrow it down.
Also thanxs for the other replies:

Benjamin Cline <benji@hnt.com>
"John P. Dodge" <john.p.dodge@boeing.com>
Charlie Mengler <charliem@anchorchips.com>
Reto Lichtensteiger <rali@meitca.com>
"Gustavo A. Lozano" <glozano@colinter.net>

Summary:

# chown root /etc/mail.

or another suggestion was:

# chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
# chown root / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue

Here is a command that helped narrow it down and checks for any errors in sendmail

# /usr/lib/sendmail -bi -d44.4

Gives you the following helpful output:

safefile(/etc/sendmail.cf, uid=0, gid=0, flags=6000, mode=400):
safedirpath(/etc, uid=0, gid=0, flags=6000):
        [uid 0, nlink 1, stat 100644, mode 400]
.
.
.
safefile(/etc/mail/aliases, uid=0, gid=0, flags=7c80, mode=600):
safedirpath(/etc/mail, uid=0, gid=0, flags=7d80):
        [uid 0, nlink 1, stat 100644, mode 600] OK
safefile(/etc/mail/aliases.dir, uid=0, gid=0, flags=3c6, mode=200):
safedirpath(/etc/mail, uid=0, gid=0, flags=3c6):
        [uid 0, nlink 1, stat 100644, mode 200] OK
safefile(/etc/mail/aliases.pag, uid=0, gid=0, flags=3c6, mode=200):
safedirpath(/etc/mail, uid=0, gid=0, flags=3c6):
        No such file or directory
        [final dir /etc/mail uid 2 mode 40755] Permission denied
dbm map "Alias0": unsafe map file /etc/mail/aliases: Permission denied
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases

Original:

Hello managers,

I just installed Sendmail 8.9.1 in Solaris 2.6 x86.
I type "newaliases" and get the following error:

dbm map "Alias0": unsafe map file /etc/mail/aliases: Permission denied
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases

I've checked news:comp.mail.sendmail archives. The only suggestion was
to chmod 644 aliases file, and make sure /etc and /etc/mail were not
group writable. None of this worked. I'm begenning to think
there is something in the Makefile or sendmail.c
to turn "file system paranoia" off somewhere.

Any suggestions?

jb

-- 
                                                  wwwww
                                                g( o o )g
----------------------------------------------o00--(_)--00o---
+  John Bradley  NAWC Chinalake, CA                          +
+  UNIX/PC/Mac/Network Administrator - CTA Inc.              +
+  Phone: 760.939.5887 pager: 760.375.0997     .oooO Oooo.   +
+  E-Mail: john.bradley@chinalake.navy.mil     (   ) (   )   +
------------------------------------------------\ (---) /-----
                                                 \_) (_/



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:45 CDT