LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-19-2009, 07:38 AM   #1
jose_tk
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"

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

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
"/" = 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
 
Old 03-20-2009, 01:03 AM   #3
jose_tk
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.

Jose
 
  


Reply


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 12:45 PM.

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