Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 14:02:05 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        Brooks Hanley <hanley_brooks@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Password Database
Message-ID:  <Pine.BSF.4.21.0106071357260.67902-100000@ren.sasknow.com>
In-Reply-To: <F10MVpHgLHVbxZXAoir000173c7@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Brooks Hanley wrote to freebsd-questions@FreeBSD.ORG:

> How is it that when passwd and master.passwd are renamed, login is
> still possible by root after restart?

master.passwd is just the source text file that is compiled to form the
password database. It is not directly used by the system at all. passwd is
just another copy of master.passwd with passwords removed.

The file pwd.db is the "insecure" password database--it contains all user
information, names, home directories, shells, etc, but does not contain
encrypted passwords. This file is world readable, and is used by certain
utilities to fetch and display user information.

The file spwd.db is the "secure" password database--it contains everything
pwd.db does, but also contains encrypted passwords. Using standard auth,
this file will be consulted during the login sequence. Due to the storage
of passwords, this file should only be readable by root.

- Ryan

-- 
  Ryan Thompson <ryan@sasknow.com>
  Network Administrator, Accounts

  SaskNow Technologies - http://www.sasknow.com
  #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2

        Tel: 306-664-3600   Fax: 306-664-1161   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106071357260.67902-100000>