How to do sesu login in WINSCP?

1

1

Hi I use putty and can do a sesu login with required password. but I use different user(A1) to connect to remote solaris server and then use the sesu option with another user(A2) to get the permissions. but when I use winscp with A1 I do get very limited permission again there is owner issues as some files are generated and some are transferred.

How can I change to user A2 with sesu access?

Note : I have checked previous question but I could not figure out exactly how to use sesu(I have also tried the solutions given by Martin Prikryl but they are not working). I am also aware of WINSCP page I tried remote execution commands also but I could not provide the password as we can not give user input through winscp terminal.

Amol Patil

Posted 2016-05-13T13:44:37.870

Reputation: 228

Not sure how sesu works. But as with sudo, if you cannot or do not want to configure it not to require a password, you cannot make it working with WinSCP. – Martin Prikryl – 2016-05-13T14:32:26.693

Unfortunately the configuration part is not under our control hence we have to use the password. but I am surprised that Winscp does not provide solution to this problem as apart from this its a robust application. – Amol Patil – 2016-05-15T17:09:09.743

Because it's just not possible. The sudo and similar tools are (rightly) built specifically not to allow you to automate the privileges escalation for security reasons. So WinSCP cannot automate it for you. – Martin Prikryl – 2016-05-15T17:13:15.950

Yes definitely I understand the security issues but if a user is genuinely need the access and he has the authorization(password) then winscp can at least provide a way or ask the password when login or transferring the files with sesu access. – Amol Patil – 2016-05-15T17:37:37.487

No it cannot, because the sudo and similar tools generally require TTY for the password prompt, what is not compatible with the SFTP protocol. – Martin Prikryl – 2016-05-15T18:23:10.100

No answers