ashkulz / NppFTP

Plugin for Notepad++ allowing FTP, FTPS, FTPES and SFTP communications
https://ashkulz.github.io/NppFTP/
321 stars 93 forks source link

How to edit configuration text files as root with NppFTP #339

Open Leba67 opened 2 years ago

Leba67 commented 2 years ago

Description of the Issue

When trying to edit configurations files in any other directory but home, write permission is denied. How can I log in to my Pi using NppFTP as root?

pryrt commented 1 year ago

Fellow user replying (I have no official "say" with respect to this plugin): as with any FTP client, in order to gain root access to an FTP server, I believe you need to provide root credentials (the root username and root password). Unlike a terminal login like SSH, where you can run sudo or similar to get temporary root permissions from a normal user, FTP/SFTP doesn't have a sudo mechanism (as far as I know)

So my recommendation would be to have two different profiles to access your PI from Notepad++ and NppFTP: the first profile would have your standard username+password to access your normal files, and then a second profile that uses the root username+password to access config files. (or, if you're just editing config files, then don't bother with the "standard" profile, and just have the root-based profile.)