delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/20/12:20:56

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
Message-Id: <200509201630.j8KGUPkO005017@tigris.pounder.sol.net>
From: cygwin AT trodman DOT com (Tom Rodman)
To: cygwin AT cygwin DOT com
Subject: Re: bash not running bash_profile or bashrc
In-reply-to: <SERRANOmCvoXM7e0C9g00000112@SERRANO.CAM.ARTIMI.COM>
References: <SERRANOmCvoXM7e0C9g00000112 AT SERRANO DOT CAM DOT ARTIMI DOT COM>
Date: Tue, 20 Sep 2005 11:30:25 -0500
X-IsSubscribed: yes

Dave/all:

mkpasswd does fail in our "huge" :-> domain.  In the example
I posted, I did not kill mkpasswd, it returned 1, and the
message "mkpasswd (249): [5] Access is denied.".  
Here's the example again:

  ~ $ time mkpasswd -d |wc -l ; echo mkpasswd returned: ${PIPESTATUS[0]} #let it run, did not kill
  mkpasswd (249): [5] Access is denied.
  1415

  real    2m52.938s
  user    0m1.858s
  sys     0m4.608s
  mkpasswd returned: 1
  ~ $ uname -a;date
  CYGWIN_NT-5.0 OurHost08 1.5.19s(0.138/4/2) 20050919 11:51:47 i686 unknown unknown Cygwin

I'm not asking for a fix; the "mkpasswd -d -u .." work around is fine for us.
If you want me to do an strace, to help diagnose the failure, I will - but 
pls give me the exact commandline switches - I'm only offering (not asking for)
help.  If it matters, our domain has "domain local groups".

--
thanks/regards,
Tom

On Tue 9/20/05 15:05 BST "Dave Korn" wrote:
> ----Original Message----
> >From: Tom Rodman
> >Sent: 20 September 2005 14:51
> 
> > On Mon 9/19/05 21:21 EDT Poor Yorick wrote:
> > <snip>
> >> mkpasswd -d > /etc/passwd
> >> 
> >> seems to hang.  I get no output and it never completes.
> 
>   I don't suppose you've actually allowed it to run forever yet, so "never"
> completes is too strong....
> 
> > For us, "mkpasswd -d" dumps ~1500-2000 users and then
> > errs out. 
> 
>   It's a known problem with both mkpasswd and mkgroup that they can take a
> long time to run.  If you really want to be sure whether it's doing anything
> or not, you could always try
> 
> mkpasswd -d | tee /etc/passwd
> 
> instead, and see if lines are being generated, however slowly.
<snip>

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