I am trying to switch the user in my shell with su - [user], but the user seems to remain the old one:
# this works pretty well
bodo@bodo-work:~$ sudo -u mysql whoami
[sudo] password for bodo:
mysql
# but not this
bodo@bodo-work:~$ whoami
bodo
bodo@bodo-work:~$ su - mysql
Password:
# still having 'bodo' as user seems to be wrong here
bodo@bodo-work:~$ whoami
bodo # what?
Please note that there was no error message, like could not find home directory. What am I doing wrong here? The defined home directory of the user mysql belongs to it:
sudo ls -lah /var/lib/mysql
total 215M
drwx------ 7 mysql mysql 4,0K Feb 10 14:30 .
# [...]