Differences
This shows you the differences between the selected revisions of the page.
2018-03-26 | 2018-03-26 | ||
no summary (213.61.108.20) (hidden) (untrusted) | Restored revision 1505231357. Undoing revision 1522064098. (martin) (hidden) | ||
Line 30: | Line 30: | ||
The above line is very permissive, it allows user ''yourusername'' connected from anywhere (the first ''ALL'') to run any command (the second ''ALL'') as a ''root'' without being asked for password. So you should restrict it as much as possible. | The above line is very permissive, it allows user ''yourusername'' connected from anywhere (the first ''ALL'') to run any command (the second ''ALL'') as a ''root'' without being asked for password. So you should restrict it as much as possible. | ||
- | For sexample with OpenSSH you may restrict it only to SFTP session by: | + | For example with OpenSSH you may restrict it only to SFTP session by: |
yourusername ALL=NOPASSWD: /bin/sftp-server | yourusername ALL=NOPASSWD: /bin/sftp-server | ||
Note that as WinSCP cannot implement terminal emulation, you need to have ''sudoers'' option ''requiretty'' turned off (which is default). | Note that as WinSCP cannot implement terminal emulation, you need to have ''sudoers'' option ''requiretty'' turned off (which is default). |