Subject: Re: crontab: can't obtain passwd entry
From: "Gerrit P. Haase" <[email-masked]>
To: [email-masked], Corinna Vinschen <[email-masked]>
Date: Tue, 22 May 2001 23:47:04 +0200

Louis Bohm schrieb am 2001-05-22, 12:46:

> Here is my new passwd:
> 
> lbohm@yoda:/home/lbohm% cat /etc/passwd
> Everyone:*:0:0:,S-1-1-0::
> SYSTEM:*:18:18:,S-1-5-18::
> Administrators:*:544:544:,S-1-5-32-544::
> ftpuser::1002:513:ftp,S-1-5-21-117609710-1993962763-842925246-1002:/home/ftpuser:/bin/bash
> Guest::501:513:,S-1-5-21-117609710-1993962763-842925246-501:/home/Guest:/bin/bash
> IUSR_YODA::1000:513:Internet Guest
> Account,S-1-5-21-117609710-1993962763-842925246-1000:/home/IUSR_YODA:/bin/bash
> IWAM_YODA::1001:513:Launch IIS Process
> Account,S-1-5-21-117609710-1993962763-842925246-1001:/home/IWAM_YODA:/bin/bash
> lbohm::500:513:,S-1-5-21-117609710-1993962763-842925246-500:/home/lbohm:/bin/bash
> 
> And here is $CYGWIN:
> lbohm@yoda:/home/lbohm% echo $CYGWIN
> tty notitle glob ntsec binmode
> 
> And the result:
> 
> lbohm@yoda:/home/lbohm% crontab -l
> crontab: can't obtain passwd entry.

Have you tried $ mkpasswd -d too?

That is a difference for me.
I get not anymore the same error as you, but 

Siebenschlaefer@LORELEY ~
$ crontab -e
You must enter your Windows password.
Otherwise, your crontab entries can't be executed.
Password:
crontab: Unrecoverable error 2245.

What now?

Corinna writes:

> That's funny. Did you check error 2245?
> 
> "The password does not meet the password policy requirements. Check the
>  minimum password length, password complexity andpassword history
>  requirements."
> 
> The problem is that crontab validates the password you've entered by
> calling `NetUserChangePassword'. It tries to change your password
> from the password you've entered to the same password. For some
> reason your password doesn't actually meet some policy which is
> valid on your system. If you don't want that check you'll have to
> rebuild crontab.

Hmmm, i login with user 'news', 'it' has NO password (Passwd='') and
it works for 'news' or for other users i invented, only to use cron.
So, what is this policy good for???
Maybe I should delete my password too and use a blank one instead?

gph

-- 
=^..^=

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple