I have made a script which creates a folder (website
) in the public path of a website that belongs to a website control panel (CyberPanel
):
mkdir /home/example.com/website/
But this command does not give enough permissions to the panel user to create or edit files inside it, the permissions are:
ls -la /home/example.com/website/
total 8
drwxr-xr-x 2 root root 4096 Dec 14 11:49 .
drwxr-xr-x 4 softs4939 nogroup 4096 Dec 14 11:49 ..
when I create a folder in the panel, I get the permissions:
ls -la /home/example.com/website/
total 8
drwxr-xr-x 2 softs4939 softs4939 4096 Dec 14 11:48 .
drwxr-xr-x 4 softs4939 nogroup 4096 Dec 14 11:49 ..
which lets the panel user to edit anything in it.
How do I make the folder and all its file inside it (made in terminal) to be editable by panel user?