I
I
i_want_to_know_everything2016-06-06 19:07:25
SSH
i_want_to_know_everything, 2016-06-06 19:07:25

Edit files in WinSCP via sudo?

How to allow a user from the sudo group to re-upload server configuration files
It is possible to edit through nano, but not through the editor built into WinSCP.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
landergate, 2016-06-06
@i_want_to_know_everything

In the connection settings in WinSCP:
Environment -> SFTP -> Protocol Options:
SFTP Server:sudo /usr/lib/sftp-server

S
Shigaev., 2017-03-24
@Shigaev

sudo chown -R www-data:www-data /var/www
(или sudo chown -R USERNAME:www-data /var/www)
find /var/www -type d -exec sudo chmod g+rwxs {} \;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question