Files reappearing on the server even after deletion

I delete the files (Wordpress theme files) of my site to the server using cPanel, but still the files reappear. There are 000 permissions in the files.

It is strange that the files have the appropriate permissions (ie 777) when they are on my local machine, but when downloaded they change to 000. Do you think the site is infected with a virus? I started the Anti-Virus scan and did not find it.

Any reason this could happen?

+3
source share
5 answers

chmod 000 denies read, write, and execute rights for itself, your group, and everyone else.

How are files uploaded to the server? Your FTP program can attach files to me when they are downloaded.

root-, $ rm -rf filename

Edit

Umask . Umask 777 000.

, 777 Umask, : grep 'umask 777' /etc/skel/.bashrc

-, Umask 022. , .

cpanel FTP-, ​​ Transmit for Mac Core FTP Pro Windows, SFTP, FTP.

+1

, FTP . , -.

, cPanel 777 . , , ( /cpanel misconfiguraiton).

0

, , , . , . :

0

, . ( ) .

0

, , , :

  • , : FOLDER FILE
  • If it is a FOLDER, check the permissions for this PAPOR and change to 755, do the same if it is a FILE and just delete
  • The problem is that you have to open the FOLDER and CHANGE ALL BASES AND FILES inside it before the 755 settings.
  • Delete files from inside SUBFOLDERS and then to FOLDERS

It might help someone.

0
source

All Articles