Hi. I want to 'su' to another user from the command line, but I want to provide the password at the same time - all in one command. I want to avoid the interactive prompt and entry of the password. Is this possible?
Check out sudo - you can set it up so that you are authorized to
sudo su - newuser
without entering any passwords at all. You can also enable command logging of the sudo'ed newuser account if you work in a system that requires it.