Article 51KYP root user cannot write on file

root user cannot write on file

by
NerdOne
from LinuxQuestions.org on (#51KYP)
Hi,

I was trying to edit the following file as root:

/sys/module/pcie_aspm/parameters/policy

As in the title I cannot write on this file even though I am logged as root.

Permissions on this file are set rwx for owner, group, and others (chmod 777)

I tried to overwrite the file by using 'echo "string" >/sys/module/pcie_aspm/parameters/policy' and through vi/vim/nano

I also trying to set chattr attribute by typing:
chattr -a /sys/module/pcie_aspm/parameters/policy
chattr -i /sys/module/pcie_aspm/parameters/policy

both returning: "inappropriate ioctl for device"

Do you know how I can write the file?

Thanks for you timelatest?d=yIl2AUoC8zA latest?i=ue0_7Gs1npo:njOxNzWjMbg:F7zBnMy latest?i=ue0_7Gs1npo:njOxNzWjMbg:V_sGLiP latest?d=qj6IDK7rITs latest?i=ue0_7Gs1npo:njOxNzWjMbg:gIN9vFwue0_7Gs1npo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments