How to sudo su - newuser in C#
Hi All,
I am logging in with my UserID - vipul123. My account has necessary sudo privilegs and I can sudo su - newuser using GUI of WinSCP.
I am successfully able to Open the connection and access the SFTP in C# code using my userID - vipul123.
Now, I want to do sudo su - newuser in C# code after I login with my UserID - vipul123.
How can I do the same?
Please help me.
Thanks in advance,
Vips
I am logging in with my UserID - vipul123. My account has necessary sudo privilegs and I can sudo su - newuser using GUI of WinSCP.
I am successfully able to Open the connection and access the SFTP in C# code using my userID - vipul123.
Now, I want to do sudo su - newuser in C# code after I login with my UserID - vipul123.
How can I do the same?
Please help me.
Thanks in advance,
Vips