This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: setup clobbers passwd
- To: cygwin-patches at cygwin dot com
- Subject: Re: setup clobbers passwd
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Sat, 27 Oct 2001 11:47:36 -0400
- References: <047e01c15ece$5dd5c850$0300a8c0@ufo>
- Reply-To: cygwin-patches at cygwin dot com
On Sat, Oct 27, 2001 at 07:31:35PM +0930, Trevor Forbes wrote:
>The attached simple patch fixes the problem of passwd being reset everytime
>setup is run.
>
>"Rename" fails if a file named "*.done" exists therefore you end up with two
>files in the /etc/postinstall named passwd-grp.bat.done and passwd-grp.bat.
>Consequently, passwd-grp.bat clobbers your passwd every time setup is run.
>So how do you end up in this position ---- delete your passwd and group
>files after you have run setup for the first time. I suspect this is
>happening to many users .........
>
>The patched setup will fix the problem the first time it is run,
>unfortunately, this first time run will still reset the passwd and group
>files. However, the problem will be fixed thereafter.
I'll apply this patch.
I will also fix the problem of mkpasswd/mkgroup being run inappropriately
when /etc/passwd exists.
Thanks!
cgf