I actually asked a question very similar to this the other day on the Unix/Linux StackExchange site.<br><br><a href="http://unix.stackexchange.com/questions/12807/preventing-use-of-cd-in-bash">http://unix.stackexchange.com/questions/12807/preventing-use-of-cd-in-bash</a><br>
<br><div class="gmail_quote">On Tue, May 17, 2011 at 4:10 PM, Matthew Nuzum <span dir="ltr"><<a href="mailto:newz@bearfruit.org">newz@bearfruit.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is there a way to prevent a command from being run with sudo? (in Ubuntu specifically) Would be awesome if I could spit out a user-friendly error message so I can remember why I chose not to allow that command to be run.<br clear="all">
<font color="#888888">
<br>-- <br>Matthew Nuzum<br>newz2000 on freenode, skype, linkedin and twitter<br><br><p>"Opportunity is missed by most people because it is dressed in overalls and looks like work." -Thomas Edison</p><br>
</font><br>_______________________________________________<br>
Cialug mailing list<br>
<a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>
<a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Kenneth Younger III<br>Founder, Sheer Focus Inc.<br>Organizer,

 WordCamp Iowa<br>e: <a href="mailto:kenny@sheerfocus.com" target="_blank">kenny@sheerfocus.com</a><br>p: (515) 367-0001<br>t: <a href="http://twitter.com/kenny" target="_blank">@kenny</a></font><br>