How to impersonate another Linux user using SUDO

sudo -i -u mary

You need to use the -i (login) option.

Reference

Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top