Discussion Locked

/etc/mail/aliases and newaliases

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
Is there a way of allowing another user the ability to run Sendmail -bi (newaliases).
I have updated the sendmail.cf and added the user as a trusted user. However, on executing newaliases or sendmail -bi, the messages
warning: cannot lock /etc/mail/aliases: Error 0
dbm map "Alias0": unsafe map file /etc/mail/aliases
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases

Any ideas, comments, suggestions.
Thank you in advance.
Craig.

2 replies

by cavedweller

The problem is with permissions when newaliases does a make of the new nis map. You need to let the trusted user write the nis map (frequently in /var/yp/{domainname}).

This discussion is closed to new replies.