This is the mail archive of the cygwin@cygwin.com 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: crontab error


I think the \r is being added by Outlook Express when it attaches the file.
An "od -c /etc/group" shows on my end that the last character of the file is
a \n.

Crontab works fine now. Has for some time. I think the problem with that was
fixed when I regenerated my group and passwd files.

I've played around a lot today with different owners and groups for the
cron.exe file and the group and passed files. Nothing seems to get this
thing working other than running cron manually at the shell prompt. It works
fine then, only I need to keep the shell window open to keep it running.

Looks like the isscha that owns the group and passwd files is the domain
one. The one who owns cron.exe however is the local user. I changed the
local one in the passwd file to Xisscha and did a "chown isscha
/usr/sbin/cron.exe". I still have the same symptoms. It runs fine from the
shell prompt but won't start as a service.

----- Original Message ----- 
From: "Larry Hall" <cygwin@cygwin.com>
To: "Chuck Hamilton" <chuckh@softhome.net>
Cc: <cygwin@cygwin.com>
Sent: Friday, May 30, 2003 12:38 PM
Subject: Re: crontab error


> OK, I'll drop my mantra about mkgroup_ indicating these files are out of
> date.  I found I had the same group setting on one of my machines, my
> files are current, and cron starts fine.  So this group ID isn't a
problem.
> Indeed, it looks like it's used as the domain's version of the local
> "None" group (GID 10513).  So if your passwd and group files are up to
> date but still have this group, that's OK.
>
> But let's talk about your files.  Your /etc/group file shows it ends with
> a \r here.  This seems to be a common thread of everyone who's having
> problems.  Check this and get rid of it.  This files should be binary
> format.  Also, look at the output of getfacl on the files you list below.
> You may also want to change the name of your local or domain version of
> 'isscha' in your passwd file.  This would help you see more clearly
> which one of these two personna's actually have specific file ownerships.
>
> How about crontab now?  Does it run?  Does it create a crontab file for
> you?  If not, what does /var/cron look like.  What are the permissions
> here and for any files/directories under it?
>
> If you're still having problems, you should consider documenting all
> the steps you took to install and run cron.  You may want to consider
> running cron directly from the command line as the SYSTEM user to see
> if that's useful, in addition to other debugging steps.
>
> Larry
>
> Chuck Hamilton wrote:
> > I have no "Domain Users" group so I set it to "Users". Still fails to
start.
> > I also tried "Administrators". That didn't work either. I am attaching
both
> > the passwd and group files, as well as listing their permissions.
> >
> > -rw-rw-rw-    1 isscha   mkgroup_      373 May 29 04:44 /etc/group
> > -rw-rw-rw-    1 isscha   mkgroup_     1347 May 29 04:44 /etc/passwd
> > -rwxrwxrwx    1 Administ Users       32256 Apr 15 11:16
/usr/sbin/cron.exe
> > $ id
> > $ id
> > uid=11624(isscha) gid=10513(mkgroup_l_d)
> > groups=544(Administrators),545(Users),1009(ORA_DBA),10513(mkgroup_l_d)
> >
> > ----- Original Message ----- 
> > From: "Larry Hall" <cygwin@cygwin.com>
> > To: "Chuck Hamilton" <chuckh@softhome.net>
> > Cc: <cygwin@cygwin.com>
> > Sent: Thursday, May 29, 2003 12:48 PM
> > Subject: Re: crontab error
> >
> >
> >
> >>For group, try 'Users' or 'Domain Users', whichever is appropriate.
> >>The user looks fine.
> >>
> >>Larry
> >>
> >>Chuck Hamilton wrote:
> >>
> >>>Been there and done that. It doesn't change the ownership of any of the
> >>>command though. Do I need run a chown on the cron command? If so what
> >
> > should
> >
> >>>be owner and group be?
> >>>
> >>>----- Original Message ----- 
> >>>From: "Larry Hall (RFK Partners, Inc.)" <lhall@rfk.com>
> >>>To: "Chuck Hamilton" <chuckh@softhome.net>
> >>>Cc: <cygwin@cygwin.com>
> >>>Sent: Thursday, May 29, 2003 8:08 AM
> >>>Subject: Re: crontab error
> >>>
> >>>
> >>>
> >>>
> >>>>Chuck Hamilton wrote:
> >>>>
> >>>>
> >>>>>It already the permissions set to 777.
> >>>>>
> >>>>>-rwxrwxrwx    1 Administ mkgroup_    32256 Apr 15 11:16 cron*
> >>>>
> >>>>                           ^^^^^^^^
> >>>>Ahem.  Here's the problem.  Your /etc/group file is not current.
> >>>>Rerun mkgroup with the appropriate flags.  You may want to do this
> >>>>for /etc/passwd too.  If one's not current, more than likely, the
> >>>>other isn't either.
> >>>>
> >>>>
> >>>>
> >>>>>I did try changing the user the service runs as but it failed with a
> >>>
> >>>logon
> >>>
> >>>
> >>>>>error so I changed it back to LocalSystem. It seems like it's got to
be
> >>>
> >>>some
> >>>
> >>>
> >>>>>kind of Win2k permissions thing. If I run cron from a cygwin session,
> >
> > it
> >
> >>>>>works fine. If I run it as a service it fails to start. I've tried
> >>>
> >>>adding
> >>>
> >>>
> >>>>>the cygwin /usr/bin and /usr/lib directories to my Win2k path but
that
> >>>>>didn't help either (though now I can run cygwin commands from a DOS
> >>>
> >>>prompt
> >>>
> >>>
> >>>>>if I want).
> >>>>
> >>>>
> >>>>
> >>>>-- 
> >>>>Larry Hall                              http://www.rfk.com
> >>>>RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> >>>>838 Washington Street                   (508) 893-9889 - FAX
> >>>>Holliston, MA 01746
> >>>>
> >>>
> >>>
> >>>
> >>>--
> >>>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/
> >>>
> >>>
> >>
> >>
> >>-- 
> >>Larry Hall                              http://www.rfk.com
> >>RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> >>838 Washington Street                   (508) 893-9889 - FAX
> >>Holliston, MA 01746
> >>
> >>
> >>
> >>------------------------------------------------------------------------
> >>
> >>--
> >>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/
>
>
> -- 
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 838 Washington Street                   (508) 893-9889 - FAX
> Holliston, MA 01746
>
>
> #################################################################
> #################################################################
> #################################################################
> #####
> #####
> #####
> #################################################################
> #################################################################
> #################################################################


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