Some might accuse God of being hypocritical or tyrannical when he applies a certain moral law on man that He, Himself, is not obliged to keep, but, I think we all know that to not necessarily be the case when we consider certain human examples.
As with all metaphors, this one's not perfect, and there will be ways to pick it apart, but hopefully the message will get through. The place I see this most clearly demonstrated is in how I relate to my children. There are certain things that they are most definitely not allowed to do (like mess with the lawnmower...or fire up the grill), and as an authoritative head over them, I am not only in a position to break those laws (the very ones I demand of them!) without necessarily being immoral, but in some cases, where I'm actually remiss in my duties if I don't do those things from time to time (like messing with the lawnmower and firing up the grill :) ). I think we all agree that, even limited to the human scope, there is a certain hierarchy in which certain authorities supersede laws imposed on...for a lack of a better term...underlings. Sure, this premise can, and often is, abused, but the abuse of it does not necessarily negate its validity.
According to the Bible, God is supreme authority, and Creator of all things. He gets to set the rules of the game,as it were, so as Caleb suggested, He, is, by definition, the moral standard. We can argue that that's not fair, and that things are stacked in His favor because of this, but our pleadings and desires don't change the nature of this scheme. That's to say, even if God were cruel or capricious, it's His right to be so. Fortunately, the Word He gives us assures us He's not, and He demonstrates His love for His creation through profound displays.
A couple of things that have helped me come to grips with this are presented as illustrations in scripture.
Several places God is referred to as an author of creation and of our life stories. If we consider the role of an author w/r/t his narrative--his created universe--then I think most people will agree that the morality of the author is transcendent (as it were) over the morality of the universe within the pages of his story...by that, I mean, that a certain morality exists within the story, but the author is not bound to that same morality...especially as it impacts the characters he created. He owns his characters and supplies their very existence, so if he kills off characters (even the likable ones) in horrific and seemingly unfair ways, his readers and fans might get upset, but there's no real moral injustice being committed...From that perspective, he's simply woven a tale that some deem unfortunate or unpleasant.
In another place God is referred to as the potter, and us his wares. Once more, this illustration reminds us that God's supreme eminence over his creation means there is no moral culpability to his creatures. If a potter wishes to make a fine vase designed for the very purpose of being elevated and pampered, and then the next day make an ash tray, designed for the very purpose of catching and containing burning refuse throughout its "life," then that's the potter's prerogative, and no one can really fault him for that inequitable design.
Things get a bit tricky -- as they should (lest we become cold sociopaths) -- when these "pots", and "characters" are our fellow man. We should be troubled when we see injustice, and we should weep with out friends and neighbors when tragedy strikes...and we should seek answers from the Great Author to see what it is we're to learn from these harsh events. But we should also understand that these things are His prerogative, and He's not immoral when these things -- even of they are the results of men behaving badly -- happen on His watch (as it were).
This is a somewhat difficult philosophical paradigm, but it's a fundamental one to the Christian.