Prev | Current Page 453 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

Verify
this by displaying the file with the less command.
# less /etc/passwd
Something similar to the following should be displayed:
root:DkkS6Uke799fQ:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:/bin/sh
.
.
.
mary:KpRUp2ozmY5TA:500:100:Mary Smith:/home/mary:/bin/bash
joe:0sXrzvKnQaksI:501:100:Joe Johnson:/home/joe:/bin/bash
jane:ptNoiueYEjwX.:502:100:Jane Anderson:/home/jane:/bin/bash
bob:Ju2vY7A0X6Kzw:503:100:Bob Reynolds:/home/bob:/bin/bash
Each line in this listing corresponds to a single user account on the Linux system. Each line is made
up of seven fields separated by colon (:) characters. From left to right, the fields are the login name,
the encrypted password, the user ID, the group ID, the description, the home directory, and the
default shell. Looking at the first line, you see that it is for the root account and has an encrypted
password of DkkS6Uke799fQ. You can also see that root has a user ID of zero, a group ID of zero,
and a home directory of /root, and root??™s default shell is /bin/bash.
All of these values are quite normal for a root account, but seeing that encrypted password should
set off alarm bells in your head. It confirms that your system is not using the shadow password file.
At this point, you should immediately convert your password file so that it uses /etc/shadow to
store the password information.


Pages:
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465