Z
Z
zerx12021-07-15 11:45:18
bash
zerx1, 2021-07-15 11:45:18

How to run bash script as superuser?

On Windows I want to run a script. 60eff4efab8ab469258632.png
I choose to run as administrator. There is basically only one user on the computer.
60eff564cd5aa827451948.png

However, it swears that the launch is not on behalf of the superuser. How to fix ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2021-07-15
@Drno

The administrator is in Windows ...
Drag the script to the console and add the "sudo" command to the beginning. I think it should work

S
Saboteur, 2021-07-18
@saboteur_kiev

In Unix, the superuser is ID 0.
In Windows, no.
Most likely there is a stupid check for the user ID and I suspect that the script needs to be edited.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question