Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    316
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    316
    [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)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Craig

    Craig Well-Known Member

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

    Craig.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice