delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/18/13:56:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Unavailability of Chsh / ability to change user shell
Date: Thu, 18 Aug 2005 18:56:16 +0100
MIME-Version: 1.0
In-Reply-To: <Pine.GSO.4.61.0508181333410.27594@slinky.cs.nyu.edu>
Message-ID: <SERRANOAyHsjCGvseE400000138@SERRANO.CAM.ARTIMI.COM>

----Original Message----
>From: Igor Pechtchanski
>Sent: 18 August 2005 18:47

> On Thu, 18 Aug 2005, Jerrad Pierce wrote:

 
>> 	[jpierce AT dof-con122 /cygdrive/c]$ passwd
>> 	passwd: unknown user jpierce
> 
> Your user is missing in /etc/passwd.  Try "mkpasswd -u jpierce >>
> /etc/passwd".  Once you have a correct user entry, "passwd" should work.


  Nope, he's hit a real bug here.  It doesn't seem to work for domain users,
anyway:

dk AT mace /etc> mv passwd passwd.old
dk AT mace /etc> mkpasswd -u dk > passwd
mkpasswd: Specify one of `-l', `-d' or `-g'
dk AT mace /etc> mkpasswd -l -u dk > passwd
mkpasswd (257): [2221] The user name could not be found.
dk AT mace /etc> mkpasswd -d -u dk > passwd
dk AT mace /etc> cat passwd
dk:unused_by_nt/2000/xp:11165:10513:Dave
Korn,U-ARTIMI_CAM\dk,S-1-5-21-335682923
0-1345131237-316312364-1165:/home/dk:/bin/bash
dk AT mace /etc> passwd
passwd: unknown user dk
dk AT mace /etc> mv passwd.old passwd
dk AT mace /etc>



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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