operation not permitted
Karl Auer
kauer at biplane.com.au
Tue Mar 12 21:07:53 UTC 2024
On Tue, 2024-03-12 at 09:17 -0400, Jerry Geis wrote:
> echo "performance" > /sys/module/pcie_aspm/parameters/policy
>
> bash: echo: write error: Operation not permitted
>
> I am root at the time.
Are you actually root, or are you executing the command with sudo?
If with sudo, the redirection gets processed before the escalation, so
you are actually trying to write that file as yourself, not root.
Otherwise, I don't know :-)
Regards, K.
PS: This:
> How do I change pcie_aspm in real time ?
... is a great question, because it tells us what you are actually
trying to do, and there may be other ways to achieve that.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au, he/him)
http://www.biplane.com.au/kauer
More information about the ubuntu-users
mailing list