You should be able to do sudo su - username only.
Yes, you're right on that.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
You should be able to do sudo su - username only.
I have tried .bashrc - it's not read on start-up. .bashrc was in the home/username directory.
The same with --login switch - nothing is read from .profile, .bash-profile. Switch was used here: "bash -c 'sudo su - username' --login".
I have tried also "bash -c 'sudo su - username' --rcfile ./.bashrc" - no luck. :(
I'm using this feature in 8.0 and it's very sad that it was removed in future versions.
Why I need it:
1. I connect to the sunOs server via scp with "bash -c 'sudo su - username'";
2. winScp do not pick up the PATH settings in .profile of username, I have a workaround for that - setting the PATH manually thru terminal(Ctrl+T).
3. When I edit the file it opens in new session(since 8.1) and PATH is not set, that's why it's not possible to save the changes.
Could you, please, advice any workaround for this situation?