[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Clearing RAM Caches



When I run `sudo echo 1 > /proc/sys/vm/drop_caches` I receive the following error: bash: /proc/sys/vm/drop_caches: Permission denied

I have `%sudo   ALL=(ALL:ALL) ALL` in my /etc/sudoers file. All commands should be allowed for group sudo.

ls -la /proc/sys/vm/drop_caches
--w------- 1 root root 0 Aug 14 16:28 /proc/sys/vm/drop_caches

I tried adding group permissions with `sudo chmod 440 /proc/sys/vm/drop_caches` and receive the following error message chmod: changing permissions of '/proc/sys/vm/drop_caches': Operation not permitted

If I run `sudo sh -c "/usr/bin/echo 1 > /proc/sys/vm/drop_caches"` it works.  Why does  `sudo echo 1 > /proc/sys/vm/drop_caches` not work, so frustrating.

Tim

--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply to: