2 Replies - 5358 Views - Last Post: 08 January 2012 - 07:30 PM

#1 alpha02  Icon User is offline

  • Sexy DIC God
  • member icon

Reputation: 47
  • View blog
  • Posts: 803
  • Joined: 20-May 06

Linux CentOS file permissions

Posted 08 January 2012 - 11:30 AM

Hi All! I've set up a CentOS 5.1 machine to host a web server. I installed Parallels Plesk to manage the whole thing. All is working well, but there's a limitation (yes, I am root):

I want to open port 993 to allow secure IMAP to pass through. I want to edit the firewall in /etc/sysconfig/iptables however I cannot write to this file (access denied, it is read-only). So whether I add the rules through the SSH console, they're all gone by the time I restart iptables because that file is locked.

How can I edit it? Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Linux CentOS file permissions

#2 alpha02  Icon User is offline

  • Sexy DIC God
  • member icon

Reputation: 47
  • View blog
  • Posts: 803
  • Joined: 20-May 06

Re: Linux CentOS file permissions

Posted 08 January 2012 - 07:26 PM

Nevermind, problem solved.
Solution was:

root # chattr -i /etc/sysconfig/iptables

Then edit the file as needed.
Was This Post Helpful? 1
  • +
  • -

#3 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5407
  • View blog
  • Posts: 27,410
  • Joined: 10-May 07

Re: Linux CentOS file permissions

Posted 08 January 2012 - 07:30 PM

Thank you for sharing your solution!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1