Prev | Current Page 454 | Next

Christopher Negus

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

You do this by using the pwconv command. Simply log in as root
212
Running the Show Part II
(or use the su command to become root) and enter the pwconv command at a prompt. It will
print no messages, but when your shell prompt returns, you should have a /etc/shadow file, and
your /etc/passwd file should now look like this:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
.
.
.
mary:x:500:100:Mary Smith:/home/mary:/bin/bash
joe:x:501:100:Joe Johnson:/home/joe:/bin/bash
jane:x:502:100:Jane Anderson:/home/jane:/bin/bash
bob:x:503:100:Bob Reynolds:/home/bob:/bin/bash
Encrypted password data is replaced with an x. Password data has been moved to /etc/shadow.
There is also an Authentication Configuration utility (available with Fedora and RHEL systems)
that you can use to manage shadow passwords and other system authentication information. This
tool has features that let you work with MD5 passwords, LDAP authentication, or Kerberos 5
authentication as well. Select System???Authentication, and step through the screens to use it.
To work with passwords for groups, you can use the grpconv command to convert passwords
in /etc/groups to shadowed group passwords in /etc/gshadow. If you change passwd or
group passwords and something breaks (you are unable to log in to the accounts), you can use
the pwunconv and grpunconv commands, respectively, to reverse password conversion.


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