Sorry I'm answering my own mail.  At that time the mandoc.db was updated, I installed some packages, nginx, php72, could having a wrong umask in my shell have caused this?

Regards,

-peter

On 1/30/19 7:49 PM, Peter J. Philipp wrote:
Hi,

I did something I should not have done.  I wrote a manpage and placed it in /usr/share/man/man7/ instead of /usr/local/... However when I did this the permissions on mandoc went screwy I don't know why.

beta# ls -lh /usr/local/man/mandoc.db
-rw-------  1 root  wheel   862K Jan 28 20:56 /usr/local/man/mandoc.db
beta# chmod 644 /usr/local/man/mandoc.db
beta# crontab -l | grep umask
beta# ls -lc /usr/share/man/man7/alphabet.7
-rw-r--r--  1 root  wheel  2845 Jan 28 15:02 /usr/share/man/man7/alphabet.7
beta# umask
022

It also couldn't have been weekly crontab, it runs at 3:30AM, something else caused the mandoc.db to be rebuilt and inherited a weird umask.

Unfortunately this is all I can give to try to backtrack what happened.  Ideas for next time to prevent this  or suggestions how this happened would be nice.

I grepped through the mandoc source and didn't find a mention of umask.

Regards,

-peter

Reply via email to