I know you can use
su to switch users within the terminal. As the account I use is non-root (without superuser permissions), it brings up a password prompt for the user I log into.
Is there a way to use
su or something similar to login using a one line command? For example,
su -l USERNAME PASSWORD
Something like this could be used in a bash script for example.