Be sure to test it first before trying anything else:
https://stackoverflow.com/questions/18661976/reading-dev-cpu-msr-from-userspace-operation-not-permitted.
We ran into this issue once when we had a "trusted" person and we
couldn't easily grant him access to the MSRs. We couldn't find a good
solution. You could add the caps to a copy of the rdmsr binary and make
that file only usable by your trusted user...
Assuming you have an old enough kernel, I would just add the user to the
group that MSR files are owned by (and change settings so the relevant
/dev files are owned by a different group than root).
Ryan
On 06/24/2015 03:08 PM, Marcin Stolarek wrote:
Changing /dev file permissions for particular user
Hey!
I've got one user I trust and know that he isn't going to do anything
malicious, he needs a direct acces to file in dev (/dev/cpu/*/msr in
particular).
Have anybody checked how to do such a thing in slurm? We are thinking
abuot doing it in prologue and changing back in epilogue, checking if
the node is exclusive for user X. Do you know if the file permissions
can be changed in users namespace or how to achieve this using slurm
on Linux?
cheers,
marcin