- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail alias permission error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 05:08 AM
06-02-2005 05:08 AM
newaliases: cannot open /etc/mail/aliases: Permission denied
I am executing this as root and the permissions on the files in /etc/mail are as follows:
-rw-r----- 1 root bin 880 Jun 2 09:37 aliases
-rw-r----- 1 root bin 24576 Jun 6 2004 aliases.db
-r--r--r-- 1 bin bin 10222 Nov 14 2000 mailcap
-r--r--r-- 1 bin bin 94286 Apr 1 2003 sendmail.cf
-r--r--r-- 1 bin bin 747 Jul 12 2003 sendmail.cw
-rw------- 1 root mail 34 Jun 2 10:01 sendmail.pid
-r--r--r-- 1 bin bin 1012 Nov 14 2000 service.switch
help~
Thanks,
-Alan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 05:12 AM
06-02-2005 05:12 AM
Re: sendmail alias permission error
I believe aliases needs to be -r--r--r-- .
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 05:12 AM
06-02-2005 05:12 AM
Re: sendmail alias permission error
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 05:15 AM
06-02-2005 05:15 AM
Re: sendmail alias permission error
warning: /etc/mail/aliases has world read or write permission. This is unsafe.
warning: /etc/mail/aliases.db has world read or write permission. This is unsafe.
hash map "Alias0": unsafe map file /etc/mail/aliases.db: 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 06:39 AM
06-02-2005 06:39 AM
Re: sendmail alias permission error
/etc/mail should be 555 what are its permissions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 06:42 AM
06-02-2005 06:42 AM
Re: sendmail alias permission error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 06:44 AM
06-02-2005 06:44 AM
Re: sendmail alias permission error
/ drwxr-xr-x
/etc drwxr-xr-x
/etc/mail drwxr-xr-x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 06:46 AM
06-02-2005 06:46 AM
Re: sendmail alias permission error
Can you run newaliases as root from a command line without an error?
Not the init script just the newaliases command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 06:49 AM
06-02-2005 06:49 AM
Re: sendmail alias permission error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 06:51 AM
06-02-2005 06:51 AM
Re: sendmail alias permission error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 07:02 AM
06-02-2005 07:02 AM
Re: sendmail alias permission error
What are the ownerships? should be:
/ root root
/etc bin bin
/etc/mail bin bin
/etc/mail/aliases root bin
/etc/mail/aliases.db root mail
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 07:09 AM
06-02-2005 07:09 AM
Re: sendmail alias permission error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 07:19 AM
06-02-2005 07:19 AM
Re: sendmail alias permission error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 07:23 AM
06-02-2005 07:23 AM
Re: sendmail alias permission error
O AliasFile=/etc/mail/aliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 07:56 AM
06-02-2005 07:56 AM
Re: sendmail alias permission error
OK - I'm now convinced the problem is the sendmail binary itself. newaliases is simply a link to /usr/sbin/sendmail. So what's perms/ownership on it? Should be:
-r-sr-sr-t root mail
Then run what on it & make sure the version it returns matches the version listed in the sendmail.cf file - it's the DZ value.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 08:47 AM
06-02-2005 08:47 AM
Re: sendmail alias permission error
Where do I go from here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 01:17 AM
06-03-2005 01:17 AM
Re: sendmail alias permission error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 01:19 AM
06-03-2005 01:19 AM
Re: sendmail alias permission error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 02:52 AM
06-03-2005 02:52 AM
Re: sendmail alias permission error
newaliases: cannot open /etc/mail/aliases: Group writable file
for the sendmail -bi and newaliases command.
the makemap command seemed to work, but, I still cannot restart sendmail without the error message and the mail queued in the mqueue directory will not go away.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 02:59 AM
06-03-2005 02:59 AM
SolutionI would probably stop sendmail and reapply the patch - should be listed in the sendmail what output. Afterwards make sure the new sendmail.cf file has been written.
NOTE: you'll have to reapply any mods to the file like the smart relay, domain & such.
Then retry the newaliases command.
Let us know how it goes.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 05:38 AM
06-03-2005 05:38 AM
Re: sendmail alias permission error
Now all is right with the world and the aliases work and the mqueue directory emptied out.
thanks for all your persistance in helping me.
-Alan