public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ cron/crontab ] someone using cron on cygwin?
@ 2001-05-03 17:38 Gerrit P. Haase
  2001-05-04  1:19 ` Corinna Vinschen
  2001-05-04 22:46 ` Adrian Phillips
  0 siblings, 2 replies; 10+ messages in thread
From: Gerrit P. Haase @ 2001-05-03 17:38 UTC (permalink / raw)
  To: cygwin

Dear Corinna,

$ crontab
crontab: can't obtain passwd entry.

I don't know how to use crontab.

Is it possible to create a crontabfile manually?
How is the syntax?

There is a manfile: crontab.1 
and one called: crontab.5

Which one is called if i type: man crontab?
How to call the other one?

gph

-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ cron/crontab ] someone using cron on cygwin?
  2001-05-03 17:38 [ cron/crontab ] someone using cron on cygwin? Gerrit P. Haase
@ 2001-05-04  1:19 ` Corinna Vinschen
  2001-05-04  8:13   ` Dr. Volker Zell
  2001-05-04 14:47   ` Gerrit P. Haase
  2001-05-04 22:46 ` Adrian Phillips
  1 sibling, 2 replies; 10+ messages in thread
From: Corinna Vinschen @ 2001-05-04  1:19 UTC (permalink / raw)
  To: cygwin

On Fri, May 04, 2001 at 02:38:47AM +0200, Gerrit P. Haase wrote:
> Dear Corinna,
> 
> $ crontab
> crontab: can't obtain passwd entry.

You don't have a /etc/passwd entry for your user account.
crontab tries to get your passwd entry by calling

	struct passwd *pw = getpwuid (geteuid ());

So check your user id (/bin/id) and add an entry for your
user id to /etc/passwd. Or, even better, call mkpasswd to
recreate /etc/passwd.

> I don't know how to use crontab.
> 
> Is it possible to create a crontabfile manually?
> How is the syntax?

As in U*X with extensions borrowed by Paul Vixies crontab version
used under Linux. But this will not help you since cron needs
your password which is asked for by crontab and remembered in a
encrypted password file only used by cron and crontab.

As soon as you have used crontab for the first time and your
password is remembered, you can change your crontab file
by yourself if you want. You will find it under /var/cron
as "crontab.<username>"

> There is a manfile: crontab.1 
> and one called: crontab.5
> 
> Which one is called if i type: man crontab?

crontab.1

> How to call the other one?

man 5 crontab

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ cron/crontab ] someone using cron on cygwin?
  2001-05-04  1:19 ` Corinna Vinschen
@ 2001-05-04  8:13   ` Dr. Volker Zell
  2001-05-04 11:29     ` Corinna Vinschen
  2001-05-04 14:47   ` Gerrit P. Haase
  1 sibling, 1 reply; 10+ messages in thread
From: Dr. Volker Zell @ 2001-05-04  8:13 UTC (permalink / raw)
  To: Corinna Vinschen

>>>>> "Corinna" == Corinna Vinschen <cygwin@cygwin.com> writes:

    Corinna> On Fri, May 04, 2001 at 02:38:47AM +0200, Gerrit P. Haase wrote:
    >> Dear Corinna,
    >> 
    >> $ crontab
    >> crontab: can't obtain passwd entry.

    Corinna> You don't have a /etc/passwd entry for your user account.
    Corinna> crontab tries to get your passwd entry by calling

    Corinna> 	struct passwd *pw = getpwuid (geteuid ());

    Corinna> So check your user id (/bin/id) and add an entry for your
    Corinna> user id to /etc/passwd. Or, even better, call mkpasswd to
    Corinna> recreate /etc/passwd.

Corinna I get the following error when using your crontab:

vzell@VZELL /tmp
[502]> crontab
You must enter your Windows password.
Otherwise, your crontab entries can't be executed.
Password:
crontab: Unrecoverable error 2245.


What's going on here ??

Ciao
  Volker


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ cron/crontab ] someone using cron on cygwin?
  2001-05-04  8:13   ` Dr. Volker Zell
@ 2001-05-04 11:29     ` Corinna Vinschen
  0 siblings, 0 replies; 10+ messages in thread
From: Corinna Vinschen @ 2001-05-04 11:29 UTC (permalink / raw)
  To: Corinna Vinschen

On Fri, May 04, 2001 at 05:14:04PM +0200, Dr. Volker Zell wrote:
> >>>>> "Corinna" == Corinna Vinschen <cygwin@cygwin.com> writes:
> 
>     Corinna> On Fri, May 04, 2001 at 02:38:47AM +0200, Gerrit P. Haase wrote:
>     >> Dear Corinna,
>     >> 
>     >> $ crontab
>     >> crontab: can't obtain passwd entry.
> 
>     Corinna> You don't have a /etc/passwd entry for your user account.
>     Corinna> crontab tries to get your passwd entry by calling
> 
>     Corinna> 	struct passwd *pw = getpwuid (geteuid ());
> 
>     Corinna> So check your user id (/bin/id) and add an entry for your
>     Corinna> user id to /etc/passwd. Or, even better, call mkpasswd to
>     Corinna> recreate /etc/passwd.
> 
> Corinna I get the following error when using your crontab:
> 
> vzell@VZELL /tmp
> [502]> crontab
> You must enter your Windows password.
> Otherwise, your crontab entries can't be executed.
> Password:
> crontab: Unrecoverable error 2245.

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.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ cron/crontab ] someone using cron on cygwin?
  2001-05-04  1:19 ` Corinna Vinschen
  2001-05-04  8:13   ` Dr. Volker Zell
@ 2001-05-04 14:47   ` Gerrit P. Haase
  2001-05-06 11:07     ` Corinna Vinschen
  1 sibling, 1 reply; 10+ messages in thread
From: Gerrit P. Haase @ 2001-05-04 14:47 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen schrieb am 2001-05-04, 10:19:

> On Fri, May 04, 2001 at 02:38:47AM +0200, Gerrit P. Haase wrote:
> > Dear Corinna,
> > 
> > $ crontab
> > crontab: can't obtain passwd entry.
> 
> You don't have a /etc/passwd entry for your user account.
> crontab tries to get your passwd entry by calling
> 
> 	struct passwd *pw = getpwuid (geteuid ());
> 
> So check your user id (/bin/id) and add an entry for your
> user id to /etc/passwd. Or, even better, call mkpasswd to
> recreate /etc/passwd.
> 

I recreated it a dozen times:

siebenschlaefer@LORELEY ~
$ crontab
crontab: can't obtain passwd entry.

siebenschlaefer@LORELEY ~
$ mkpasswd -l > /etc/passwd

siebenschlaefer@LORELEY ~
$ crontab
crontab: can't obtain passwd entry.

from passwd:
Siebenschlaefer::500:513:Gerrit Haase,S-1-5-21-2027841136-734554988-996637233-500:/home/siebenschlaefer:/bin/bash

siebenschlaefer@LORELEY ~
$ id
uid=500(siebenschlaefer) gid=544(Administratoren) groups=544(Administratoren),544(Administratoren)

gph

-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ cron/crontab ] someone using cron on cygwin?
  2001-05-03 17:38 [ cron/crontab ] someone using cron on cygwin? Gerrit P. Haase
  2001-05-04  1:19 ` Corinna Vinschen
@ 2001-05-04 22:46 ` Adrian Phillips
  1 sibling, 0 replies; 10+ messages in thread
From: Adrian Phillips @ 2001-05-04 22:46 UTC (permalink / raw)
  To: gerrit.haase; +Cc: cygwin

>>>>> "Gerrit" == Gerrit P Haase <gerrit.haase@t-online.de> writes:

[Disclaimer: I'm no cygwin expert so some of this may be innaccurate]

    Gerrit> Dear Corinna, $ crontab crontab: can't obtain passwd
    Gerrit> entry.

Possibly because your /etc/passwd doesn't exist or has no entry for
the user you are logged in as.

    Gerrit> I don't know how to use crontab.

It depends upon the cron daemon which I don't believe is standard with
cygwin (but I meybe wrong). I suggest you search the archives for cron
to gain more info.

    Gerrit> Is it possible to create a crontabfile manually?  How is
    Gerrit> the syntax?

man 5 crontab describes the crontab format. man 1 crontab describes
how to install your crontab in the system so that cron will use it. Again this is for a Unix system, for cygwin, check the archives.

Sincerely,

Adrian Phillips

-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ cron/crontab ] someone using cron on cygwin?
  2001-05-04 14:47   ` Gerrit P. Haase
@ 2001-05-06 11:07     ` Corinna Vinschen
  2001-05-06 23:34       ` Gerrit P. Haase
  0 siblings, 1 reply; 10+ messages in thread
From: Corinna Vinschen @ 2001-05-06 11:07 UTC (permalink / raw)
  To: cygwin

On Fri, May 04, 2001 at 11:47:39PM +0200, Gerrit P. Haase wrote:
> Corinna Vinschen schrieb am 2001-05-04, 10:19:
> 
> > On Fri, May 04, 2001 at 02:38:47AM +0200, Gerrit P. Haase wrote:
> > > Dear Corinna,
> > > 
> > > $ crontab
> > > crontab: can't obtain passwd entry.
> > 
> > You don't have a /etc/passwd entry for your user account.
> > crontab tries to get your passwd entry by calling
> > 
> > 	struct passwd *pw = getpwuid (geteuid ());
> > 
> > So check your user id (/bin/id) and add an entry for your
> > user id to /etc/passwd. Or, even better, call mkpasswd to
> > recreate /etc/passwd.
> > 
> 
> I recreated it a dozen times:
> 
> siebenschlaefer@LORELEY ~
> $ crontab
> crontab: can't obtain passwd entry.
> 
> siebenschlaefer@LORELEY ~
> $ mkpasswd -l > /etc/passwd
> 
> siebenschlaefer@LORELEY ~
> $ crontab
> crontab: can't obtain passwd entry.
> 
> from passwd:
> Siebenschlaefer::500:513:Gerrit Haase,S-1-5-21-2027841136-734554988-996637233-500:/home/siebenschlaefer:/bin/bash
> 
> siebenschlaefer@LORELEY ~
> $ id
> uid=500(siebenschlaefer) gid=544(Administratoren) groups=544(Administratoren),544(Administratoren)

You will have to debug that.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ cron/crontab ] someone using cron on cygwin?
  2001-05-06 11:07     ` Corinna Vinschen
@ 2001-05-06 23:34       ` Gerrit P. Haase
  2001-05-07  1:07         ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: Gerrit P. Haase @ 2001-05-06 23:34 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna Vinschen schrieb am 2001-05-06, 20:06:

Hi Corinna,

> > I recreated it a dozen times:
> > 
> > siebenschlaefer@LORELEY ~
> > $ crontab
> > crontab: can't obtain passwd entry.
> > 
> > siebenschlaefer@LORELEY ~
> > $ mkpasswd -l > /etc/passwd
> > 
> > siebenschlaefer@LORELEY ~
> > $ crontab
> > crontab: can't obtain passwd entry.
> > 
> > from passwd:
> > Siebenschlaefer::500:513:Gerrit Haase,S-1-5-21-2027841136-734554988-996637233-500:/home/siebenschlaefer:/bin/bash
> > 
> > siebenschlaefer@LORELEY ~
> > $ id
> > uid=500(siebenschlaefer) gid=544(Administratoren) groups=544(Administratoren),544(Administratoren)
> 
> You will have to debug that.
> 
> Corinna
> 

It works now if logged in as a user (news), but only if invoked:
 $ crontab -e

in editor mode.

Another question, invoked by cron, the application starts up and
i get a pid which i am able to see in 'taskmanager' but if I call
ps at commandline, it is not shown?
Is that a known issue?

gph


-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ cron/crontab ] someone using cron on cygwin?
  2001-05-06 23:34       ` Gerrit P. Haase
@ 2001-05-07  1:07         ` Corinna Vinschen
  0 siblings, 0 replies; 10+ messages in thread
From: Corinna Vinschen @ 2001-05-07  1:07 UTC (permalink / raw)
  To: cygwin

On Mon, May 07, 2001 at 08:35:02AM +0200, Gerrit P. Haase wrote:
> It works now if logged in as a user (news), but only if invoked:
>  $ crontab -e
> 
> in editor mode.
> 
> Another question, invoked by cron, the application starts up and
> i get a pid which i am able to see in 'taskmanager' but if I call
> ps at commandline, it is not shown?
> Is that a known issue?

Try `ps -e'

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [ cron/crontab ] someone using cron on cygwin?
@ 2001-05-07  7:06 David Larsson (ERA)
  0 siblings, 0 replies; 10+ messages in thread
From: David Larsson (ERA) @ 2001-05-07  7:06 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

I had the same problem as vzell, I got the 2245 Unrecoverable error when running crontab. But my problems didn't stop with that, I can't start cron as a W2k service despite that I'm using srvany and have made the reg hacks specified by a posting on Windows 2000 magazine. 

I can start cron from within cygwin though but now I got "crontab: Unrecoverable error 1351" when I try to start it.

Does anyone have the same experience or better yet, a solution? That would be much appreciated.

Thanks,

///David



-----Original Message-----
From: Corinna Vinschen [ mailto:cygwin@cygwin.com ]
Sent: den 4 maj 2001 20:30
To: Corinna Vinschen
Subject: Re: [ cron/crontab ] someone using cron on cygwin?


On Fri, May 04, 2001 at 05:14:04PM +0200, Dr. Volker Zell wrote:
> >>>>> "Corinna" == Corinna Vinschen <cygwin@cygwin.com> writes:
> 
>     Corinna> On Fri, May 04, 2001 at 02:38:47AM +0200, Gerrit P. Haase wrote:
>     >> Dear Corinna,
>     >> 
>     >> $ crontab
>     >> crontab: can't obtain passwd entry.
> 
>     Corinna> You don't have a /etc/passwd entry for your user account.
>     Corinna> crontab tries to get your passwd entry by calling
> 
>     Corinna> 	struct passwd *pw = getpwuid (geteuid ());
> 
>     Corinna> So check your user id (/bin/id) and add an entry for your
>     Corinna> user id to /etc/passwd. Or, even better, call mkpasswd to
>     Corinna> recreate /etc/passwd.
> 
> Corinna I get the following error when using your crontab:
> 
> vzell@VZELL /tmp
> [502]> crontab
> You must enter your Windows password.
> Otherwise, your crontab entries can't be executed.
> Password:
> crontab: Unrecoverable error 2245.

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.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-05-07  7:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-03 17:38 [ cron/crontab ] someone using cron on cygwin? Gerrit P. Haase
2001-05-04  1:19 ` Corinna Vinschen
2001-05-04  8:13   ` Dr. Volker Zell
2001-05-04 11:29     ` Corinna Vinschen
2001-05-04 14:47   ` Gerrit P. Haase
2001-05-06 11:07     ` Corinna Vinschen
2001-05-06 23:34       ` Gerrit P. Haase
2001-05-07  1:07         ` Corinna Vinschen
2001-05-04 22:46 ` Adrian Phillips
2001-05-07  7:06 David Larsson (ERA)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).