Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Can I use session rawsettings shell option to change default shell AND alter sudo?

This should do:
sudo -s MyOtherUser /bin/ksh

Though it may need an additional sudo configuration.
Check sudo manual:
https://man7.org/linux/man-pages/man8/sudo.8.html
Ayudo98

Can I use session rawsettings shell option to change default shell AND alter sudo?

Hello,

I see it is possible to change the default shell Bash and also to alter the user I am logging in (known as su).

https://winscp.net/eng/docs/faq_su
https://winscp.net/eng/docs/ui_login_scp#shell

my question is: can I use both at the same time? if so, what is the syntax?

I currently using this:
$sessionOptions.AddRawSettings("Shell","/bin/ksh")

which works great.

I want to something like this:
$sessionOptions.AddRawSettings("Shell","sudo -s MyOtherUser")


If I add it two times, the system complains that there is a duplicate.

Regards, Raul.