In my Linux Server some file not editable or when i edit them after reboot it's back to it previous version.
for example for /etc/ufw/ufw.conf I edit "enable=no" to "enable=yes" and saved it, but after reboot when I print ufw.conf's contents it's back to previous version.
I found a way for this, i change file permission to 755 and edit with root permission and it's not back to previous version.
after it new problem occur for me. I want to edit "/proc/sys/net/ipv4/ip_for
ward" but it's back to previous version after each reboot. i trying to set permission and receive following error:
root@testserver:/proc/sys/net/ipv4# chmod 755 ip_forward
chmod: changing permissions of `ip_forward': Operation not permitted
using chattr but it's not work and i received following error:
root@testserver:/proc/sys/net/ipv4# chattr +a ip_forward
chattr: Inappropriate ioctl for device while reading flags on ip_forward
Whould you mind help me?!