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.
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE
$259.00
1U Supermicro Firewall Router Jumpbox 6x 10GB Ethernet E3-1270 V3 32GB RAM 2x PS
$200.00
HP ProLiant MicroServer Gen8 Server Xeon E3-1220L 8GB RAM No HDD's
$229.99
HP HPE Microserver Gen 7 8 9 iLO 2/3/4/5Advanced License Lifetime Key| FAST SHIP
$10.00
HPE ProLiant MicroServer Gen10 16GB 4TB PID: 878488-S01
$425.00
HPE ProLiant MicroServer Gen10
$420.00
HP ProLiant MicroServer HSTNS-5151
$59.99
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$299.00
Supermicro CSE-847 Server 2*INTEL XEON E5-2690 V2 96GB 36-Bay 3.5" 4U SEE NOTES
$200.99