IMPORTANT
NOTE: This document is based on CentOS, RedHat Linux
7.3 and Enterprise. The concepts should be similar across operating
systems, but the commands will very likely be different.
Also, never assume the directory structures exist in your system
as written in the document. Never blindly follow security
instructions -- read, review, compare, apply as it fits your
system.
Log into the server via SSH
Change to the root user
Edit /etc/fstab and change the definition for shared memory
Change the line that has /dev/shm from defaults to rw,noexec,nosuid
Then run
umount -l /dev/shm
mount -a
NOTE: On RedHat systems prior to Enterprise, if you do a “df -k" and see
/dev/shm having the same memory as another partition (root for example),
do the following:
umount none
mount -a
NOTES:
The /etc/fstab entry means it will be mounted
automatically on boot up.
nosuid, noexec are to help protect against hackers
putting root kits in /tmp and building / executing them |
IMPORTANT
NOTE: This document and all
linked document is being provided as a good will gesture to the
Parallels H-Sphere community and to others who may benefit from its use.
Dynamic Net, Inc. makes no representations implied or explicit
as to their value or warranty. Dynamic Net, Inc. will not be
held liable for any damage resulting in the application of the
steps and procedures noted. If you feel uncomfortable at
all about doing any of the steps, make a complete system backup
and hire a third party like
We Manage Servers
to do the work for you.
|
|