Linux su with custom shell
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
su username
instead just use
su -s /bin/bash username