Because using docker can sometimes cause ownership issues if not properly configured in your docker-compose.yml, I just added an alias to ~/.zshrc to rectify that.
-edit- Only run this script in your user owned directories, e.g. anything from ~/ (or /home/
<your_username>
) you might otherwise cause ownership issues for your system.## Set ownership of files/folders recursively to current user alias iownyou="sudo chown -R $USER:$GROUP"
With more people adapting Linux you're bound to have more non tech savvy people that will allow anything to happen on their system. Prompt for password appears and they just put it in without any regards for what will happen next.