Instruction to login your host and get into rool shell


Here is the instruction to login your linux host and get into a root shell of it.

  1. Identify your hostname.

    Your hostname is list on the administrator list at http://info.hkntec.net/workshop/2002/alist.txt. For example, hostname of the administrator shlam is "ntec1-20".

  2. Login gateway.hkntec.net through ssh

    Use ssh to login gateway.hkntec.net. In order not to overload gateway.hkntec.net, your partner should login gateway2.hkntec.net.

    If you do not have ssh client software, you can download it from http://gateway.ie.cuhk.edu.hk. gateway.hkntec.net and gateway2.hkntec.net can work for both ssh version 1 and 2

    The login user name and password should be same as the one in IE network.

  3. From gateway.hkntec.net or gateway2.hkntec.net, ssh your host.

    E.g. /usr/local/bin/ssh ntec1-20

    The login user name and password should be same as the one in IE network.

  4. To get a root shell at your host, type "/usr/local/bin/sudo /bin/tcsh".

    The login password should be same as the one you login your host

  5. After get into the root shell, type "/usr/bin/whoami" to verify your effective uid. It should be "root"

    Here is the example, how you login your host and get into a root shell of it

    
    --------------------------------------------------------------
    
         csh> ssh gateway.hkntec.net
         shlam@gateway.hkntec.net's password: 
         Last login: Sun May 20 12:29:59 2001 from iest26
         csh> 
         csh> ssh ntec1-20
         csh> /usr/local/bin/ssh ntec2-30
         Host key not found from the list of known hosts.
         Are you sure you want to continue connecting (yes/no)? yes
         Host 'ntec2-30' added to the list of known hosts.
         shlam@ntec2-30's password: 
         Last login: Tue May 15 12:03:50 2001 from fortress
         csh> 
         csh> /usr/local/bin/sudo /bin/tcsh
         Password:
         csh> whoami
         root
         csh> 
    
    ---------------------------------------------------------------