Answer the question
In order to leave comments, you need to log in
How to edit files on the server?
I connect to the VM through the terminal on my computer. And when adding a file from my computer to the server via scp, it throws a Permission denied error. To change, you have to write chmod to a specific object. Is there a way to allow file editing via terminal connection or third party file editors?
PS VM on Linux Ubuntu 20.04
Answer the question
In order to leave comments, you need to log in
There is a way.
"OK, Google" is called. First you find out what Permission denied is. Then what to do with it...
The question is not entirely clear to me personally. If you are transferring a file for which there is no permission - no wonder ... try transferring as root
The easiest way to connect to a server and edit files on it is to mount a remote folder as a local directory via SSHFS. After that, you work with the server just like with a local folder through any explorer on your computer without crap with synchronization and rights.
I am translating what you have been told.
1. Learn the rights in Linux you will need it, including the owner and group.
Moreover , having understood what it is and not just yeah, I understood.
How is the switching between groups of rights, and how to get 642 into 6 as in 4 as in 2.
secuid \ setgid \ sticky until you need to learn them after you understand the rest.
after that, you will definitely understand what the problem is.
The problem is that you are connecting via ssh from one user with his rights to files
, which are obviously not enough.
Including root, which can deny these rights to itself (the truth can allow it)
All you need is to either log in as the user from whom you are running the site.
Or from the root, but then it is desirable to set the necessary rights anyway.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question