sveale / remote-edit

remote-edit
MIT License
146 stars 54 forks source link

sudo mode #157

Closed UltimatePancake closed 8 years ago

UltimatePancake commented 8 years ago

Any way to have a "sudo" mode to save files with read-only access? (Would only work when the user is in the sudoers file anyway)

sveale commented 8 years ago

This is not supported by the package. The underlying library used for ssh connections, ssh2, seems to support this in exec mode, but remote-edit uses the sftp functionality. Unfortunately I do not have the opportunity to add it, but you're more than welcome to submit a PR.