Facts
When you login the login program asks you for a password
and encrypts it in a complicated way. The resulting string
is then compared with the encrypted password on file in the system
for your account.
UNIX does not store passwords in a readable form - a dumb idea.
Bad passwords cause more trouble to systems administrators and users than any other trivial thing. You need to choose something memorable, typable, and unguessable. And you have to change it regularly... Here are some classic bad passwords - can you see why:
abc
password
computer
ajshdgetdfsgwtdfsgdycgxf
mary
fidoplus: your user name, anything on file in the computer about you, any single word in English, any number - especially an SSN, any thing to do with Star Trek.
Here is a simple way to create a good password.... take two random words and put a random digit or symbol between them. Here is another technique: Invent a memorable sentence or phrase. The password is made up of the intial letters of the phrase.
Any example of a good password in a book or these notes.... is automatically bad.
Avoid these characters: # and @. They were once used as erase characters.
On an isolated machine the passwords would be in
/etc/passwdon a network there is a master password file and login (and some other programs) use this instead of /etc/passwd. The sytem used to share this file is called the Network Information System or NIS. Also it is called the YP system after a well known phone directory. Use yppasswd on CSci systems. The password is shared accross all our lab machines and dialup systems. It can take a few minutes for the change to get to all the mahines.
The 'passwd' file is a series of lines: one for each user. See line_in_passwd_file below.
Every now and then we do a quick check to see if we can crack any passwords on our system. We use an evil program called satan. We restrict accounts so that they can not be used by anyone if we can crack them.
Any non-adminstrator found trying to crack a password will lose their account rather quickly.
Forgetting your password gives systems administrators a private source of amusement.
We never give out passwords of the phone (guess why!)
Never send passwords by EMail, write, or talk. Or over the phone.... Never write down passwords. (but if you do: disguise it...).
Here is a classic technique: a cracker searches every item of mail on a system for the letters "password" and ....
I or Paul can fix a forgotten or restricted password only if you come and see us. Not over the phone or by EMail!
Sharing a password is evidence of a low intelligence. One account ended up being used by 30 people from all over the USA ("He was my best friend"). Another lead to complaints of computer abuse from another CSU campus("My kid sister!?!"), ....
ypmatch -k $USER passwd
finger $USERWhich information comes from your passwd entry?
if you can fill this hole]
link and fill in the form using copy and paste.