W
W
WebDev2017-01-11 03:12:19
linux
WebDev, 2017-01-11 03:12:19

How to use sudo in sftp?

I created a user on the server, added it to sudoers, I connect via ssh and I can open/edit files that I don't have rights to using sudo.
But having connected under the same user via sftp to filezilla, I can no longer open or view the file I need if there are no rights to it. Is it possible to use sudo over sftp?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lukashin, 2017-01-11
@lukashin

I do not use Filezilla, but I think the solution is similar.
winscp:
Environment -> SFTP -> SFTP server -> sudo -u user /usr/lib/openssh/sftp-server
Far Manager with WinSCP plugin:
SFTP -> SFTP server -> sudo -u user /usr/lib/openssh/ sftp-server

S
Sergey, 2017-01-11
@gangstarcj

No. You need to connect as root via sftp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question