I asked client to create a sub-domain and a folder for me.
He created a sub-domain and dir ygjhazaxnv
I only have SSH access as mani
user.
I put files in ygjhazaxnv
folder via Git pull
and the owner of all these files is mani
. So far all OK.
Now the project I configured is able to create files dynamically, whatever the files are created by my project(PHP files) has owner ygjhazaxnv
Now how can I delete files created by ygjhazaxnv
user when logged in as mani
?
I tried to own those files via chown
but error chown: changing ownership of ‘ABC’: Operation not permitted
Both ygjhazaxnv
and root
user lies under group www-data
Server is Amazon EC2