ssh & control groups

Ondrej Valousek ondrejv at
Fri Jun 1 17:50:41 EST 2012

Hi List,

I am looking for an option for sshd to start user's shell (when logging in interactively to a remote host) in a control group via cgexec - 
so for example:

/bin/cgexec -g <username> /bin/bash

This would be extremely handy on linux Terminal servers to control users access to the system resources (protect system from a malicious 
user hogging the machine by running cpu/memory intensive applications).

Is something like that possible to achieve?


The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s).
Please direct any additional queries to: communications at
Thank You.
Silicon and Software Systems Limited. Registered in Ireland no. 378073.
Registered Office: South County Business Park, Leopardstown, Dublin 18

More information about the openssh-unix-dev mailing list