delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/18/01:32:12

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:message-id:from:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=cXV
0Hv/DiDz1gnSknMrcbbiJf4RMbhlHmlPQuY6A8xVrb+tA2/LwMzBC8iwdtfGVvQe
AJ4XZL2s/mleJt6BNMEawZoupLN+D7fq37AggAhy694p4cIGsaiBpfc1Dn/FIA9z
6STSo2gCTCbC4Ll5RCjuyxTSKaDMs+VoIKd3AlJM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:message-id:from:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=/msqc4CUO
m6COta0uOcYnYm+gYs=; b=PfH24DQuSXGnJBmJ2WtJq3VLenCLI+QTjdP8cMwP4
8/6obOPm4IrXs6OzfjQDHVIOWPYCf8lOjqnaP0lEHoJi81cErNY7ELW1kcUw5EQE
as2WK59bgC+hNwXMhE6Z/INieymvkzGvIne1FVFbV9fAQGVrbk1Rf+5lq7Tfr7Ar
co=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: e28smtp03.in.ibm.com
Subject: passwd -R
X-KeepSent: A40FC8AD:438FBB46-65257CBE:001E57FE; type=4; name=$KeepSent
To: Cygwin AT cygwin DOT com
Message-ID: <OFA40FC8AD.438FBB46-ON65257CBE.001E57FE-65257CBE.001E5F4A@in.ibm.com>
From: Vijay K Sukthankar <vksuktha AT in DOT ibm DOT com>
Date: Fri, 18 Apr 2014 10:58:41 +0530
MIME-Version: 1.0
X-TM-AS-MML: disable
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 14041805-3864-0000-0000-00000DB797C7
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s3I5W768009715


Hi,

I am trying to decipher how to do some of commands on a cygwin shell
remotely. I am using a Jython script to reset the Admin password and I
understand that I would have to do the following

1) change the password registry entry using passwd -R
2) net user Administrator <new password>

When the command is executed it expects that a re-enter of password which I
dont want. Is there a way I can do echo passwd | passwd -R which would
change the password in registry.

Regards
Vijay Sukthankar
Master Inventor
IBM Software Lab, India



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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019