Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 9315  / 2 Years ago, fri, august 12, 2022, 2:10:42

I am trying to edit the file /proc/sys/vm/overcommit_memory, but I'm getting permission denied even if I use sudo or switch to root user via sudo -i and try to edit using that account. How can I get this to work?


More From » permissions

 Answers
4

I found my answer here. I was trying to use vim to edit the file while in root user mode, but it turns out you can't do that since the file is virtual. Instead, I used echo 1 >/proc/sys/vm/overcommit_memory


[#3636] Friday, August 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tresein

Total Points: 197
Total Questions: 113
Total Answers: 112

Location: Hungary
Member since Wed, Nov 9, 2022
2 Years ago
tresein questions
Tue, Jun 28, 22, 17:57, 2 Years ago
Sun, Apr 3, 22, 07:11, 2 Years ago
Thu, Feb 3, 22, 18:03, 2 Years ago
Sat, May 13, 23, 13:00, 1 Year ago
;