From: "Tom Schutter" <t.schutter@comcast.net>
To: cygwin@cygwin.com
Subject: Change to passwd in cygwin-1.7.10-1 breaks ssh-host-config
Date: Wed, 08 Feb 2012 20:13:00 -0000 [thread overview]
Message-ID: <5792aa960fbaca409f15179dbe31fa0c.squirrel@deadeye.schutter.home> (raw)
It appears that the "-v" option to passwd was changed to "-V" in
cygwin-1.7.10.1. This indirectly breaks the ssh-host-config script.
The actual breakage is in the csih script.
*** Info: User 'cyg_server' has been created with password 'XXXXX'.
*** Info: If you change the password, please remember also to change the
*** Info: password for the installed services which use (or will soon use)
*** Info: the 'cyg_server' account.
*** Info: Also keep in mind that the user 'cyg_server' needs read permissions
*** Info: on all users' relevant files for the services running as
'cyg_server'.
*** Info: In particular, for the sshd server all users' .ssh/authorized_keys
*** Info: files must have appropriate permissions to allow public key
*** Info: authentication. (Re-)running ssh-user-config for each user will set
*** Info: these permissions correctly. [Similar restrictions apply, for
*** Info: instance, for .rhosts files if the rshd server is running, etc].
passwd: unknown option -- v
Try `passwd --help' for more information.
*** Warning: User 'cyg_server' has password expiry set to system default.
*** Warning: Please check that password never expires or set it to your
needs.
*** Info: The sshd service has been installed under the 'cyg_server'
*** Info: account. To start the service now, call `net start sshd' or
*** Info: `cygrunsrv -S sshd'. Otherwise, it will start automatically
*** Info: after the next reboot.
$ cygcheck -f /usr/bin/ssh-host-config
openssh-5.9p1-1
$ cygcheck -f /usr/share/csih/cygwin-service-installation-helper.sh
csih-0.9.4-1
$ cygcheck -f /usr/bin/passwd
cygwin-1.7.10-1
$ grep "passwd -v" /usr/share/csih/cygwin-service-installation-helper.sh
passwd_has_expiry_flags=$(passwd -v | /usr/bin/awk '/^passwd
/{print ( $3 >=
1.5 ) ? "yes" : "no";}')
$ passwd -v
passwd: unknown option -- v
Try `passwd --help' for more information.
$ passwd --help | grep -- -v
-V, --version output version information and exit.
But on a machine with cygwin-1.7.9-1,
$ passwd --help | grep -- -v
-v, --version output version information and exit.
This would be a proper problem report if I could actually send an email from
my corporate account where I detected the problem. Sorry.
--
Tom Schutter
t.schutter@comcast.net
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next reply other threads:[~2012-02-08 20:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-08 20:13 Tom Schutter [this message]
2012-02-08 20:30 ` Corinna Vinschen
2012-02-09 6:10 ` Charles Wilson
2012-02-09 11:05 ` Corinna Vinschen
2012-02-22 17:48 ` Andrew DeFaria
2012-02-22 20:56 ` Corinna Vinschen
2012-02-22 21:35 ` Andrew DeFaria
2012-02-23 0:12 ` Larry Hall (Cygwin)
2012-02-23 1:31 ` Andrew DeFaria
2012-02-23 1:46 ` Larry Hall (Cygwin)
2012-02-23 4:45 ` Andrew DeFaria
2012-02-23 5:02 ` Larry Hall (Cygwin)
2012-02-23 14:40 ` Andrew DeFaria
2012-02-23 15:05 ` Cygwin Time Machine gone? [Was: Re: Change to passwd in cygwin-1.7.10-1 breaks ssh-host-config] Charles Wilson
2012-02-24 3:19 ` Peter A. Castro
2012-02-22 21:35 ` Change to passwd in cygwin-1.7.10-1 breaks ssh-host-config Charles Wilson
2012-02-23 8:47 ` Corinna Vinschen
2012-02-23 15:08 ` Charles Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5792aa960fbaca409f15179dbe31fa0c.squirrel@deadeye.schutter.home \
--to=t.schutter@comcast.net \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).