delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/15/15:09:47

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.1.1.0.20040315150603.03419778@127.0.0.1>
X-Sender:
Date: Mon, 15 Mar 2004 15:07:08 -0500
To: "Calvin Smith" <exnihilo4 AT myrealbox DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: re: windows authentication for cygwin sshd
In-Reply-To: <1079381107.c85a323cexnihilo4@myrealbox.com>
References: <1079381107 DOT c85a323cexnihilo4 AT myrealbox DOT com>
Mime-Version: 1.0

The password field  in /etc/passwd is not used on NT/W2K/W2K3....

Larry


At 03:05 PM 3/15/2004, you wrote:
>Thanks for the information. I tried to run mkpasswd, but got the following error message:
>
>mkpasswd: [1326] Logon failure: unknown user name or bad password.
>
>Do I need to be logged in as a domain administrator to execute this successfully? I tried the above as a local administrator, since I don't have domain administrator access, and that was the error I got.
>
>When I logged on as a domain (non-administrator) user and executed the command, I got an "Access Denied" error message.
>
>Given that I will need to set a cron job to update the passwd file every few minutes or so, for when users change their passwords, how can I ensure that this happens? I could easily do this in unix by just setting a root or system cron job, which would always execute regardless of who was logged in, but I'm not sure how to do this in windows and cygwin -- i.e., how to make sure it executes regardless of who is logged in, and how to make sure cygwin is running in the first place.
>
>thanks for any help....
>
>
>
>-----Original Message-----
>From: "Matt Berney" <mberney AT polyserve DOT com>
>To: <exnihilo4 AT myrealbox DOT com>, <cygwin AT cygwin DOT com>
>Date: Mon, 15 Mar 2004 10:51:59 -0800
>Subject: re: windows authentication for cygwin sshd
>
>Calvin,
>
>You can update the /etc/passwd file and /etc/group file with the domain users and groups with the following command:
>
>cd /etc
>/usr/bin/mkpasswd -l -g -d > passwd
>/usr/bin/mkgroup -l -d > group
>
>net stop sshd && net start sshd
>
>Use 'man mkpasswd' & 'man mkgroup' for help.
>
>--Matt
>
>
>
>
>
>
>--
>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/


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