X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_YG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <5792aa960fbaca409f15179dbe31fa0c.squirrel@deadeye.schutter.home> Date: Wed, 8 Feb 2012 13:12:58 -0700 Subject: Change to passwd in cygwin-1.7.10-1 breaks ssh-host-config From: "Tom Schutter" To: cygwin AT cygwin DOT com User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 DOT schutter AT comcast DOT 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