Views:
6,215β
Votes: 2β
Tags:
software-installation
sudo
authentication
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1191425
Title:
Install a program for another non-sudo user as a sudo user
ID:
/2019/11/24/Install-a-program-for-another-non-sudo-user-as-a-sudo-user
Created:
November 24, 2019
Edited: November 24, 2019
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Sudo can let you act as another user even if you donβt know their password. It can be done as detailed in this answer:
Here is an example from the answer (granted on my single user system):
$ whoami
rick
$ sudo -i -u root whoami
root
So in your case use:
sudo -i -u usertofake install_something