How to impersonate another Linux user using SUDO

sudo -i -u mary

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

Reference

Tags

Share this article

Leave a Reply

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

Scroll to Top