This question already has an answer here:
I can open a shell for a system user by calling
sudo su - systemuser -s /bin/bash
sudo su -s /bin/bash systemuser
What's the difference between those commands? They look pretty identical to me.
The system user has a
.bashrc file in his home directory. When using the first command, this file is not included, whereas when issuing the second it is.