Tracker »
Issue 1247 »
Issue activity log
2014-11-21 09:48 | Created | Allow providing a password to sudo |
Component | General | |
Severity | Enhancement | |
Comment | https://winscp.net/forum/viewtopic.php?t=14447 | |
2018-10-25 09:34 | Vote | 1× |
2021-01-19 08:35 | Vote | znik |
2022-12-01 15:17 | Vote | Sopor |
2022-12-23 23:28 | Vote | Don Stefano |
2024-01-06 16:37 | Vote | cp2732 |
2024-06-18 07:51 | Vote | M13 |
2024-07-22 14:32 | Comment | https://winscp.net/forum/viewtopic.php?t=14441 |
2024-07-22 14:33 | Comment | https://winscp.net/forum/viewtopic.php?t=14437 |
2024-07-22 14:44 | Comment | Possible implementation would be for WinSCP to "expect" a password prompt in the session, prompt for the password and send it back to the server. The session then could be configured to do start with: SUDO_ASKPASS=./mypass sudo sudo /bin/sftp-server Where mypass would prompt for the password.The command could even create the askpass script on the fly. Though this all feels like a huge hack and bypass of alls the sudo security features. The best solution is still to use public key authentication for root access. |
2024-07-22 14:45 | Comment | Related: https://superuser.com/q/1481318/213663 |
Comment | Possible implementation would be for WinSCP to "expect" a password prompt in the session, prompt for the password and send it back to the server.· The session then could be configured to do start with:· ''SUDO_ASKPASS=./mypass sudo sudo /bin/sftp-server''· Where ''mypass'' would prompt for the password., read it and print it back to ''sudo''. The command could even create the "askpass" script on the fly.· Though this all feels like a huge hack and bypass of alls the sudo security features.· The best solution is still to use public key authentication for root access.· |