4.2 Some Unix commands4 Labs4.1 Setup UNIX account

4.1 Setup UNIX account

Setting up your account on a system is often done by the system administrator, but not always. Often, making a few changes can make an account more usable for the individual. On UNIX systems there are a number of files that affect the way your account behaves. Some of these can be changed by the individual user, others are changed by the system administrator. The files that affect your account that can be changed by you will usually have a period as the first character of the file name. This makes it a "hidden" file that does not show up in most directory listings.
  1. Connecting to the system. You need to establish a connection to the system. In today's environment there are several ways to connect. Once you have reached the system, go on to the next step -- logging on to the system.

    You are welcome to use any UNIX system that you have access to.

    gort

  2. Login to your gort account.

    You should have the "login:" message at this point. Your username is: first initial, last name -- no space between -- maximum 8 characters total, all lower case. Enter your username followed by a carriage return or enter. The system will prompt you for your password. Your initial password is: student services number -- no hyphens. Enter your password followed by a carriage return or enter. The system will not echo your password. If you do not get logged on try again a few times, then see the lab about your account on gort.

  3. The system prompt. The prompt from the system is programmable. In the following examples I will use:
    username@gort ~ $
    
    for the system prompt. "username" will be replaced with your username. "gort" is the name of the system. The "~" will be your current working directry. On gort my prompt looks like:
    ltaber@gort ~ $
    
    Your actual prompt may have other information and look quite a bit different. If you are using bash as your shell, you can change it by editing your .bashrc file.
  4. Change your password. Choose an 8 character password with digits, upper case, and lower case characters. Use the passwd command.
     
    username@gort ~ $ passwd
    
  5. Hidden files in your account.

    Your account will have several files in it when you log on for the first time. These files all start with a ".". This is the UNIX version of a hidden file. To "see" these files you will need to do a ls -al command. ls (list) is the UNIX directory command.

    ls -al
    
  6. Print out your line of the password file. Please note the space after your name and before the file name /etc/passwd. It is needed.
    username@gort ~ $ grep your-username /etc/passwd | lpr
    
  7.   Log off. This is important. System gort has no fixed user license, but it does have limited resources.
     
    username@gort ~ $ exit
    
Turn in the printout from part marked as follows:
your-name
Louis Taber CIS137
Lab 4.1: Setup UNIX account
the number of hidden files in your directory.
Please turn your lab to Louis Taber or to Pima Community College employee in room A-115 of the Santa Rita Building. Ask them to place it in the dark blue folder in Louis Taber's mailbox.
Instructor: Louis Taber, ltaber(at)uml.lt.Tucson.AZ.us (520) 206-6850
My new web Home page in Cleveland, OH
The Pima Community College web site

4.2 Some Unix commands4 Labs4.1 Setup UNIX account