This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Unavailability of Chsh / ability to change user shell
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 18 Aug 2005 18:56:16 +0100
- Subject: RE: Unavailability of Chsh / ability to change user shell
----Original Message----
>From: Igor Pechtchanski
>Sent: 18 August 2005 18:47
> On Thu, 18 Aug 2005, Jerrad Pierce wrote:
>> [jpierce@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@mace /etc> mv passwd passwd.old
dk@mace /etc> mkpasswd -u dk > passwd
mkpasswd: Specify one of `-l', `-d' or `-g'
dk@mace /etc> mkpasswd -l -u dk > passwd
mkpasswd (257): [2221] The user name could not be found.
dk@mace /etc> mkpasswd -d -u dk > passwd
dk@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@mace /etc> passwd
passwd: unknown user dk
dk@mace /etc> mv passwd.old passwd
dk@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/