How to sudo through a startup message
Hello,
I'm connecting with my limited user to a server and do a sudo su - rootuser after that.
This works fine, until the logon has a startup message. Then I get this error on the sudo command:
Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended)
See: https://winscp.net/eng/docs/message_startup_message
I'm using it with SCP and the shell command sudo su - rootuser.
Without the sudo su command, there is no problem with the startup message
So, how can I sudo with a startup message?
When I connect with Putty (SSH), I'm getting the startup message, when I login with my limited user. When I'm doing the sudo su, I'm not getting another startup message.
Since I'm not having root rights on the server, I'm not able to configure the user or the startup message different!
I'm using WinSCP 5.5.0 (Build 3839).
Thank you for your help,
bobbel
I'm connecting with my limited user to a server and do a sudo su - rootuser after that.
This works fine, until the logon has a startup message. Then I get this error on the sudo command:
Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended)
See: https://winscp.net/eng/docs/message_startup_message
I'm using it with SCP and the shell command sudo su - rootuser.
Without the sudo su command, there is no problem with the startup message
So, how can I sudo with a startup message?
When I connect with Putty (SSH), I'm getting the startup message, when I login with my limited user. When I'm doing the sudo su, I'm not getting another startup message.
Since I'm not having root rights on the server, I'm not able to configure the user or the startup message different!
I'm using WinSCP 5.5.0 (Build 3839).
Thank you for your help,
bobbel