sudo command
or
su
if you want to stay root.
I know this sounds really stupid but how do you run scripts as root. i have an install if that makes a difference.
sudo command
or
su
if you want to stay root.
But say that I had a script in my home, called SCRIPT, then how would I run that as root.
sudo ./scriptOriginally Posted by adamherb
or if you are not in the sudoers list
su
enter root password if needed
then
./script
the file has to be executable
chmod +x script
linux is case sensitive, so if it is SCRIPT you must type it as such.

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO
$308.00
Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00
VMware vCenter Server 8 STANDARD Perpetual License Key VC-STD-C (Legacy Pack)
$1599.95
Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server
$349.99
Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99
Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88
HP ProLiant DL360 Gen 11 - Xeon Gold 5th Gen - 192 GB DDR5 ECC - 2x 240 GB SSD
$17000.00
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$381.93
RDS CAL - Remote Desktop Services Windows Server 2022 50 User/Device Connections
$60.00
Windows Server 2025 Standard✔ 24-CORE✔ 10 CALs✔ 50 RDS✔ Remote Desktop EP2-25205
$317.56