Answer the question
In order to leave comments, you need to log in
Is it possible to make a timer to delete a linux directory?
We work with the customer on his vps server. There are suspicions that he may not pay for the work. Is it possible to shove a script into the system to remove the home and var directories after 14 days? Backups on the hosting are turned off, but I have all the files. How can this be implemented? ubuntu system 16.04
Answer the question
In order to leave comments, you need to log in
This can be done using the rm delete command and the cron scheduler
For deleting someone else's information from the customer's server, you can (in theory) sit down on a bottle
, not to mention the fact that deleting or even modifying / var is wrecking
home / username, you can clean it up of course.
But it will be more interesting to encrypt the necessary files with an asymmetric key. the same openssl rsautl
and yes, it's interesting, but no less mean.
It is better to build a relationship with the customer as a human being
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question