John Gill says the following about Psalm 4:4:
That is, stand in awe of God, and his righteous, judgments; be afraid of him, and tremble before him; make him your fear and your dread, and go on no longer and proceed no further in sinning against him. The Septuagint, Vulgate Latin, Syriac, Arabic, and Ethiopic versions, render it, "be ye angry, and sin not"...There is an anger that is sinful, when it is without a cause, or exceeds due bounds, and is not directed to a good end, and is productive of bad effects, by words or deeds; and when it is soon raised, or long continued; and there is an anger that is not sinful; when it arises from a true zeal for God and religion; when it is kindled, not against the persons, but sins, of men; and when it is continued to answer good purposes; as the good of those with whom we are angry, and the glory of God, and the promoting of the kingdom and interest of Christ;
Similarly, his comments on Ephesians 4:26 are:
There is anger which is not sinful; for anger is fouled in God himself, in Jesus Christ, in the holy angels, and in God's people; and a man may be said to be angry and not sin, when his anger arises from a true zeal for God and religion; when it is kindled not against persons, but sins; when a man is displeased with his own sins, and with the sins of others: with vice and immorality of every kind; with idolatry and idolatrous worship, and with all false doctrine; and also when it is carried on to answer good ends, as the good of those with whom we are angry, the glory of God, and the promoting of the interest of Christ: and there is an anger which is sinful; as when it is without a cause; when it exceeds due bounds; when it is not directed to a good end; when it is productive of bad effects, either in words or actions; and when it is soon raised, or long continues
Matthew Henry writes the following regrading Ephesians 4:26
This is borrowed from the LXX. translation of Ps. iv. 4, where we render it, Stand in awe, and sin not. Here is an easy concession; for as such we should consider it, rather than as a command. Be you angry. This we are apt enough to be, God knows: but we find it difficult enough to observe the restriction, and sin not. "If you have a just occasion to be angry at any time, see that it be without sin; and therefore take heed of excess in your anger." If we would be angry and not sin (says one), we must be angry at nothing but sin; and we should be more jealous for the glory of God than for any interest or reputation of our own. One great and common sin in anger is to suffer it to burn into wrath, and then to let it rest; and therefore we are here cautioned against that. "If you have been provoked and have had your spirits greatly discomposed, and if you have bitterly resented any affront that has been offered, before night calm and quiet your spirits, be reconciled to the offender, and let all be well again: Let not the sun go down upon your wrath. If it burn into wrath and bitterness of spirit, O see to it that you suppress it speedily." Observe, Though anger in itself is not sinful, yet there is the upmost danger of its becoming so if it be not carefully watched and speedily suppressed. And therefore, though anger may come into the bosom of a wise man, it rests only in the bosom of fools. Neither give place to the devil,
and on James 1:20 he says:
20. It is as if the apostle had said, "Whereas men often pretend zeal for God and his glory, in their heat and passion, let them know that God needs not the passions of any man; his cause is better served by mildness and meekness than by wrath and fury." Solomon says, The words of the wise are heard in quiet, more than the cry of him that ruleth among fools,
The bolded portion of Henry's comments is, in my opinion, really what these verses and the verses listed in my previous post are trying to get across. But if there is no righteous anger unless it is anger against sin can a man alone in his flesh be angry at sin and therefore be righteously angry? And if not then can righteous anger really be attributed to man at all?
Being that scripture says that no man is good(Mark 10:18, Luke 18:19) I posit that a man can only be righteously angry if it is God's anger made manifest in the man by His Holy Spirit. Just as a man's desires and views change as he abides in Christ so does the direction of his anger change from people to sin. Thus making more sense of James 1:20 saying that the anger of man does not achieve the righteousness of God.
...at least that's what I think right now ;)