public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Change to passwd in cygwin-1.7.10-1 breaks ssh-host-config
@ 2012-02-08 20:13 Tom Schutter
  2012-02-08 20:30 ` Corinna Vinschen
  0 siblings, 1 reply; 18+ messages in thread
From: Tom Schutter @ 2012-02-08 20:13 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-02-24  3:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-08 20:13 Change to passwd in cygwin-1.7.10-1 breaks ssh-host-config Tom Schutter
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

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).