FG
💻 Software

How to execute a command with admin privileges and access to files of the logged in user?

Fresh5 days ago
Mar 15, 2026105039 views
Confidence Score0%
0%

Problem

I have some problems understanding . I am logged in on a terminal as an non-admin/non-root user. This "normal" user is not in the sudoers file (and shouldnt be, in my opinion). Now I try to execute a command that needs admin/root privileges and also access to directories of my normal user – therefo…

Error Output

sudo

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to execute a command with admin privileges and access to files of the logged in user?

Low Risk

always requires the executing user's password (and requires that you have specific permissions to do this, i.e. are one of the ). requires the password of the target account ( by default, but root account has no password on OS X by default). If you …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment