Re: How to sudo su - newuser in C#
Hi Martin,
I added below code after instantiating
Thank you for the help,
Vips
I added below code after instantiating
sessionOptions
and sudo su - newuser
worked after that.
sessionOptions.AddRawSettings("Shell", "sudo%20su%20-%20newusername");
sessionOptions.AddRawSettings("RemoteDirectory", "/desired_path_accessible_by_newuser");
Thank you for the help,
Vips