This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Proper Setting of mkpasswd and mkgroup

On Tue, Jan 11, 2011 at 02:09:40PM -0700, Gary Furash wrote:
> > On Tue, Jan 11, 2011 at 10:55:09AM -0700, Gary Furash wrote:
> > > Problem:
> > > 1. When I create a file or such using cygwin, it says that the group 
> > > is "mkpasswd".
> > > 
> > > What's the proper combination of MKPASSWD and MKGROUP commands to run? 
> > 
> > Backup both files first (/etc/passwd and /etc/group).
> > Try to rebuild your /etc/passwd and /etc/group files by issuing:
> > 
> > $ mkpasswd -l [-d] > /etc/passwd
> > $ mkgroup  -l [-d] > /etc/group
> > 
> > Please refer to the manpages of mkpasswd and mkgroup regarding the use of
> > -d/-D for machines inside a Domain.
> > 
> > There are also detailed instructions in /etc/profile on how to deal with
> > this.
> Thank you David. However, I did do that, I just didn't understand it. :-)

Did you read the manpages?

> I assume there is a mkgroup and mkpasswd you issue if you have a stand-alone
> machine, and a slightly different one you issue if you're part of a windows
> domain.

Exactly. That is what the -d/-D option does.

> However, I'm definitely not doing the right thing, since when I run bash.exe
> from the dos command line to run in the background, it fails with the
> "everything is MKGROUP" error.

Have you tried using another terminal, like mintty, and see if it
makes a difference?

What exactly is the output of the commands above?

Also, please, don't top post and try not to quote email addresses in
your responses.
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB

Attachment: signature.asc
Description: Digital signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]