Added Cyg-Win

This commit is contained in:
Frank Harris 2026-06-06 18:46:40 -04:00
parent 82cbc206eb
commit 413c315806
10586 changed files with 3806249 additions and 0 deletions

View file

@ -0,0 +1,12 @@
Charles Wilson
Contributors:
Corinna Vinschen
Julio Costa
Herb Maeder
Original sources:
Corinna Vinschen (ssh-host-config)
Pierre Humblet (cron-config, exim-config)
Mark Harig (cron-config: cron_diagnose)

View file

@ -0,0 +1,26 @@
The files included in this distribution are available
under a number of different licenses.
native/getopt[1][.c|.h] : LGPL 2.1
native/Win32Error.h : equivalent to MIT/X or BSD-2-clause
native/getAccountName.cpp : MIT/X
native/winProductName.c : MIT/X
native/lookupAccountName[.h|.cpp] : MIT/X
cygwin/getvolinfo.c : MIT/X
cygwin-service-installation-helper.sh : MIT/X
portions derived from ---
ssh-host-config (2008-02-25): BSD
permission granted for distribing the portions of csih.sh
derived from this script under MIT/X
Corinna Vinschen 2008Apr08
http://cygwin.com/ml/cygwin/2008-04/msg00228.html
exim-config (2008-03-02) : not specified
permission granted for distribing the portions of csih.sh
derived from this script under MIT/X
Pierre Humblett 2008Apr07 (private email)
cron-config (2008-03-02) : not specified
permission granted for distribing the portions of csih.sh
derived from this script under MIT/X
Pierre Humblett 2008Apr07 (private email)

View file

@ -0,0 +1,504 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

View file

@ -0,0 +1,660 @@
===============================================================================
==== ====
==== This file is deprecated ====
==== ====
===============================================================================
2015-08-30 Corinna Vinschen <vinschen@redhat.com>
* cygwin-service-installation-helper.sh: Throughout replace *server1014
with *server1016.
* native/winProductName.c (products): Add missing values since W10.
(GetOSDisplayString): Rename Server 2014 to Server 2016.
2015-04-02 Achim Gratz <Stromeko@NexGo.DE>
* cygwin-service-installation-helper.sh
(csih_create_privileged_user): Also add
SeDenyInteractiveLogonRight to the service user. otherwise it will
be shown on the logon screen in some versions of Windows.
2015-02-23 Achim Gratz <Stromeko@NexGo.DE>
* cygwin-service-installation-helper.sh (csih_use_file_etc):
Correct the return value in the case that /etc/nsswitch.conf
exists, but has no active line for that file. The default
contains db, so use_file=1 must be maintained. Add a comment for
that case.
2015-02-20 Achim Gratz <Stromeko@NexGo.DE>
* cygwin-service-installation-helper.sh
(csih_get_system_and_admins_ids): Remove reference to
/etc/{passwd/group} files.
(csih_check_passwd_and_group): Branch code based on the result of
csih_old_cygwin. Correct comment about the version that change
happened in Cygwin.
(csih_old_cygwin): Factor out check for Cygwin version that do not
have DB-based user/group lookup. Correct version that code
actually went into Cygwin.
(csih_use_file_etc): Use csih_old_cygwin. Correct the check for
nsswitch.conf content so that it confroms to the intended and
commented behaviour.
* cygwin-service-installation-helper.sh: Whitespace cleanup (only
trailing spaces, consider tabification). Register new function
"csih_old_cygwin".
2015-01-08 Henri ??? <houder@xs4all.nl>
* cygwin-service-installation-helper.sh (csih_use_file_etc): Fix regular
expression to catch commented out "db" entry correctly.
2015-01-07 Corinna Vinschen <vinschen@redhat.com>
* version.h (VERSION_MICRO): Revert version bump.
2015-01-07 Corinna Vinschen <vinschen@redhat.com>
* cygwin-service-installation-helper.sh (csih_privileged_accounts):
Fix copy/paste bug.
(csih_create_privileged_user): Evaluate local Windows administrators
group name instead of relying on Cygwin group name. Fix error message.
* version.h (VERSION_MICRO): Bump to 9.
2014-12-11 Christian Franke <Christian.Franke@t-online.de>
* cygwin-service-installation-helper.sh (csih_create_local_group): Fix
typo.
2014-12-10 Corinna Vinschen <vinschen@redhat.com>
* native/Makefile: More changes to allow cross-building (barely).
2014-12-10 Corinna Vinschen <vinschen@redhat.com>
* version.h (VERSION_MICRO): Bump to 8.
* native/Makefile (LIBS): Drop default-manifest file.
* native/Win32Error.h: Downcase header filenames to enable cross
compiling.
* native/getAccountName.cpp: Drop useless tchar.h include.
2014-12-10 Corinna Vinschen <vinschen@redhat.com>
* Makefile: Remove stray trailing backslash.
* winProductName.c (GetOSDisplayString): Always call GetNativeSystemInfo
since we're only supporting XP and later anyway. Drop checks for
older OS-versions. Rearrange Major/Minor OS number check to accommodate
the menacing OS version 10.x for Windows 10.
2014-11-24 Corinna Vinschen <vinschen@redhat.com>
* cygwin-service-installation-helper.sh: Drop global checks for NT and
Cygwin version 1.7.
(csih_VERSION): Bump to 0.9.8.
(csih_PRIVILEGED_USERWINNAME): New global variable.
(csih_PRIVILEGED_USERDOMAIN): Ditto.
(csih_UNPRIVILEGED_USERNAME): Ditto.
(csih_UNPRIVILEGED_USERWINNAME): Ditto.
(csih_UNPRIVILEGED_USERDOMAIN): Ditto.
(csih_LOCAL_GROUPNAME): Ditto.
(csih_LOCAL_GROUPWINNAME): Ditto.
(csih_LOCAL_GROUPDOMAIN): Ditto.
(_csih_well_known_privileged_accounts): Add machinename-prefixed names.
(_csih_well_known_privileged_accounts_quoted): Ditto.
(_csih_sanity_check): Check for getent.
(_csih_nt): Remove.
(_csih_2k): Remove.
(_csih_windows8_1): Add.
(_csih_windows10): Add.
(_csih_exactly_windows8_1): Add.
(_csih_exactly_windows10): Add.
(csih_is_nt): Always return 0.
(csih_is_2k): Ditto.
(csih_is_xp): Ditto.
(csih_is_windows8_1): New function.
(csih_is_windows10): Ditto.
(csih_cygver_is_oneseven): Always return 0.
(csih_is_exactly_windows8_1): New function.
(csih_is_exactly_server2012r2): Ditto.
(csih_is_exactly_windows10): Ditto.
(csih_is_exactly_server2014): Ditto.
(csih_check_sys_mount): Always return 0.
(csih_use_file_etc): New function to check for /etc/passwd or
/etc/group requirement.
(csih_get_system_and_admins_ids): Don't require /etc/passwd or
/etc/group. Allow new Cygwin usernames generated from Windows account
DBs.
(csih_check_passwd_and_group): Ditto.
(csih_check_user): Ditto.
(csih_privileged_accounts): Ditto.
(csih_account_has_necessary_privileges): Ditto.
(csih_select_privileged_username): Ditto.
(csih_create_privileged_user): Ditto.
(csih_create_unprivileged_user): Ditto.
(csih_service_should_run_as): Ditto.
(csih_create_local_group): New function.
(_csih_late_initialization_code): Set new OS variables.
2014-11-10 Corinna Vinschen <vinschen@redhat.com>
* native/Makefile (LIBS): Add default-manifest file.
(NTDLL): Define.
(getAccountName): Add $(CFLAGS). Fix usage of $(LIBS) for
PE/COFF platform.
(winProductName): Ditto. Add $(NTDLL).
* native/winProductName.c: Re-indent for better readability. Remove
not working tchar.h overhead.
(products): Drop "note"-type comments.
(RtlGetVersion): Declare.
(RtlGetProductInfo): Declare.
(GetOSDisplayString): Use RtlGetVersion and RtlGetProductInfo. Explain
why. Use switch statements rather than if/else if chains where
applicable. Add support for Windows 8.1, Server 2012 R2, Windows 10 and
Server 2014(?). Drop support for Windows versions prior to Windows XP.
2013-04-09 Charles Wilson <...>
0.9.7 release
* cygwin/Makefile: Adapt for 64bit cross-compiling.
* cygwin/getVolInfo.c: Avoid ddk headers and internal functions.
* native/Makefile: Modify to support building with mingw64 toolchains.
Auto-detect platform and choose wisely when not cross-compiling;
otherwise rely on caller to set NATIVECC and NATIVECXX.
* native/lookupAccountName.h: Don't redeclare WELL_KNOWN_SID_TYPE
when win32api headers already do so. However, add new values to
declaration if you do need to declare it.
* native/lookupAccountName.h: Don't redeclare CreateWellKnownSid
when w32api headers already do so.
* native/getAccountName.cpp: Use hardcoded value to represent maximum
WELL_KNOWN_SID_TYPE enumeration value, since the various w32api
versions are all different.
* native/winProductName.c: Add new macro values and strings for
GetProductInfo dwType.
(GetOSDisplayString): Use proper name for Windows Server 2012. Adapt
to newly added values for GetProductInfo dwType.
* cygwin-service-installation-helper.sh: Bump version number.
(csih_cygwin_is_64bit): New function.
(csih_is_exactly_windows8server): Rename to
(csih_is_exactly_server2012): this.
(_csih_late_initialization_code): Adapt to changes in winProductName.
* version.h: Bump version.
* NEWS: Document changes.
2012-03-26 Charles Wilson <...>
0.9.6 release
* native/Makefile: Use static language runtime libraries.
* cygwin/Makefile: Use static language runtime libraries.
* cygwin-service-installation-helper.sh: Bump version.
* version.h: Bump version.
* NEWS: Document changes.
2012-02-09 Charles Wilson <...>
0.9.5 release.
* native/Makefile: Avoid -mno-cygwin.
* native/winProductName.c (GetOSDisplayString): Support
Windows 8 and Windows Server 8. Improve support for various
Microsoft OS products.
* version.h: Bump version.
* csih.sh: Bump version.
(csih_is_windows8): New function.
(csih_is_exactly_windows8): New function.
(csih_is_exactly_windows8server): New function.
(csih_account_has_necessary_privileges): Don't attempt to
validate membership in Administrators group -- the test doesn't
work properly on domains anyway. Just try to set the necessary
rights and report error if the operation fails.
(csih_create_privileged_user): Don't attempt to check whether
/usr/bin/passwd has the -e option; all versions of passwd shipped
with cygwin-1.7.x support it.
(_csih_late_initialization_code): Fix bug related to the various
existing csih_is_exactly_* functions. Support new Windows 8 related
ones.
2011-02-13 Charles Wilson <...>
0.9.4 release
* csih.sh: Bump version number.
* version.h: ditto.
2011-02-12 Charles Wilson <...>
Add support for tmpfiles; remove obsolete code.
* NEWS: Update documentation.
* csih.sh: (csih_check_basic_mounts): Deprecate; replace with
stub that issues warning message.
(csih_writable_tmpdir): New function.
(csih_mktemp): New function.
(_csih_sanity_check): Check also chown, mktemp, mv.
(_csih_warning_for_missing_ACL_support): Remove accomodations
for cygwin-1.5.
(_csih_setup): Don't call csih_check_basic_mounts.
(csih_create_privileged_user): Use csih_mktemp instead of $$
for temporary files. Take more care to preserve ownership,
permissions, and ACLs when replacing /etc/passwd.
2011-02-11 Corinna Vinschen <...>
Charles Wilson <...>
Verify external tools before using; invoke via full paths.
* NEWS: Update documentation.
* csih.sh: Massive reorganization to ensure that external
applications are verified before using them to initialize
variables. Initialization now has four distinct phases --
First, the easy stuff. Then, stuff that requires external
apps (e.g. coreutils) -- and the sanity check is performed
during the phase. Third, stuff that requires the utilities
shipped in this package, and csih_invoke_helper(). These
three phases now occur which csih is sourced. The final
phase is peformed by _csih_setup() which is called by public
API functions when THEY are invoked by the client. Throughout,
invoke external tools via full path to avoid conflicts in the
presence of unexpected $PATH contents. Invoke net.exe via
new csih_call_winsys32() function throughout.
(csih_sanity_check): Deprecated (issues warning), replaced by...
(_csih_sanity_check): New function. Issue warning message here,
rather than in _csih_setup (reword and expand message to apply
to both cygwin and Red Hat installations).
(_csih_late_initialization_code): Initialize _csih_script_dir
and _csih_exec_dir here, instead of 'inline'.
(csih_check_program): Return 1 if specified program doesn't
exist; 2 if it exists but can't be executed. Prefer full
pathnames but use hash if relative pathname is supplied.
(csih_check_program_or_warn, csih_check_program_or_error): Ripple
from changes to csih_check_program; print appropriate warning or
error messages.
(_csih_setup): No longer call csih_sanity_check, since internal
replacement _csih_sanity_check is now called when csih is sourced.
(_csih_get_exec_dir): Use hash builtin to locate program in
$PATH search fallback case, rather than csih_check_program.
(csih_call_winsys32): New function used to invoke tools that
reside in the ${SYSTEMROOT}/system32/ directory (such as net.exe).
2011-02-07 Corinna Vinschen <...>
0.9.3 release.
* version.h: Bump version number.
* csih.sh (csih_install_config): Not an error if user
elects NOT to overwrite existing files; return success (0).
* NEWS: Update documentation.
2010-11-16 Charles Wilson <...>
Actual 0.9.2 release.
* cygwin/getVolInfo.c (main): Use cygwin_create_path
instead of deprecated cygwin_conv_to_full_win32_path.
* native/Makefile: Use gcc-3 and g++-3 explicitly.
* NEWS: Update documentation.
2010-11-16 Charles Wilson <...>
* version.h: Bump version number.
2010-11-16 Charles Wilson <...>
* csih.sh (csih_account_has_necessary_privileges): Fix typo.
(csih_create_privileged_user): Fix typo.
2010-11-16 Charles Wilson <...>
Document XP64/XP32 issues. Remove vestiges of Win9x.
* TODO: Remove Win9x item.
* NEWS: Update documentation.
* csih.sh: Update version and copyright date. Update
comments throughout to reflect that WinXP64 is included
in "Windows NT Server 2003 or above).
(csih_is_nt2003): Expand commentary to describe situation.
(_csih_warning_for_win9x_perms): Removed.
(csih_guest_account_active): Remove check for !csih_is_nt.
(_csih_warning_for_missing_ACL_support): Ditto.
(csih_privileged_accounts): Ditto.
(csih_create_privileged_user): Ditto.
(csih_create_unprivileged_user): Ditto.
(csih_select_privileged_username): Remove check for !csih_is_nt.
Update user messages regarding NT2003/XP64.
(csih_service_should_run_as): Ditto.
2009-08-01 Charles Wilson <...>
Release 0.9.1
* NEWS: Update.
* csih.sh: Update version.
* version.h: Update version.
2009-07-23 Corinna Vinschen <...>
* cygwin/getVolInfo.c: Check ZwOpenFile status code for
STATUS_INVALID_PARAMETER and retry top open with FILE_READ_DATA
access. Simply STATUS_NO_MEDIA_IN_DEVICE condition.
2009-05-03 Charles Wilson <...>
Add error checking for supported OS/cygwin version.
* NEWS: Update.
* csih.sh (csih_win_product_name): New function, allows
to cache results of calling winProductName since we
have to call it anyway.
(_csih_late_initialization_code): set cache variable
for use by csih_win_product_name().
(main): Check that OS is at least WinNT, and cygwin
version is at least 1.7.0, else issue error.
2009-05-03 Charles Wilson <...>
Update version number on trunk.
* NEWS: Update.
* csih.sh (main): Update csih_VERSION.
* version.h: New file.
* native/getAccountName.cpp: Use version.h to set
version number.
* native/winProductName.c: Ditto.
2009-05-03 Charles Wilson <...>
Release 0.2.0
* NEWS: Update.
* csih.sh (main): Update csih_VERSION.
* native/getAccountName.cpp: Bump version number.
* native/winProductName.c: Bump version number.
2009-03-29 Charles Wilson <...>
ACLs for /var/*; supress unnecessary info msgs
* csih.sh (_csih_setup): Add ACLs for system user
and Administrators group to /var/log, /var/run, and
/var/empty.
(csih_select_privileged_username): Supress informational
messages about other privileged users when called with
-u $specific_username_request.
2009-03-28 Charles Wilson <...>
* TODO: New.
* AUTHORS: Updated.
* csih.sh (main): Bump version number.
(_csih_well_known_privileged_accounts[_quoted]): New.
(csih_privileged_accounts): New -u $username option;
check also the specified $username, as well as the
'well known' accounts.
(csih_privileged_account_exists): Modify semantics;
now return true if account exists and has necessary
privileges, even if it is not one of the 'well known'
accounts.
(csih_select_privileged_username): Add -u $default_user
option. Allows to specify some (possibly not yet
existing) account for the service to run under, IF
if is not already installed. This allows to override
the *default* default, cyg_server.
(csih_is_windows7): New.
(csih_is_exactly_windows7): New.
(csih_is_exactly_server2008r2): New.
* native/getAccountName.cpp: Bump version number.
* native/winProductName.c: Bump version number.
Update for Windows 7, Windows Server 2008 R2.
* NEWS: Update documentation.
2009-03-28 Charles Wilson <...>
* csih.sh (csih_privileged_accounts): Issue
warning if $username in /etc/passwd but not SAM.
Reported by: Herb Maeder
2009-03-28 Julio Costa <...>
* csih.sh (csih_select_privileged_username): Add
-f option.
(csih_create_privileged_user): Expand comments.
2009-01-28 Corinna Vinschen <corinna-cygwin@cygwin.com>
* csih.sh (csih_get_cygenv): Don't check input for certain values.
2008-08-20 Charles Wilson <...>
* csih.sh (_csih_setup): suppress error messages
from chmod (when run as normal user).
2008-08-20 Charles Wilson <...>
Correct csih_check_access behavior.
* csih.sh (csih_check_access): update documentation.
Fix broken if-clauses -- [ fn -a $var -eq "foo" ]
doesn't work; use ( fn && [ $var -eq "foo" ]).
Remove test (and erroneous comments) concerning
ACLs and 'other' permission bits.
(csih_select_privileged_username): reformat messages.
2008-08-20 Charles Wilson <...>
csih-0.1.8 release
* csih.sh (main): bump version number
2008-08-20 Corinna Vinschen <corinna-cygwin@cygwin.com>
Better support for domain accounts.
* csih.sh (csih_create_privileged_user): return success
if user already exists in /etc/passwd (allows to use
pre-existing domain account as privileged user).
(csih_create_unprivileged_user): return success
if user already exists in /etc/passwd (allows to use
pre-existing domain account as unpriv user).
2008-08-20 Charles Wilson <...>
* csih.sh (csih_create_unprivileged_user): detect
if fail to add user to /etc/passwd.
2008-08-20 Charles Wilson <...>
* csih.sh (_csih_setup): Attempt to set correct permissions
on /var/run, /var/log, /var/empty, and /etc.
2008-08-16 Charles Wilson <...>
csih-0.1.7 release
Fix bugs and improve Vista and cygwin-1.7 support.
* csih.sh (main): update documentation, bump version
number.
(csih_cygver): new function.
(csih_cygver_is_oneseven): new function.
(csih_sanity_check): Check for stat program.
(csih_get_system_and_admins_ids): Use 'stat -c %A'
instead of 'ls -ld'.
(csih_check_dir_perms): ditto.
(csih_check_sys_mount): Document as cygwin-1.5.x
specific. Unconditionally return 0 (true) for
cygwin-1.7 and above.
(csih_check_basic_mounts): ditto.
(_csih_setup): Allow /var to have text bit set --
iow, match permissions pattern 'd..x..x..[xt]'
(csih_select_privileged_username): workaround bug in
cygwin-1.7 mkpasswd. Reparagraph error user message,
fix documentation typo.
(csih_service_should_run_as): Return either privileged
account name OR system, not both.
* NEWS: Update documentation.
2008-08-07 Charles Wilson <...>
csih-0.1.6 release
Add getVolInfo utility program. Use it to avoid
checking permissions on volumes that do not support ACLs.
* csih.sh (main): update documentation.
(csih_WIN32_VOLS_WITH_ACLS): new client-accessible var.
(csih_WIN32_VOLS_WITHOUT_ACLS): ditto.
(csih_path_supports_acls): new function.
(_csih_convert_w32vol_to_shell_pattern): new function.
(_csih_path_in_volumelist_core): new function.
(_csih_path_in_volumelist): new function.
(csih_get_system_and_admins_ids): update comments.
No longer an error if Administrators group is not found
in /etc/passwd.
(_csih_warning_for_win9x_perms): new function.
(_csih_warning_for_missing_ACL_support): new function.
(csih_check_dir_perms): bail out early (returning success
but with a warning) if on OS older than windows NT, or the
specified file/dir is on a volume that does not support ACLs.
(csih_check_access): ditto. Also, improve comments. If
csih_ADMINSUID is empty, gracefully skip checking if file/dir
is owned by the Administrators group.
* cygwin/Makefile: new file.
* cygwin/getVolInfo.c: new file.
* COPYING: update documentation.
* NEWS: update documentation.
2008-08-04 Charles Wilson <...>
Accept pre-existing privileged domain accounts.
Default to privileged account on NT/2k/XP if exist.
* csih.sh (csih_privileged_accounts): Always look
for privileged users if NT or better. Look in both
/etc/passwd and local SAM.
(csih_privileged_account_exists): Update documentation
to reflect behavior change inherited from above.
(csih_select_privileged_username): Attempt to return
a username even on NT/2k/XP (but default to empty if
no pre-existing privileged user on those OS's). Be more
specific in the informational messages emitted. Look
in both /etc/passwd and local SAM for accounts, if user
specified one we don't know about already.
(csih_create_privileged_user): Improve comments.
(csih_create_unprivileged_user): Improve comments.
See FIXME! (remove this line from ChangeLog when resolved)
(csih_service_should_run_as): Improve comments. Check
both /etc/passwd and local SAM if "answer" is an account
that did not exist when script was launched. For NT/2k/XP,
default to pre-existing privileged user (if one exists), and
only report SYSTEM otherwise.
* NEWS: Document new behavior
2008-07-19 Corinna Vinschen <corinna-cygwin@cygwin.com>
* csih.sh (csih_account_has_necessary_privileges): Don't
explicitely test for SeDenyXXX rights, nor for
SeIncreaseQuotaPrivilege.
(csih_create_privileged_user): Drop setting
SeDenyInteractiveLogonRight and SeIncreaseQuotaPrivilege.
2008-07-19 Charles Wilson <...>
csih-0.1.5 release
* cish.sh (csih_account_has_necessary_privileges):
Use editrights -t instead of editrights -l and fgrep.
2008-07-19 Corinna Vinschen <corinna-cygwin@cygwin.com>
* csih.sh (csih_account_has_necessary_privileges,
csih_create_privileged_user): Don't disallow network
logon for service user account.
2008-04-14 Charles Wilson <...>
csih-0.1.4 release
* csih.sh: add MIT/X license text.
(csih_error): Removed any direct heritage from cygport due to
licensing concerns.
(csih_warning): ditto
(csih_inform): ditto
(csih_verbose): ditto
* COPYING: update documentation
* NEWS: update documentation
* COPYING.GPLv3: removed
2008-04-09 Charles Wilson <...>
* csih.sh (csih_account_has_necessary_privileges): new function
(csih_select_privileged_username): new behavior if optionally
specified service is installed.
(csih_service_should_run_as): new optional argument service_name.
If specified, checks to see if that service is already installed,
and returns the installed account name if so. Otherwise, behavior
is unchnaged.
2008-04-07 Corinna Vinschen <...>
* csih.sh (csih_create_privileged_user): fix typo
(_csih_setup): fix typo
2008-04-07 Charles Wilson <...>
* csih.sh (csih_select_privileged_username): moved
below _csih_setup so it can be a main entry point.
Added option parsing: -q query mode, and service_name.
Added caching; once csih_PRIVILEGED_USERNAME is set,
avoid extra reprocessing.
(csih_version_ge): new function for comparing version
numbers. 'csih_version_ge A B' returns true if A >= B,
where A and B are of the form x.y.z.
(csih_version_le): ditto, for A <= B.
(csih_version_gt): ditto, for A > B.
(csih_version_lt): ditto, for A < B.
(csih_version_eq): ditto, for A == B.
2008-04-02 Charles Wilson <...>
* csih.sh (csih_create_privileged_user): accept
password as optional first argument.
* native/winProductName.c (usage): new function
(help, license, version): ditto
(main): add support for basic option parsing and
help.
* native/Makefile: link winProductName against
libnative (for getopt support).
* NEWS: new file
* AUTHORS: new file
* COPYING: new file
* COPYING.GPLv3: new file
* COPYING.LGPLv2.1: new file
* COPYING.MIT_X: new file
2008-03-16 Charles Wilson <...>
csih-0.1.3 release
* csih.sh (_csih_late_initialization_code): new function.
moved inline late initialization code to here.
2008-03-16 Charles Wilson <...>
csih-0.1.2 release
* native/winProductName.c: new file
* native/Makefile: add rules for winProductName
* csih.sh (csih_is_exactly_vista): new function
* csih.sh (csih_is_exactly_server2008): new function
* csih.sh: protect usage of $csih_progname against
leading '-' character, throughout.
* csih.sh (late initialization code): add new code
block after definition of csih_invoke_helper().
2008-03-06 Charles Wilson <...>
csih-0.1.1 release
* native/getAccountName.cpp: new file
* native/getopt.c: new file
* native/getopt.h: new file
* native/getopt1.c: new file
* native/lookupAccountName.cpp: new file
* native/lookupAccountName.h: new file
* native/Makefile: new file
* native/ReadMe.Win32Error.txt: new file
* native/Win32Error.h: new file
* csih.sh (csih_is_2k): new function
(csih_is_xp): new function
(csih_is_vista): new function
(csih_invoke_helper): new function
(csih_get_localized_account_name): new function
(csih_get_guest_account_name): new function
(csih_guest_account_active): new function

View file

@ -0,0 +1,212 @@
0.9.7:
* winProductName: Better support for Windows Server 2012 variants.
* getVolInfo: Adapt to new w32api; avoid ddk.
* csih: Renamed csih_is_exactly_windows8server to csih_is_exactly_server2012.
* csih: Added csih_cygwin_is_64bit.
* Support cross-compilation; support cygwin64.
* Use mingw64 toolchains by default for "native" executables.
0.9.6:
* Avoid language runtime dlls when compiling utility programs.
0.9.5:
* winProductName now supports Windows 8 and Windows 8 Server.
* Remove various obsolete tests.
0.9.4:
* New function csih_call_winsys32() for invoking programs
in C:\Windows\system32.
* New function csih_writable_tmpdir() echos path to a temporary
directory, using $TMP, $TEMP, $TMPDIR, $HOME, etc.
* New function csih_mktemp() safely wraps /usr/bin/mktemp.
* csih_sanity_check() deprecated (replaced by internal
function).
* csih_check_basic_mounts() deprecated (ditto).
* New mutable variables csih_sanity_check_server and
csih_required_commands[] for modifying the behavior of
the internal replacement function for csih_sanity_check().
* All external applications (mkpasswd, expr, tr, sed, etc)
are now called by their full path, to avoid conflicts in
the presence of unexpected $PATH contents.
* (internal): massive reorganization, changing the order
of intialization. Required because some initialization requires
calling external programs, and we now verify these programs
are accessible first.
0.9.3:
* In csih_install_config(), don't treat as error when
user elects elects NOT to overwrite existing files; instead
return success. (Corinna Vinschen)
0.9.2:
* Remove all vestiges of pre-NT support -- except
for failure message if used on 9x platforms.
* Update user messages and # comments to reflect new
information: csih_is_nt2003 returns true for 64bit XP
but not 32bit XP. This is because 64bit XP is actually
more similar to Windows NT Server 2003 than XP32:
especially with regards to the privileges of the SYSTEM
account.
* getVolInfo uses cygwin_create_path instead of deprecated
cygwin_conv_to_full_win32_path.
0.9.1:
* getVolInfo doesn't need file access rights to get
just volume information. Open with reduced rights
to work around issue with HGFS. (Corinna Vinschen)
0.9.0:
* On-going development on the trunk is specific
for cygwin-1.7. Bump version number to reflect
that, but...
* Only a few substantive changes relative to 0.2.0:
- use common version.h file in compiled programs,
to avoid having to increment the version number
in too many places.
- new csih_win_product_name() function caches result
of calling winProductName.
- Verify that OS is at least WinNT, and that cygwin
version is at least 1.7.0, or error.
0.2.0:
* Branch for cygwin-1.5-specific releases
* No other changes with respect to package 0.1.9-2
0.1.9:
* correct csih_check_access behavior.
* suppress errors in _csih_setup
* No longer restrict contents of CYGWIN variable
* New -f option for csih_select_privileged_username to
accomodate unattended installs
* New '-u default_username' for csih_select_privileged_username,
for another way of accomodating unattended installs, AND to
allow foo-config to specify explicitly the --service-account
to use. Note that csih_privileged_account_exists $username
now returns true if $username exists, and has all necessary
privileges, even if it is not one of the well-known cyg_server,
cron_server, or sshd_server accounts.
* New '-u username' for csih_privileged_accounts. Also checks
username as well as 'well known' accounts for (a) existence,
and (b) having necessary privileges.
* Now warn user when an account is specified in /etc/passwd,
but is not found in the SAM. This is ok if the account is
a domain account, but the user should be aware of the issue.
* Updated winProductName to reflect Windows 7, Server 2008 R2.
* csih has new functions related to detecting Windows 7 and
Server 2008 R2.
0.1.8:
* explicitly set permissions on /var/[log|run|empty]
and /etc. This simplifies code in most callers.
* Better support for (pre-existing) domain accounts
as privileged and unprivileged users.
0.1.7:
* bug fixes
* compatibility fixes and workarounds for cygwin-1.7
0.1.6:
* more permissions tweaks for privileged user:
See http://cygwin.com/ml/cygwin/2008-06/msg00453.html
Users of earlier versions of csih may need to manually
adjust their existing privileged users. Again:
editrights -r SeDenyNetworkLogonRight -u cyg_server
editrights -r SeDenyInteractiveLogonRight -u cyg_server
editrights -r SeIncreaseQuotaPrivilege -u cyg_server
* Even on NT/2k/XP, prefer to use "privileged" user (cyg_server,
sshd_server, cron_server, etc) if a suitable such user already
exists. If not, then for these older OS's, fall back to SYSTEM.
As always, by setting csih_FORCE_PRIVILEGED_USER -- usually done
by the calling script via a command line argument, such as
/usr/bin/iu-config -privileged
the user can force NT/2k/XP to behave as Vista or Server2008: a
privileged user is required, and if one does not exist it will
be created.
* Also accept privileged accounts that exist only in /etc/passwd and
are not present in the local SAM. That is, accept pre-existing
privileged domain accounts.
* New utility program: getVolInfo
http://cygwin.com/ml/cygwin/2007-08/msg00040.html
* New function: csih_path_supports_acls() returns 0 (success)
if the specified path is located on a volume that supports
ACLs. Uses getVolInfo. Behavior can be modified, when getVolInfo
is incorrect, by setting user-accessible variables:
csih_WIN32_VOLS_WITH_ACLS
csih_WIN32_VOLS_WITHOUT_ACLS
which each may contain ;-separated lists of win32 paths,
specifying volumes in the relevant category.
* It is no longer a fatal error if, when checking the
permissions or access rights of a file or directory, the
target is located on a volume that does not support ACLs.
A warning is issued, but operation continues.
* The Administrators group is no longer required to be in
/etc/passwd. However, it is still required in /etc/group.
SYSTEM is (still) required in both /etc/passwd and /etc/group.
0.1.5:
* tweak permissions for privileged user (no longer deny
NetworkLogonRight). Users of earlier versions may need to
manually adjust their exising privileged users: that is,
as an Administrator (or, on Vista with UAC, from a console
launched via 'Run as Administrator' with valid UAC
authentication):
editrights -r SeDenyNetworkLogonRight -u cyg_server
0.1.4:
* Add --help, --license, --version options to winProductName.
* Caller can now specify the password when calling
csih_create_privileged_user
* csih_should_run_as now accepts optional [service_name] argument.
If specified, then checks to see if [service_name] is already
isntalled. If so, the user under which the service is installed
is returned (if that user has the necessary privileges).
Should call csih_select_privileged_username first, unless you are
SURE that [service_name] has already been installed.
* Add [-q] and [service_name] options to csih_select_privileged_username
+ If the optional argument '-q' is specified, then
csih_select_privileged_username will operate in query mode, which
is more appropriate for user-config scripts that need information
ABOUT a service, but do not themselves install the service or
create privileged users.
+ If the optional [service_name] argument is present, then that
value may be used in some of the messages. Also,
csih_select_privileged_username will then check to see if
[service_name] is already installed. If so, it the
account under which it is installed will be selected, assuming
that account passes validation (has necessary permissions, group
memberships, etc).
+ Usually [-q] and [service_name] should be specified together.
* Associated foo-config scripts that do not themselves install
a service (such as ssh-user-config) can now query the 'expected'
account that the associated service will run as. Recommended
pattern:
if csih_is_nt
then
if ! cygrunsrv -Q <service> >/dev/null 2>&1
then
csih_select_privileged_username -q <service>
fi
service_user=$(csih_service_should_run_as <service>)
... continue ...
fi
* new functions for comparing x.y.z version numbers:
csih_version_ge A B --> A >= B
csih_version_le A B --> A <= B
csih_version_gt A B --> A > B
csih_version_lt A B --> A < B
csih_version_ne A B --> A == B
* Clarified licensing terms and attributions for csih.sh script
Explicitly MIT/X.
* Removed any direct heritage from cygport due to licensing concerns.
For an example of the usage of the new facilities, see the (proposed)
ssh-host-config and ssh-user-config scripts:
+ host: http://cygwin.com/ml/cygwin/2008-04/msg00079.html
+ user: http://cygwin.com/ml/cygwin/2008-04/msg00219.html
(Note that the official ssh-[host|user]-config scripts may not look
anything like these two proposals...)

View file

@ -0,0 +1,4 @@
* Needs serious refactoring. Code is way too complicated
and nigh-on unmaintainable. However, refactoring may
require coordinating API changes and release timing
with client foo-config packages.