This is an old revision of the document!
How do I change user after login (e.g. su root)?
SFTP protocol does not allow this.
With SCP protocol it is possible, but actual method is platform dependant. For example on Unix platforms, you can specify following command as custom shell on SCP tab of Login dialog:
/bin/bash -c 'sudo su -'
Advertisement
You can do this only if you are allowed to do sudo su
without being prompted with password. See sudo
documentation to learn how to do that. For example you can add following line to sudoers
file (/etc/sudoers
):
yourusername ALL=(ALL) NOPASSWD: ALL