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: bash not running bash_profile or bashrc


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/


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