This section describes (in excruciating detail) how to gain full access to the CIS Unix systems by establishing a login session.
Accessing a Unix system is affectionately termed “logging” into the system; the steps you go through are dubbed the “login process.” You must first establish a communication path to the machine, then (somehow) convince the machine that you are entitled to use it.
We will assume you are trying to access the CIS Unix systems from another computer on the network, and that the network connection is working. (For example, if you're able to surf the web successfully, your network connection is working.)
There are two protocols available for login access to CIS Unix systems: ssh and telnet. Each is described below.
We recommend you use “ssh” (which stands for “secure shell”) to establish a login session with the CIS Unix systems. Under ssh, all data, including passwords, that passes over the network using the ssh protocol is encrypted, which negates the threat of a third party spying on the network traffic and reading your sensitive information.
If you are using a computer with a Unix-like operating system (including Mac OS X and Linux), you can use the slogin command in a terminal window. You typically specify both the machine name and (as an option) the username on the command line. For example, use any of:
%slogin -l joe euler.unh.edu%slogin -l joe zeno.unh.edu%slogin -l joe gauss.unh.edu
If you have the same username on both systems, you can omit the option:
%slogin euler.unh.edu%slogin zeno.unh.edu%slogin gauss.unh.edu
![]() | |
The ssh protocol zealously insures that you're connecting to the
precise host you specify; it uses a verification procedure involving
each system's unique “host key”. So we recommend that you
avoid the |
Since the username is specified, slogin
will skip past the
login: prompt to the Password: prompt.
Continue with
Section 7.3, “At the Password Prompt”
A good free PC client that allows ssh connections is PuTTY; instructions for retrieving and downloading are at http://www.chiark.greenend.org.uk/~sgtatham/putty/.
PC and Macintosh ssh client software will typically request both your username and password and log you in. Proceed to the last paragraph of Section 7.3, “At the Password Prompt”.
Although the use of ssh client software is strongly recommended for establishing login sessions with the CIS Unix systems, we still allow access via (so-called) “telnet” clients as well.
If you are using a Unix-like system (including Mac OS X and Linux) with network access, the terminal-window command
%telnet cisunix.unh.edu
will connect you to a CIS Unix login server, displaying its login
message and a login: prompt.
A similar command will allow you to
contact any specific machine; simply use the name of the machine you
want (euler, zeno,
or gauss)
instead of cisunix
in the command you type.
Some version of telnet “client” software will probably be available on any system that has a network connection. (Since we don't recommend use of the telnet protocol, we don't recommend any particular telnet client software, however.)
Similarly, details on how to use telnet client programs are beyond the scope of this document. You'll need to (somehow) tell the software to talk to one of the Unix login servers; consult the software documentation for directions.
Proceed to Section 7.2, “At the Login Prompt”.
Once a connection to
one of the Unix systems
is established, you will see a
“login message” and a login: prompt,
something like:
Red Hat Linux release 9 (Shrike) Kernel 2.4.20-19.9smp on an i686login:
Enter your username
in response to the login: prompt, for example:
login:joe
Please remember to type your username in lowercase. Don't forget to press the Enter key at the end of your username.
After the system has been told your username, you will be asked for your password.
Password:
Type in your password when prompted, then press Enter. Note that your password is not displayed when you type it in. This is to keep it secret from anyone who might be looking over your shoulder. Remember that your password is also case-sensitive. Make sure you haven't unintentionally pressed the Caps Lock key, for example. Note also if you have a numeric keypad, its keys may not be sending what you think they are, depending on the Num Lock status.
If you make a mistake typing in your username or password, you'll be
returned to the login: prompt to try again.
But if and
when you have entered your username and password correctly, you will be
granted access to the system.
The remainder of the login process is highly customizable by individual
users; this customization is typically accomplished by modifying
.login and .cshrc
files in their home directories.
So we can't guarantee what you'll see at this point in the login
process. However, accounts are created with a “generic”
.login file; in this section, we'll discuss what users who are
using the current version of that file would see.
The system will most likely display its current “message of the day”
(the file /etc/motd).
It will look something like this:
Last login: Wed Jun 8 15:41:37 from ecg2-118
/**
* euler.unh.edu (Dell PowerEdge 2850)
*
login messages omitted
The motd
is a means for the system administrators to keep you informed of
upcoming events and locations of important files. For example, the
motd might inform you that the system may be scheduled for a
few hours of routine maintenance.
If this is the first time you have used this account, you'll be forced to change your password as described in Section 6.4.2, “Changing Your Password in a Login Session”; if not, continue with Section 7.4, “Completing the Login Process”.
In order to use most screen-based software, the system needs to know what kind of terminal you are using. (Or, if you're using communications software on another machine to access the system, the system needs to know what kind of terminal that software emulates.) The system will often be able to figure this out for itself without asking you.
However if the system can't figure out what kind of terminal you're using, it will display:
TERM = (vt100)
You will need to type your terminal's identifier, followed by Enter.
(If you are using a vt100-compatible terminal, or a vt100-compatible
terminal emulator, you can just press Enter
without typing anything.)
Listings of all valid terminal identifiers are in the file
/etc/termcap but that won't help much the first time you log
into the system. If you can't figure out your terminal type, seek help
from a consultant or administrator.
Once you complete the login process, you're presented either with the “CIS Unix Menu” interface or a normal Unix shell prompt. This section describes both. It's easy to move between interfaces.
The default login interface for new users is a simple “menu” as shown in Figure 1, “CIS Unix Menu”
This menu interface allows one-digit selection of some of the most commonly used programs on the system: the alpine program for e-mail, and the lynx Internet browsing program. You can also access the normal command shell prompt, change your password, and log out. You're told whether you have mail in your INBOX, and information about your disk quota, and (as if you need reminding) what your e-mail address is.
If you want to switch to the shell interface temporarily, choice 3 will do it for you. To make your default interface the shell instead of the menu, type 7; this will take effect at your next login.
An alternate method to use the CIS Unix systems is by typing commands to the Unix shell. Many examples in this document and elsewhere assume that you can type commands to the Unix shell. When using the shell, you have full access to hundreds of Unix commands, instead of the few shown at the menu. So you might find it's worth knowing.
The normal Unix shell prompt is a percent sign:
%
You can type Unix commands at this prompt, for example, to run the alpine program to read and compose mail:
%alpine
When one program ends, the shell prompt reappears, and you give your next command. And so on. When you're done, type the logout command:
%logout
If you want to use the menu interface temporarily, give the menu shell command:
%menu
To make the menu interface the default when you log in, the command is menuon:
%menuon