This is the mail archive of the cygwin 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]

Change to passwd in cygwin-1.7.10-1 breaks ssh-host-config

It appears that the "-v" option to passwd was changed to "-V" in
cygwin-  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
*** 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

*** 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

$ cygcheck -f /usr/share/csih/

$ cygcheck -f /usr/bin/passwd

$ grep "passwd -v" /usr/share/csih/
        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

Problem reports:
Unsubscribe info:

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