How to set default permissions
Posted: 2019/02/06 23:13:14
Greetings,
CentOS 6.9
I would like help regarding to the issue of my server, since Jan, my hosting provider isnt capable to id my issue.
I have a webtool to create invoices, but suddenly it was not capable to use commands, mkdir(), file_put_contents and similar, the folder permissions are 0755 and file permissions are 0644 (which I suppose are the correct ones), few days ago I tried to modify permission via terminal (I have a VPS so I can't use remote desktop, just via PuttY) I used:
At initial it worked partially, it let me create folders via mkdir, but some files I use werent able to use it, but now I am uncapable to upload/modify/delete files using ftp with filezilla
So I tried using:
But as I see, I returned to initial point.
Is there any way I can default value permissions of my server and/or a way to work normally with my server. please.
CentOS 6.9
I would like help regarding to the issue of my server, since Jan, my hosting provider isnt capable to id my issue.
I have a webtool to create invoices, but suddenly it was not capable to use commands, mkdir(), file_put_contents and similar, the folder permissions are 0755 and file permissions are 0644 (which I suppose are the correct ones), few days ago I tried to modify permission via terminal (I have a VPS so I can't use remote desktop, just via PuttY) I used:
Code: Select all
sudo chown -R root:_user home/path/to/folder
sudo chmod -R 755 home/path/to/folder
So I tried using:
Code: Select all
sudo chown -R root:root home/path/to/folder
sudo chmod -R 755 home/path/to/folder
Is there any way I can default value permissions of my server and/or a way to work normally with my server. please.