I am trying to work with control groups on two different operating systems (Ubuntu and CentOS). There are few concerns that I would like to ask.
I am trying to create a control group using the
cgcreate command, and it looks like it requires root access on the machine. All the examples that I have seen so far do not say anything about needing to be the root user for creating or modifying control groups.
Is it really necessary to be the root user? The end goal is to write a C++ application that creates and manages control groups to control resources using the libcgroup API. But the C++ application is not going to be run by any root user. It could be any normal user.