Switch to Service Account in Linux

Time and time again, I find myself in situations where I have to login as service accounts to debug permissions. One easy way to do that is by using:

su - jenkins -s /bin/bash
or
su - nagios -s /bin/bash
or
su - mysql -s /bin/bash

In short just replace the username with service name you want to debug.

Leave a Reply

Your email address will not be published. Required fields are marked *