fortypoundhead.com

Logging In and Out with Unix

Primary Category = Tutorial

Posted On 2005-11-1 by FortyPoundHead
Keywords: Unix Tutorial Part 03
Tags: Tutorial Linux
Views: 1482
Rating: / 5.00

  • 1
  • 2
  • 3
  • 4
  • 5

 




Section 3: Logging In and Logging Out



To ensure security and organization on a system with many users,
UNIX machines employ a system of user accounts. The user accounting
features of UNIX provide a basis for analysis and control of system
resources, preventing any user from taking up more than his or her
share, and preventing unauthorized people from accessing the system.
Every user of a UNIX system must get permission by some access control
mechanism.

Logging in

Logging in to a UNIX system requires two pieces of
information: A username, and a password. When you sit down for a UNIX
session, you are given a login prompt that looks like this:
login:
Type your username at the login prompt,
and press the return key. The system will then ask you for your
password. When you type your password, the screen will not display
what you type.

Your username



Your username is assigned by the person who creates your account. At
ISU, the standard username is the first four letters of your last name
concatenated with the first four letters of your first name.



Your username must be unique on the system where your account exists
since it is the means by which you are identified on the system.


Your password



When your account is created, a password is assigned. The first thing
you should do is change your password, using the passwd utility.

To change your password, type the command

passwd
after you have logged in. The system will ask for
your old password, to prevent someone else from sneaking up, and
changing your password. Then it will ask for your new password. You
will be asked to confirm your new password, to make sure that you
didn't mistype.

It is very important that you choose a good password, so that someone
else cannot guess it. Here are some rules for selecting a good
password:





If you have accounts on multiple machines, use a different password on
each machine. Do not choose a password that is so difficult to
remember that you must write it down.

Logging Out



When you're ready to quit, type the command
exit

Before you leave your terminal, make sure that you see the
login prompt, indicating that you have successfully logged out. If
you have left any unresoved processes, the UNIX system will require
you to resolve them before it will let you log out. Some shells will
recognize other commands to log you out, like "logout" or even "bye".



It is always a good idea to clear the display before you log out, so
that the next user doesn't get a screenful of information about you,
your work, or your user account. You can type the command
clear
right before you log out, or you can
press the return key until all the information is scrolled off the
screen.



About the Author

FortyPoundHead has posted a total of 1975 articles.

You can find more information from FortyPoundHead by visiting .

Comments On This Post

No comments on this post yet!

 

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.


Your IP address is:54.163.159.27

Before you can post, you need to prove you are human. If you log in, this test goes away.