Differences

This shows you the differences between the selected revisions of the page.

2017-09-12 2018-03-26
https for man.openbsd.org (martin) no summary (213.61.108.20) (hidden) (untrusted)
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 example with OpenSSH you may restrict it only to SFTP session by:+For sexample 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).

Last modified: by 213.61.108.20