Can I remove the "Log Out" item from the Apple menu? Is it possible to remove "Log Out" from the Apple Menu? I know there used to be a tool that let you customize the Apple Menu (can't remember the name) but I doubt it's still working on Lion. 

Preferably I'd like a Terminal command or something.
I've been looking at removing the Sleep and Shut Down options from the Apple Menu on our lab Macs. My focus was OS X 10.7.3. 

I found that just removing the objects, as Daniel Lawson has suggested, also caused the Apple menu to crash when I clicked it.

After closer examination, I noticed that there were references to the Shut Down and Sleep objects elsewhere in the objects.xib file. After I removed both the objects and the references, the Apple menu behaved as expected, and did not show the Shut Down and Sleep options.

Here are my changes to the 10.7.3 objects.xib file:

File: 

/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/StandardMenus.nib/objects.xib


Changes:

# diff objects.xib ../StandardMenus.nib.ORIG/objects.xib 
185a186,189
&gt;         &lt;object class="IBCarbonMenuItem" id="236"&gt;
&gt;           &lt;string name="title"&gt;Sleep&lt;/string&gt;
&gt;           &lt;ostype name="command"&gt;slep&lt;/ostype&gt;
&gt;         &lt;/object&gt;
196a201,212
&gt;         &lt;object class="IBCarbonMenuItem" id="238"&gt;
&gt;           &lt;string name="title"&gt;Shut Down…&lt;/string&gt;
&gt;           &lt;boolean name="dynamic"&gt;TRUE&lt;/boolean&gt;
&gt;           &lt;boolean name="notPreviousAlternate"&gt;TRUE&lt;/boolean&gt;
&gt;           &lt;ostype name="command"&gt;rsdn&lt;/ostype&gt;
&gt;         &lt;/object&gt;
&gt;         &lt;object class="IBCarbonMenuItem" id="285"&gt;
&gt;           &lt;string name="title"&gt;Shut Down&lt;/string&gt;
&gt;           &lt;boolean name="dynamic"&gt;TRUE&lt;/boolean&gt;
&gt;           &lt;int name="keyEquivalentModifier"&gt;1572864&lt;/int&gt;
&gt;           &lt;ostype name="command"&gt;shut&lt;/ostype&gt;
&gt;         &lt;/object&gt;
242a259
&gt;     &lt;reference idRef="236"/&gt;
358a376
&gt;     &lt;reference idRef="285"/&gt;
401a420
&gt;     &lt;reference idRef="238"/&gt;