3 ms·
I do use that a lot sudo -H -u user bash after I ssh into a server with my own account. That other user might even be a no login account.
by pmontra 3y ago
I do use that a lot
sudo -H -u user bash
after I ssh into a server with my own account. That other user might even be a no login account.
- noinsight 3y agoYou can just use `-i` instead of `bash`. (This method indeed requires a shell configured, your method is needed with nologin.)