Hallo Alex, On Mon, Mar 28, 2011 at 03:48:25PM +0200, Alexander Reichle-Schmehl wrote: > When running any programm shiped in rt-tests as non-root user, one is > greeted with something similar to: > > Unable to change scheduling policy! > either run as root or join realtime group > > > However, there doesn't seem such a group, nor is it documented how to > create it and which privileges this group would need. yeah, the message is misleading. I guess there is a realtime group on redhat-based distros that has the needed capabilities. Actually the message should better talk about sched_setscheduler(2), RLIMIT_RTPRIO and so maybe limits.conf(5).
E.g. after adding @users hard rtprio 20 @users soft rtprio 20 to /etc/security/limits.conf I'm able to run the rt test programs as ordinary user. I will check with upstream how to make the message more clear. > Also, I'm wonderung if these programms should be shipped in /usr/sbin/ > instead of /usr/bin. I'm not sure. The FHS says about /usr/sbin: This directory contains any non-essential binaries used exclusively by the system administrator. On one hand the tests in the rt-tests package are not related to administration; on the other hand you probably don't want a random user of your system run hackbench and cyclictest at a high priority. All in all I think /usr/bin is OK. Best regards and thanks, Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org