NppFTP icon indicating copy to clipboard operation
NppFTP copied to clipboard

How to edit configuration text files as root with NppFTP

Open Leba67 opened this issue 3 years ago • 1 comments
trafficstars

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?

Leba67 avatar Jun 03 '22 01:06 Leba67

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.)

pryrt avatar Nov 14 '22 16:11 pryrt