delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/09/13:09:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Tom Weichmann" <tomcw AT localnet DOT com>
To: Kutschera Peter <Peter DOT Kutschera AT ajc DOT at>,
cygwin <cygwin AT sourceware DOT cygnus DOT com>
Date: Fri, 9 Jun 2000 13:11:59 -0700
MIME-Version: 1.0
Subject: Re: Win98 and /etc/passwd ??
Reply-to: tomcw AT localnet DOT com
Message-ID: <3940ED1F.193.EE0E1@localhost>
In-reply-to: <F10189C8D04FD311AFF80800060F27F8120026@bdc.ajc.at>
X-mailer: Pegasus Mail for Win32 (v3.12c)

> Sorry about this maybe silly question:
> 
> How to create /etc/passwd on Win98 ?
> 
> When trying to run mkpasswd or mkgroup I get an error popup about a
> missing Export-NETAPI32.dll:NatApiBufferFree

mkpasswd/mkgroup only work for WinNT.
 
> I tried to create /etc/passwd by hand (Empty password) but got "login
> incorrect"
> 
> Also the info from inetutils-1.3.2.README did not help. 
> 
> Any hints / links / READMEs available?

You need to create this file by hand.  The only part that is a pain is 
the password it self.  to get a crypted password into a file use the 
crypt command as follows

crypt mypasswordhere >>/etc/passwd

This puts the encrypted password in the passwd file with a trailing 
\n.  Next edit the file and add the rest of the info needed in passwd, 
ie:

username:password:uid:gid:realname:homedir:shell

tom:sdlakjlkwej:500:547:Tom:/home/tom:/bin/bash

NOTE  If you are using ftp as well, and you want to use bash as 
your shell create a file called /etc/shells.  Put the following into the 
file

/bin/sh
/bin/bash

Otherwise ftp will not function correctly.

Hope this helps,


Tom Weichmann

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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