Differences
This shows you the differences between the selected revisions of the page.
2024-03-07 | 2024-09-07 | ||
no summary (124.29.249.85) (hidden) (untrusted) | Add common pitfalls (martixy) | ||
Line 33: | Line 33: | ||
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). | ||
+ | |||
+ | |||
+ | Common pitfalls: | ||
+ | |||
+ | * The order of lines in ''/etc/sudoers'' matters. Ensure that your configuration is after ''ALL=(ALL:ALL) ALL'' (you may check by running ''sudo -l''). | ||
+ | * The location of the server binary may be different on your system, use ''whereis sftp-server'' to locate. | ||
+ | * If you restrict NOPASSWD to sftp-server only, in WinSCP, the SFTP server configuration must be ''sudo /bin/sftp-server'', not ''sudo su -c /bin/sftp-server''. |