Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-19-2009, 07:38 AM   #1
LQ Newbie
Registered: Sep 2007
Location: New Delhi
Distribution: Ubuntu, SUSE, RedHat
Posts: 15

Rep: Reputation: 0
sendmail -bi problem - Group writable

Hi there,

On my RHEL 5.1 Server, when trying to run the aliases.db, getting the following error;
[root@web1 mail]# sendmail -bi
WARNING: Group writable directory /
WARNING: Group writable directory /
WARNING: Group writable directory /
hash map "Alias0": unsafe map file /etc/aliases.db: Group writable directory
WARNING: cannot open alias database /etc/aliases
Cannot create database for alias file /etc/aliases

However, I tried to check all the directories which sendmail is complaining and not seen any directory in the list have group writable.

Can some body experience this and have a solution/suggestion please guide me. The sendmail version I am using is "sendmail-8.13.8-2.el5"

Old 03-19-2009, 08:44 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,758
Blog Entries: 14

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
"/" = the root filesystem. It appears to be complaining that you root wide open which is really a bad idea for many many reasons.

Try running the following series of commands and see if you have the same results:

ls -ld /
drwxr-xr-x 25 root root 4096 Jan 10 15:16 /

ls -ld /etc
drwxr-xr-x 101 root root 12288 Mar 12 04:02 /etc

ls -ld /etc/mail
drwxr-xr-x 3 root root 4096 Feb 24 14:34 /etc/mail

My results came from a RHEL5 system which is running sendmail correctly so yours should probably match mine.

To set the permissions use the chmod command:
chmod 755 /
chmod 755 /etc
chmod 755 /etc/mail

To set the ownership/group use the chown command:
chown root:root /
chown root:root /etc
chown root:root /etc/mail
1 members found this post helpful.
Old 03-20-2009, 01:03 AM   #3
LQ Newbie
Registered: Sep 2007
Location: New Delhi
Distribution: Ubuntu, SUSE, RedHat
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you, it worked for me.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficult file permissions Problem. Writable not Deleteable kyriakos Linux - Server 5 04-09-2008 06:30 PM
group mail in sendmail shipon_97 Linux - Newbie 1 02-07-2008 08:23 PM
Samba: Problem writing to a group-writable directory pschoenb Linux - Server 5 02-28-2007 06:34 PM
Sendmail Group Writable Directory flipcode Linux - Security 0 12-23-2004 03:41 PM
sendmail world writable directory jbrearley Linux - Software 0 07-01-2004 12:16 PM

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration