J
J
JunDevTest2018-07-22 13:11:42
System administration
JunDevTest, 2018-07-22 13:11:42

How to create an FTP user with root rights?

Welcome all.
You need to create a user with root rights and allow him FTP access to the entire system. I created a user, granted root rights, FTP connects... I go into the user Vasya's folder and want to help him edit .htaccess and then I hit my forehead against the wall with the error "550 Permission denied". I understand that I do not have write permissions to this folder, but by logging into SSH I can do this, which is quite logical for a user with the highest rights.
How to configure this functionality on FTP using ProFTPD? Each time editing through the terminal is not an option, through SFTP it will take a very long time, a faster way to change single files than FTP, unfortunately I don’t know.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
J
JunDevTest, 2018-07-23
@JunDevTest

To create a ROOT user for FTP, run this command as root:
After that, connect via FTP using your server's ip address , root_ftp login and mysuperduperlongpass password . Enjoy all the benefits of root access.
I express my gratitude in writing to CityCat4 for the hint.

spoiler
latest?cb=20151125165543

C
CityCat4, 2018-07-22
@CityCat4

Spoiler - not root has the highest rights, but the user with uid 0 :) You can call it administrator :) Or, as in synology - admin. Or even as in the non-creature - supervisor :) Created, assigned uid 0 to it - and go under it.
The criterion of truth is practice. And a great reason to learn how the rights system works in Linux :)

A
Artem @Jump, 2018-07-22
Tag

I understand that I do not have write permissions
Of course.
however, by logging into SSH I can do this, which is quite logical for a user with the highest rights.
It's not logical.. Root doesn't have to have permissions to the file, maybe not.
How to configure this functionality on FTP using ProFTPD?
run as root 'a or another user with the necessary rights.

K
Konstantin Tolmachev, 2018-07-22
@dark_tke

I recommend that you still take care of studying such a thing as ACL ( help.ubuntu.ru/wiki/access_control_list), and not give the FTP user Root rights. If this is your personal local machine, which does not even look at the Internet, then there is no problem, but if it is a server with network access, then you will be knocked on the hands for this. Directly, sudo rights, except for the administrator, are not needed, and even more so, they are not needed for FTP.
And yes, you will be surprised, but through SFTP it is quite comfortable to work even with a huge number of files.
And fix it through the console, believe me, sometimes it's much faster than uploading a file, editing it and uploading it back

R
Reversaidx, 2018-07-22
@Reversaidx

If you really want such a crutch, then it’s easier to generally connect via sftp under root /

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question