S
S
Sergey2021-07-27 15:58:14
linux
Sergey, 2021-07-27 15:58:14

How to get permission to edit a file via FTP?

I am installing the application on a cloud server according to the following guide: https://docs.microsoft.com/ru-ru/aspnet/core/host-...

In the link immediately, it redirects to the point where the problem occurred. I installed nginx, now I need to edit the /etc/nginx/sites-available/default file , but I can't access it via FTP because I don't have access rights to this file. In FileZilla, opposite this file in the User/Group column, it says: root root Whereas, opposite the files to which there is access, it says ubuntu ubuntu.

These files can be modified with the nano editor if you use sudo, but in my opinion this is not quite the right way. I want to note that I just recently started using linux, and perhaps these are very banal things, but nevertheless I could not google them so easily.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2021-07-27
@Drno

All system files are edited ONLY over ssh. FTP is only needed to upload/download files.
All settings are also done via ssh. For the convenience of viewing folders and files, put yourself on the server "mc"

C
CityCat4, 2021-07-28
@CityCat4

but I don't think it's the right way.

I just recently started using linux

Those who have only recently begun to use it usually do not yet have time to form an opinion about what is right and what is wrong. Editing files with an editor :) is the only way to edit it. ftp is needed in order to put it there (although sftp is preferable)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question