How to set default permissions

Support for security such as Firewalls and securing linux
Post Reply
Neobugu
Posts: 1
Joined: 2019/02/06 23:00:29

How to set default permissions

Post by Neobugu » 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:

Code: Select all

sudo chown -R root:_user home/path/to/folder 
sudo chmod -R 755 home/path/to/folder
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:

Code: Select all

sudo chown -R root:root home/path/to/folder 
sudo chmod -R 755 home/path/to/folder
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.

Post Reply