Answer the question
In order to leave comments, you need to log in
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
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 - 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 :)
I understand that I do not have write permissionsOf 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.
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
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 questionAsk a Question
731 491 924 answers to any question