Linux su

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

<pre lang=’bash’>su username</pre>

instead just use

<pre lang=’bash’>su -s /bin/bash username

Similar Posts

Leave a Reply

Your email address will not be published.