summary : how to change a user's home directory

From: B. Boersch-Pulm <acp30_at_rs1.rrz.Uni-Koeln.DE>
Date: Thu, 04 Dec 1997 18:22:25 +0100

Thanks for all who answered.
There were a lot of people who helped me. I hope, I haven't forgotten
anyone :

Stefan Albert <Albert_at_staedtler.de>
Olle Eriksson <olle_at_cb.uu.se>
Lucio Chiappetti <lucio_at_ifctr.mi.cnr.it>
Kai Grunau <kgrunau_at_ifm.uni-kiel.de>
Irene A. Shilikhina <irene_at_alpha.iae.nsk.su>
Ran Zahor <ran_at_wiztec.co.il>
lebrun_at_lasa13.astrsp-mrs.fr <lebrun_at_lasa13.astrsp-mrs.fr>
Hans Ullitz-Moeller <hum_at_biobase.dk>
Thomson B. <thoms_at_xko.dec.com>
Daniel Clar <Daniel.Clar_at_supelec.fr>
O. Boebion <boebion_at_celfi.phys.univ-tours.fr>
Carlos A M dos Santos <casantos_at_cpmet.ufpel.tche.br>
RUS.SY B.Beckenbach <beckenbach_at_rus.uni-stuttgart.de>
Noel A. Davis <noeld_at_freenet.tlh.fl.us>
Dr Marco Luchini <m.luchini_at_ic.ac.uk>
Gert Maaskant <gertm_at_cvi.ns.nl>
rem_at_ams.org <rem_at_ams.org>
RUS.SY B.Beckenbach <beckenbach_at_rus.uni-stuttgart.de>
Alex Nord <Alex_Nord_at_Jabil.com>
roberto furlani <rfurlani_at_cfe.gob.mx>
Richard Eisenman <eisenman_at_tricity.wsu.edu>
Andy Walden <andy_at_ns2.mtco.com>
Bob Jones <BJ_at_OREGON.UOREGON.EDU>
Peter Stern <peter_at_wiscpa.weizmann.ac.il>
Dr. Tom Blinn, 603-884-0646 <tpb_at_zk3.dec.com>
Pam Woods, Systems Manager <axsymgr_at_UAA.ALASKA.EDU>
Eugene Chu <chu_at_musp0.Jpl.Nasa.Gov>

For all, who answered, here the answer of Olle Eriksson :

The passwd file isn't used directly, but a hashed binary file. When
changing /etc/passwd you must also run mkpasswd that produced the
hashed file that is used for higher efficiency.

It seems that everybody besides me knows the solution. Sorry for the
simple question.
If there is anybody else who doesn't know here the summary.

There are two solutions :

1. The simplest : use vipw instead of vi

2. The other one, (after you've used vi ):
   run mkpasswd (/etc/passwd) to update the user database

thanks again for all who helped



Birgitt Boersch-Pulm

the original question :

Hallo,

once more a simple question:

I want to change the home Directory for one of my users.

I changed the entry in the /etc/passwd but that doesn't have any
effect.

The variable $HOME hasn't changed, I think that's the point.

Thanks for your help

Birgitt Boersch-Pulm
Received on Thu Dec 04 1997 - 18:22:37 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT