Using cgroup to limit resource for ssh session
/etc/profile and /etc/profile.d
Before we discuss how to limit process resource usage with cgroup for ssh session, let's take a moment to know about /etc/profile and /etc/profile.d in Linux.
/etc/profile
This is the system-wide profile file, which will be executed, when a user