You must execute the command from the owner of the web, if for example the user of the web server is "www" you must execute these commands with this user and not with root.
Another option would be, after generating them, change pub static permissions with the command:
chown -R [USER WWW] pub/static/*
chgrp -R [GROUP WWW] pub/static/*
You must change [USER WWWW] and [GROUP WWW] for the values of your server environment.
Another possible option of error:
Verify that the generic .htaccess exists in /pub/static/
In this case:
First option, I need to execute the command with the user "edesarrollo"
chown -R edesarrollo pub/static/*
chgrp -R psacln pub/static/*