delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/03/17:06:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: Take 2: Testers for new ssh-*-config scripts wanted!
Date: Mon, 3 Nov 2003 16:05:43 -0600
Message-ID: <F67AB1DD14544242BE5BFE94F5939175575F59@E2KMEMMCS1.ftbco.ftn.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "DePriest, Jason R." <jrdepriest AT ftb DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 03 Nov 2003 22:05:57.0852 (UTC) FILETIME=[A8BF91C0:01C3A256]
X-DCC-FTBDCCD1-Metrics: dns2 1130; Body=1 Fuz1=1 Fuz2=1
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id hA3M68J3008753

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com 
> [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Corinna Vinschen
> Sent: Monday, November 03, 2003 3:41 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: Take 2: Testers for new ssh-*-config scripts wanted!
[-<snip>-]
> However, I have still a problem.  Does anybody know how I can set
> "Password never expires" from the command line?  I know how to do this
> with dsadd, but that only works on domain machines so it's no generic
> solution.  If I can't do this in the script, everybody would have to
> set this in the Computer Management Console by hand :-(
[-</snip>-]
[-<snip>-]
> Thanks,
> Corinna
> 
> -- 
> Corinna Vinschen                  Please, send mails 
> regarding Cygwin to
> Cygwin Developer                                
> mailto:cygwin AT cygwin DOT com
> Red Hat, Inc.

Corinna,

User Accounts have a USER_FLAGS attribute that can be any combination of
a couple of values.  One of these can be UF_DONT_EXPIRE_PASSWORD.  If it
is present, the password never expires.

I typically manipulate it using Dave Roth's Win32::AdminMisc perl module
(UserGetMiscAttributes and UserSetMiscAttributes)... which is likely
beyond the scope of what you want this script to do.

The CREATEUSERS.VBS script from the Windows 2000 Resource Kit
(Supplement 1) looks promising.  I haven't used it, but the code seems
capable of specifying the UF_DONT_EXPIRE_PASSWORD option.
I would attach the .vbs file (as a .txt file), but it is copyrighted by
Microsoft.  If anyone knows if emailing it would be "bad" or not, let me
know.

-Jason

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


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