WordPress Asking for FTP credentials

I notice when I upgrade one of my blog doesn’t require any FTP credentials but another requires. To avoid this, is to set the directory to the same user as the hosting daemon service running. For example mine was www-data.

So just need to ensure it is running correctly by 

$sudo chown -R www-data:ubuntu blog