The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

my.cnf

Discussion in 'General Discussion' started by Nico, Jun 24, 2003.

  1. Nico

    Nico Well-Known Member

    Joined:
    Dec 5, 2001
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Edmond, OK
    While trying to edit /etc/my.cnf in pico I get:
    "Cannot open file for writing: Permission denied"
    ls -lah returns -rw-r--r-- 1 root root

    When trying to change the permsisions on it I get chmod: /etc/my.cnf: Operation not permitted.

    I'm logged in as root.

    Any ideas?

    TIA

    cPanel.net Support Ticket Number:
     
  2. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    chattr -i /etc/my.cnf

    try that

    cPanel.net Support Ticket Number:
     
  3. Nico

    Nico Well-Known Member

    Joined:
    Dec 5, 2001
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Edmond, OK
    Tried that and it still gives the same errors.
    :confused:

    cPanel.net Support Ticket Number:
     
  4. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    change permissions to 755 or 777

    cPanel.net Support Ticket Number:
     
  5. Nico

    Nico Well-Known Member

    Joined:
    Dec 5, 2001
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Edmond, OK
    Everytime I try that I get "Operation not permitted."

    cPanel.net Support Ticket Number:
     
  6. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
  7. Nico

    Nico Well-Known Member

    Joined:
    Dec 5, 2001
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Edmond, OK
    I found the problem - needed to run chattr -a
    I can now edit the file.

    cPanel.net Support Ticket Number:
     
  8. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    Great!

    cPanel.net Support Ticket Number:
     

Share This Page