FG

How can I pass Root Password to a script

Fresh3 days ago
Mar 15, 20265259 views
Confidence Score0%
0%

Problem

I have the root password in one of my scripts and I want to launch another script which requires root permission from this script. How can I use the root password which I have so that I do not have to ask the user the root password which launching 2nd script.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I pass Root Password to a script

Low Risk

There's a lot of security implications in this, but let's get right to the best way to handle this. Don't use the root password directly. Use sudo to run the scripts. Sudo is installed by default on Ubuntu and is available on almost all popular Linu…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment