Permissions error on user-data

I am getting the following error in mail.log:

Feb 25 14:17:07 box opendkim[18286]: dbugg.dev: key data is not secure: /home/user-data is writeable and owned by uid 1001 which is not the executing uid (118) or the superuser

Is this an issue? I know programs like ssh will not run if you have a similar error on ~/.ssh. Here is the listing for /home/user-data:

drwxr-xr-x  9 user-data user-data 4096 Sep 26 18:12 user-data

And a listing of it’s contents:

drwxr-xr-x 9 user-data user-data     4096 Sep 26 18:12 .
drwxr-xr-x 4 root      root          4096 Sep 22 21:23 ..
-rw-r--r-- 1 user-data user-data      220 Apr  4  2018 .bash_logout
-rw-r--r-- 1 user-data user-data     3771 Apr  4  2018 .bashrc
-rw-r--r-- 1 user-data user-data        0 Sep 21 21:55 .cloud-locale-test.skip
-rw-r--r-- 1 user-data user-data      807 Apr  4  2018 .profile
drwxr-xr-x 4 root      root          4096 Sep 23 03:05 backup
-rw-r--r-- 1 root      root      55296000 Sep 26 18:12 backup200926.tar
drwxr-xr-x 3 root      root          4096 Sep 22 21:25 dns

drwxrwxr-x 7 root      www-data      4096 Nov 27 22:14 mail
-rw-r--r-- 1 user-data user-data        3 Nov 27 15:21 mailinabox.version
drwxrwx--- 6 www-data  www-data      4096 Feb 25 14:20 owncloud
drwxr-xr-x 4 root      root          4096 Nov 27 15:25 owncloud-backup
-rw-r--r-- 1 root      root            15 Sep 23 13:08 settings.yaml
drwxr-xr-x 3 root      root          4096 Feb 22 03:25 ssl
drwxr-xr-x 3 user-data root          4096 Sep 22 21:28 www

The ssl directory is owned by root.root so the keys themselves appear to be secure.

Is this something I need to fix or ignore?

TIA

No, it is a warning. Usually your information such as the opendkim key data will be kept in a directory owned by the user opendkim but the nature of MiaB being created with data stored in one directory on the server causes that warning to appear.

Thought so. Thanks @alento.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.