

So I am looking for a more secure way to execute sudo at every file operation when I am using my SFTP client (which is a Sublime Text plugin), this plugin: codexns.io/products/sftp_for_sublime.
#Sublime text shortcuts save all windows
Control+S to save the file as main.py On Windows (on Linux and macOS it is similar): To run. But I was told this is not a secure way to enable sudo at file save, because then every client that connects with the correct credentials will be root, not just my own client. SublimeText tells us with the point that we have not yet saved.

getviewindex is explained in Sublime Text documentation. All keyboard shortcuts can be customized by selecting the menu item Preferences Package Settings SFTP Key Bindings Default. The only result was closeothersbyindex used in Default/Tab Context.sublime-menu. Click the New button and add an entry with the Sublime Text installation directory. I searched for closeothers string on all files under Packages directory. using VSCode, this package is also available for Atom and Sublime Text. So I added "sudo" in the sftp subsystem path in my sshd_config file on the server, and it works - it can save with root privileges, it has the same result as if people would add "sudo" in the winSCP client settings at the sftp path. For all users, select Path in the System variables section. Every time you save your code, youll instantly see the changes reflected in the. Because I connect the editors SFTP client with a user from the wheel group that can be root in a passwordless way when executing sudo su.Īnd I have disabled root login to secure SSH. I thought there is some linux command or file that can be edited that would enable me to execute sudo at every file save, and even at every file open. I am using Sublime Text editor with its SFTP plugin to edit files (also root files) on my server. The effect of ctrl+alt+s is just to shrink the viewport window.
