File system root rights affect the whole file system

Check the rights for the file system root if “access denied” errors occur when logs, pid files, temp files or others are needed, but cannot he written.

I recently had to troubleshoot a system where the file access rights got messed, although all the rights for /var/log, /tmp and more where correct.  It turned out eventually that the fs root (/) didn’t have the right for others to read, which had a knock-on effect disallowing things like /var/run/… to be accessed by mysql, postfix, ntpd, etc, thus preventing the pid file to be written.
There were more strange access denied errors, but once the root right was set allow others to read, all these errors went away.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s