Subject: Re: user home directory
To: Andrew Gibson <agibson@chac.qld.edu.au>
From: Johan Claesson <Johan.Claesson@uab.ericsson.se>
List: port-mac68k
Date: 07/29/1997 09:30:09
Andrew Gibson wrote:

> Hi there,
>
> when I log in, login tries to put me in a directory that no longer
> exists.
> I have created a new home directory and edited master.passwd to suit,
> but
> login still gives me a message "/oldhome doesn't exist..." and puts me
> in
> the / directory.
>
> Is there I file to edit to solve this problem?
>
> Thanks,
>
> Andrew Gibson
>
>       ::.     ..:::::...     ::
>        :::..::::::::::::::.         :           ANDREW GIBSON
>         :::::::::::::: . :::     :  :  :
>         :::::::::::::::::::::    :  :  :    agibson@chac.qld.edu.au
>        :::  :::::::::::::::      :  : :     phone:+61 7 3399 5455
>       :::      :::::::::          : : :      fax: +61 7 3399 3576
>      ::

 Do NOT edit the master.passwd, use vipw. If you don't like vi for some
STRANGE reason.
You may as said set the enviroment variable EDITOR to any editor that
suits you the best.

If you use csh or tcsh: "setenv EDITOR <your favourite editor>"

or sh, ksh and bash: EDITOR=<your favourite editor>;export EDITOR

You may do it manually, but it is not recomended.

Here is how vipw does it:
1. Make a copy of master.passwd. eg. "cp /etc/master.passwd
/etc/master.tmp"
2. Edit the /etc/master.tmp using any suitable editor.
3. Now build the master.passwd using the command "pwd_mkdb
/etc/master.tmp
4. If no errors - DONE!

/Johan Claesson

PS. Tip: use vipw - it simply do all this for you. DS.