A world-writable file or directory is one that anyone can alter. For directories this means that files can be created or deleted within it by anyone. Being world-writable is almost always a security risk.
Problem:
Get below error when try to start sendmail (/etc/init.d/sendmail start)
/etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
Solution:
- Grant w to /etc, /etc/mail, /etc/mail/* => not work
- Manually edit file sendmail.cf
Fw-o /etc/mail/local-host-names
identically (if you got the same error for trusted-users)
replace line Ft/etc/mail/trusted-users with line
Ft-o /etc/mail/trusted-users
Thanks, this is really helpful.
ReplyDeleteBut what does the setting mean? Neither of my directories/files have flag 'w' for 'other'.