Stopping ONE file updating in a theme

Craig

Well-Known Member
Aug 10, 2001
170
0
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.
 

itf

Well-Known Member
May 9, 2002
620
0
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)