Operating System - HP-UX
1822544 Members
2998 Online
109642 Solutions
New Discussion юеВ

"World writable directory" problem with sendmail

 
SOLVED
Go to solution
Sean Park_2
Occasional Contributor

"World writable directory" problem with sendmail

As ROOT, I've got mesg at mail.log

Jul 26 10:51:53 poppy sendmail[2215]: KAA02215: forward /users/book/.forward.pop
py: World writable directory
Jul 26 10:51:53 poppy sendmail[2215]: KAA02215: forward /users/book/.forward: Wo
rld writable directory

But, there is no .forward file at /users/book (user book's home directory)!!!
When I try to test by command, I get like this

poppy:/>sendmail -v book
book... forward: /users/book/.forward.poppy: World writable directory
book... forward: /users/book/.forward: World writable directory
test
.
book... Connecting to local...
book... Sent


For other users, I cannot find any problem or warning mesg with sendmail....

poppy:/>ll -d ~book
drwxr-xr-x 13 book dba 3072 Jul 26 10:45 /users/book

...and there's no .forward file at ~book, once more.

How can I keep away from this abnormal mesg?

Thanks for any reply.
4 REPLIES 4
someone_4
Honored Contributor
Solution

Re: "World writable directory" problem with sendmail

Hi here are the permisions for your home directorys.

drwx------ 4 rleon mail 1024 Jul 23 16:42 /home/rleon

set them alike and your error should go away.

~ Richard
Jordan Bean
Honored Contributor

Re: "World writable directory" problem with sendmail


Make sure that

/
/etc
/etc/mail
/etc/mail/*
/var
/var/mail
/var/mail/*
/var/spool
/var/spool/mqueue
/users
/users/*
/home
/home/*
/home/*/.forward

are are not world or group writable.



Sean Park_2
Occasional Contributor

Re: "World writable directory" problem with sendmail

Thanks, your guys~!!

I've changed the permission on directory and files like this.

drwxrwxr-x 2 bin mail 1024 Jul 31 11:40 /var/mail

and

-rw-rw---- 1 book mail 71583 Jul 31 11:39 /var/mail/book


When the permission on /var/mail is 755, I got mesg "Can't create output" and when the permission on /var/mail/book is 640, the mesg was "Insufficient permission".

Thanks again!
T G Manikandan
Honored Contributor

Re: "World writable directory" problem with sendmail

you /var/mail/book should be 660 and not 640.

-rw-rw---- 1 book mail 2709 Feb 5 13:02 book

Thanks