Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux Restrict Permissions for Executable Directories

Ensure that only the root user has write permissions to any directory containing scripts or CGIs. To do this, type the following commands:
chown root <directory_name>
chmod 755 <directory_name>


Always verify that any scripts running on the system work as intended before putting them into production.