Folder permissions are essential to be able to add .htaccess

Hi dear All,

I am trying to harden the website using Defender.

When is to be added a .htaccess file to protect some folder (/oldpipl/wp-content/uploads/) it can't be done because of some folder permissions.

Please repeat how a solid Wordpress website should have the folder permissions... Also the groups and ownership.