19
su invokes the other user’s login shell as given in /etc/passwd. In your case that’s /bin/false so you don’t get any interactive shell.
Use
sudo -u test /bin/bash
or
sudo -u test /usr/bin/mysql
or something like that instead.
19
su invokes the other user’s login shell as given in /etc/passwd. In your case that’s /bin/false so you don’t get any interactive shell.
Use
sudo -u test /bin/bash
or
sudo -u test /usr/bin/mysql
or something like that instead.