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.

Stopping ONE file updating in a theme

Discussion in 'User Experience' started by Craig, Oct 2, 2002.

  1. Craig

    Craig Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    171
    Likes Received:
    0
    Trophy Points:
    16
    Hi there,

    I made some manual changes to the index.html of a skin - however, when /scripts/upcp runs it will revert back to the old one.

    Is there anyway I can stop this from happening yet with it still being able to be read and be used by a user with the cpanel theme selected.

    Any help / ideas ?

    Craig.
     
  2. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [quote:f180b3760c][i:f180b3760c]Originally posted by Craig[/i:f180b3760c]

    Hi there,

    I made some manual changes to the index.html of a skin - however, when /scripts/upcp runs it will revert back to the old one.

    Is there anyway I can stop this from happening yet with it still being able to be read and be used by a user with the cpanel theme selected.

    Any help / ideas ?

    Craig. [/quote:f180b3760c]
    use this command in a root SSH session:

    chattr +i file-name

    this command adds & i & attribute to file and a file with this attribute cannot be modified, it connot be deleted, renamed or a sysmlink cannot be created to this file and no data can be written to this file
    but it can be read (due to its ownership)

    This attribute can be set or clear just by superuser (Root)
     
  3. Craig

    Craig Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    171
    Likes Received:
    0
    Trophy Points:
    16
    Splendid, thanks :)

    Craig.
     
Loading...

Share This Page