K
K
Kennardys2020-01-22 16:24:26
linux
Kennardys, 2020-01-22 16:24:26

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

3 answer(s)
A
Alexey Dmitriev, 2020-01-22
@SignFinder

This can be done using the rm delete command and the cron scheduler

I
iddqda, 2020-01-22
@iddqda

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

C
CityCat4, 2020-01-22
@CityCat4

Can be done. And get on the UK 272
If you work without a contract - SSZB. If with a contract - go to court.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question