We help IT Professionals succeed at work.
Get Started

how to edit files Linux (Ubuntu Distr.)

1,333 Views
Last Modified: 2012-05-12
Hello,
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_forward" 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

Open in new window


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

Open in new window


Whould you mind help me?!
Comment
Watch Question
Top Expert 2011
Commented:
This problem has been solved!
Unlock 1 Answer and 25 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE