MOC error on insecure configuration file


I added a configuration file for the MOC music player in my home directory: ~/.moc/config. On running mocp, it threw this error:

FATAL_ERROR: Configuration file is not secure: /home/joe/.moc/config


MOC requires that this configuration file be only writable by root or current user and nobody else. However, this file had write permissions for the users belonging to its group. MOC started without error once I removed the write permission for group:

$ chmod g-w ~/.moc/config

Tried with: MOC 2.5.0 and Ubuntu 14.04

Leave a Reply

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

You are commenting using your 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