Hello
Please tell me how to prevent users from deleting backups created via cron at a specified time.
Thanks
Hello
Please tell me how to prevent users from deleting backups created via cron at a specified time.
Thanks
Users shouldnāt be allowed to delete backups via Cronjobs as the are not owned by the user
drwxr-xr-x 2 root root 4.0K Dec 6 05:10 .
drwxr-xr-x 24 root root 4.0K Sep 4 10:12 ā¦
-rw-r----- 1 admin admin 2.0M Dec 6 05:10 admin.2024-12-06_05-10-03.tar
-rw-rw---- 1 root root 1.2K Dec 6 05:10 admin.log
-rw-r----- 1 admin paymenter 25M Dec 6 05:10 paymenter.2024-12-06_05-10-11.tar
-rw-rw---- 1 root root 1.3K Dec 6 05:10 paymenter.log
-rw-r----- 1 admin test 54M Dec 6 05:10 test.2024-12-06_05-10-06.tar
-rw-r----- 1 admin test2 70K Dec 6 05:10 test2.2024-12-06_05-10-08.tar
-rw-rw---- 1 root root 1.2K Dec 6 05:10 test2.log
-rw-rw---- 1 root root 1.2K Dec 6 05:10 test.log
The have only read access ā¦
rm: cannot remove ā/backup/admin.2024-12-06_05-10-03.tarā: Permission denied
The only user who can do that in Theorie is the āadminā user.
Iām talking about deleting via the control panel.
are you logged in directly with the user or did you use the admin to open as the specific user?
Users are allowed to delete backups via UIā¦
Maybe we should change that ā¦
Under the user. I even used an anonymous tab. And under the admin the same thing.
Yes, I think itās worth it. But allow deleting only those backups that the user created himself via the panel. And prohibit deleting daily ones via cron.
Okay. How can I then prevent backup from being deleted on a remote sftp storage when deleting a user account?
They are not deleted so far I know ā¦
When you delete an account from the panel, the panel deletes the backup copy of this account on the remote storage. Is this normal?
No it doesnāt and I am 100 % sure ā¦
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.