Subject: Re: Root password
To: Vuorikoski Veikko <vuorikos@butler.cc.tut.fi>
From: Allen Briggs <briggs@cray-ymp.acm.stuorg.vt.edu>
List: macbsd-general
Date: 04/15/1994 14:19:08
rich@hihat.utcc.utk.edu writes:
> root:<pass>:0:1:GECOS info:/dirpath:/shell
> The uid/gid files are before the GECOS field.

That's the /etc/passwd format, but <pass> is '*' and there is another
file: /etc/master.passwd that contains something like the following:

root:<pass>:0:0::0:0:Charlie &:/root:/bin/csh

being:
	login id
	password
	uid
	gid
	classification (unused, empty)
	passwd change time
	passwd expire time
	GECOS
	home directory
	login shell

The two are kept in sync by using vipw to edit the file, or pwd_mkdb
to resync to master.passwd.

-allen

-- 
Allen Briggs         Find the cost of freedom / Buried in the ground
- end                Mother Earth will swallow you / Lay your body down
      killing -    
allen.briggs@vt.edu          ***** MacBSD == NetBSD/Mac *****

------------------------------------------------------------------------------