A
A
Artyom Pinul2016-04-02 17:46:02
CentOS
Artyom Pinul, 2016-04-02 17:46:02

How to set file permissions in Centos 7 + VestaCP?

Good afternoon.
I installed Centos 7 on a laptop, put the VestaCP control panel on it. I got access from the outside by forwarding the port on the router and using the no-ip service.
Now when I connect via FileZilla to my site on the server, I see a list of its directories. Why is this happening and how can I get back the ability to manage site files located on the server through FileZilla?
P/S: this is what FileZilla writes when trying to connect to the server:
Status: Connection established, waiting for an invitation...
Status: Insecure server, does not support FTP over TLS.
Status: Logged in
Status: Getting list of directories...
Status: List of directories "/" retrieved
Here is what it says when trying to change the file name:
Status: Renaming '/public_html/admin/config-dist.php' to '/public_html/admin/config.php'
Command: RNFR config-dist.php
Response: 350 Ready for RNTO .
Command: RNTO config.php
Response: 550 Rename failed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Goryachev, 2016-04-02
@webirus

SSH (chmod, chown)

C
CityCat4, 2016-04-02
@CityCat4

Banal rights are not enough. Linux is NOT Windows, no matter how you take a Windows-like distribution. Linux is UNIX (well, almost UNIX for a copyright nazi), and it has a fundamentally different approach to security. Partially, this approach works on Windows Server, well, a little similar. Outside the user's home directory - there are no rights anywhere and for nothing. Well, it's still in /tmp. And to rename a file owned by either the www user or the root - well, there's a drum over your shoulder right away.
webirus correctly said - only ssh, only hardcore :-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question