chmod 555 scriptname (gives everyone read/execute permission)
chmod +rx scriptname (gives everyone read/execute permission)
chmod u+rx scriptname (gives only thescript owner read/execute permission)
原文转自:http://www.ltesting.net