I tried changing the ownership of some hidden files in my local directory, like .env, using the command `sudo chown matth:matth -R ./.*`. However, now I'm getting access denied errors from several Docker containers. What did I do wrong and is there a straightforward way to undo this?
1 Answer
It looks like your command `./.*` changed permissions for more than just your intended hidden files. The pattern matches everything that starts with a dot, including `..`, which represents the parent directory. So, all files in the parent directory lost ownership too. To fix this, you might want to restore the ownership specifically for the affected files or directories that were supposed to stay unchanged.

That sounds complicated! Is it possible to revert ownership to the original user for just the Docker files?