This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mkpasswd & mkgroup


Corinna,

Earlier I have added a -c switch to mkpasswd & mkgroup. 
It prints the current user (if a domain account), without 
contacting the PDC. 
That was meant for use in postinstall scripts.

However until setup.exe is upgraded, only mkpasswd -l will
be run by passwd-grp.bat, which causes recurring problems with
domain users. 

Thus, at least until setup.exe is upgraded, I suggest that
-c be implied by -l, unless -d is also specified.
This is implemented by the attached patch.
It pretty much insure that the main users will have proper entries.
 
Also, to support arbitrary uid's on Win95, mkpasswd prints both
a default line with uid 500, and a line for the current user 
with a pseudorandom uid. Other users can be added with -u.
Cygwin uses the default line for users that do not have an entry.

I will update the documentation if you apply this patch.

Pierre
 
2003-02-25  Pierre Humblet  <pierre dot humblet at ieee dot org>

	* mkpasswd.cc (usage): Explain -l, remove -c.
	(main): -c behavior is implied by -l without -d.
	On Win95, output both a default line and a line for the current
	user with a pseudorandom uid.
	* mkgroup.cc (usage): Explain -l, remove -c.
	(main): -c behavior is implied by -l without -d.
	On Win95 change the group name from "unknown" to "all". 

 

Attachment: pwdgrp.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]