FG
💻 Software

Automating the "sudo su - user" command

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

Problem

I want to automate from a script. It should then ask for a password.

Error Output

sudo su - user

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Automating the "sudo su - user" command

Low Risk

I will try and guess what you asked. If you want to use without a password, you should (if you have the privileges) do the following on you sudoers file: where: is you username :D (saumun89, i.e.) is the user you want to change to Then put into the …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment