L
L
LebedevStr2016-10-05 11:44:54
System administration
LebedevStr, 2016-10-05 11:44:54

How to prevent the deletion of files on hosting?

Hello. An incomprehensible bug got out in one CMS. The point is the following. After certain actions, images are deleted from the folder located on the hosting.

It remains
Either to look for a bug on your own, or simply disable it by deleting files from the folder.

How can I prevent the deletion of files? Maybe special rights to folders.

Tell me please.

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Chronic 86, 2016-10-05
@chronic86

Try chattr in your case should help.

R
romy4, 2016-10-05
@romy4

you can prevent deletion along with writing to this folder by setting read-only rights
look in the code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question