While following the Docker installation guide for my Ubuntu 18.04 OS, I ran into this warning after running the command for adding Docker’s official gpg key:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
gpg: WARNING: unsafe ownership on homedir '/home/marcoluis/.gnupg'
This is the ls -l output the contents of the directory:
$ ll /home/marcoluis/.gnupg
total 20
drwx------ 3 marcoluis marcoluis 4096 out 12 13:35 ./
drwxr-xr-x 17 marcoluis marcoluis 4096 out 13 10:55 ../
drwx------ 2 marcoluis marcoluis 4096 out 12 13:16 private-keys-v1.d/
-rw------- 1 marcoluis marcoluis 32 out 12 13:35 pubring.kbx
-rw------- 1 marcoluis marcoluis 1200 out 12 13:35 trustdb.gpg
I need to know if I can proceed with this warning, and if not, what must I do to avoid any future problems.