Results 1 to 4 of 4

Thread: How do you run things as root?

  1. #1
    Member registered user
    Join Date
    Sep 2004
    Posts
    72

    How do you run things as root?

    I know this sounds really stupid but how do you run scripts as root. i have an install if that makes a difference.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    sudo command

    or

    su

    if you want to stay root.

  3. #3
    Member registered user
    Join Date
    Sep 2004
    Posts
    72
    But say that I had a script in my home, called SCRIPT, then how would I run that as root.

  4. #4
    Member registered user
    Join Date
    Oct 2004
    Posts
    36
    Quote Originally Posted by adamherb
    But say that I had a script in my home, called SCRIPT, then how would I run that as root.
    sudo ./script
    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.

Similar Threads

  1. Where does wine keep things?
    By pluto in forum General Support
    Replies: 2
    Last Post: 09-14-2005, 01:59 AM
  2. how to get apt and dpkg seeing the same things?
    By arkaine23 in forum Customising & Remastering
    Replies: 3
    Last Post: 05-08-2004, 11:37 PM
  3. DVD and other things about 3.4
    By firebyrd10 in forum General Support
    Replies: 0
    Last Post: 05-06-2004, 02:59 AM
  4. 2 things that still bug me
    By fingers99 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 05-26-2003, 01:32 AM
  5. Some things I have added
    By linuxfan in forum Ideas
    Replies: 2
    Last Post: 04-03-2003, 04:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

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 picture

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 picture

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 picture

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 picture

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 picture

HPE ProLiant MicroServer Gen10 16GB 4TB PID: 878488-S01

$425.00



HPE ProLiant MicroServer Gen10 picture

HPE ProLiant MicroServer Gen10

$420.00



HP ProLiant MicroServer HSTNS-5151 picture

HP ProLiant MicroServer HSTNS-5151

$59.99



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

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

Supermicro CSE-847 Server 2*INTEL XEON E5-2690 V2 96GB 36-Bay 3.5" 4U SEE NOTES

$200.99