The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 5,400β€…    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: May 5, 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
⇧ how can i get Conky to display weather? How to run a script at boot and then every 30 minutes  β‡©