Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
48.2.5.5. 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>
Important
Always verify that any scripts running on the system work as intended before putting them into production.