Operating System - HP-UX
1833821 Members
2742 Online
110063 Solutions
New Discussion

WARNING: World writable directory /var/spool/mqueue

 
SOLVED
Go to solution
Manuales
Super Advisor

WARNING: World writable directory /var/spool/mqueue

hi .....
when i run the command sendmail, appears the message WARNING ...

AUSTRALIA:/->/usr/sbin/sendmail -v hola@patito.com.au
WARNING: World writable directory /var/spool/mqueue

WHy???
8 REPLIES 8
John Payne_2
Honored Contributor

Re: WARNING: World writable directory /var/spool/mqueue

/var/spool/mqueue holds the mail and headers for your mail. It being world writable means there is possibility of mail being intercepted and altered...

John
Spoon!!!!
Dennis Handly
Acclaimed Contributor

Re: WARNING: World writable directory /var/spool/mqueue

Because it is a security hole, "World writable directory" is a bad thing.

What does "ll -d /var/spool/mqueue" show.
Manuales
Super Advisor

Re: WARNING: World writable directory /var/spool/mqueue

Now is appearing the following:

syslog failed: Resource temporarily unavailable, syslog output to stderr
Sendmail: gethostbyaddr(90.30.29.2) failed: 1

syslog failed: Resource temporarily unavailable, syslog output to stderr
Sendmail: gethostbyaddr(12.23.23.45) failed: 1

WARNING: World writable directory /var/spool/mqueue


i restarted again the syslog but the message continues appearing .....

Manuales
Super Advisor

Re: WARNING: World writable directory /var/spool/mqueue

It is appearing:

/var/adm/syslog->ll -d /var/spool/mqueue
drwxrwxrwx 2 root sys 68608 Aug 4 23:30 /var/spool/mqueue

could it be the permissions?
Dennis Handly
Acclaimed Contributor
Solution

Re: WARNING: World writable directory /var/spool/mqueue

drwxrwxrwx 2 root sys /var/spool/mqueue
>could it be the permissions?

Of course. It shouldn't have "w" for the OTHER permission.
Dennis Handly
Acclaimed Contributor

Re: WARNING: World writable directory /var/spool/mqueue

>It shouldn't have "w" for the OTHER permission.

Fix by:
# chmod o-w /var/spool/mqueue

There may be other permissions to remove?
Manuales
Super Advisor

Re: WARNING: World writable directory /var/spool/mqueue


1.- first messgae
WARNING: World writable directory /var/spool/mqueue
i changed permissions: chmod 775 mqueue

2.- second message:
WARNING: Group writable directory /var/spool/mqueue
i changed permissions: chmod 755 mqueue

it fixed !!!!

now, only it is appearing:
syslog failed: Resource temporarily unavailable, syslog output to stderr
Sendmail: gethostbyaddr(100.10.10.80) failed: 1

syslog failed: Resource temporarily unavailable, syslog output to stderr
Sendmail: gethostbyaddr(19.16.13.7) failed: 1

what could be that????

thaks.
Dennis Handly
Acclaimed Contributor

Re: WARNING: World writable directory /var/spool/mqueue

>There may be other permissions to remove?

On 11.23, the permissions are just: drwx------
So: # chmod u=rwx,g=,o= /var/spool/mqueue