Specify that only this user and root can read and write:
chmod 700 XXX
=====================================================================================================
Modify directory owner
sudo chown tom /home/DATA/test/tom
After this is specified, the permissions of the file directory are on tom.
He can add, delete and modify queries in it at will.
No one else, except the administrator, can access it.
The difference between chmod and chmod is that chmod is aimed at the file and whether it can be read and written, not at any user (except the administrator).
chown is for individuals