Not technically cpanel related...

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
939
22
168
Some time ago I had a server secured by a third party company who disabled some of the cpanel cgi scripts even though I had asked them not to. The permissions on those files show as 0000 and I am unable to change them.

What can I do ?
 

nickn

Well-Known Member
PartnerNOC
Jun 15, 2003
616
1
168
4u123 said:
Some time ago I had a server secured by a third party company who disabled some of the cpanel cgi scripts even though I had asked them not to. The permissions on those files show as 0000 and I am unable to change them.

What can I do ?
Sounds like they are chattr +i'd.

Do chattr -i /home/username/path/to/file.cgi

That should let you chang permissions again. :)
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
939
22
168
Hi, thanks for your reply, I tried that...

[~]# chattr -i /usr/local/cpanel/cgi-sys/formmail.pl
[~]# chmod 755 /usr/local/cpanel/cgi-sys/formmail.pl
chmod: changing permissions of `/usr/local/cpanel/cgi-sys/formmail.pl': Operation not permitted
 

Etheral

Well-Known Member
Dec 8, 2003
206
0
166
sometimes with chattr, i find i have to run the command a few times. Just my 2 cents.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
939
22
168
Hi,

Yes I'm running this as root and I still cant change permissions after running it several times.

Any ideas ?
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
939
22
168
Last resort - I've renamed the cgi-sys folder and run a upcp --force to reinstall the scripts.