I have some server only users for things like CI or media streaming that I have removed shell access from for security. sometimes however I need to login to them to test something or fix something. well here’s a very easy way to su over to them without setting their shell to something else and then setting it back.
Normally you would use
<pre lang=’bash’>su username</pre>
instead just use
<pre lang=’bash’>su -s /bin/bash username