Mail Archives: cygwin/2009/01/13/19:50:02
On 2009-01-13, Larry Hall (Cygwin) wrote:
> Gary Johnson wrote:
> >On 2009-01-13, Jason Tishler wrote:
> >>Gary,
> >>
> >>On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:
> >>>On 2009-01-13, Jason Tishler wrote:
> >>>>FWIW, I don't have this problem when running fetchmail as a service.
> >>>I saw that in an earlier post and tried to follow the instructions in
> >>>/usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:
> >>>
> >>>[snip]
> >>>
> >>> $ cygrunsrv -S fetchmail
> >>> cygrunsrv: Error starting a service: StartService: Win32 error 1069:
> >>> The service did not start due to a logon failure.
> >>>
> >>>I have both cron and sshd running as services, so that much works,
> >>>but they may be running as the system user (whatever it's called).
> >>>I don't know how to diagnose this sort of failure.
> >>Did you heed the following from the README?
> >>
> >> o the $USERDOMAIN\\$USERNAME account must have the "Log on as a
> >> service" user right for Cygwin fetchmail to start as a NT service
> >
> >I heeded it in the sense that I read it and understood that it might
> >be the problem. I did go searching in the Control Panel for likely
> >utilities, but I couldn't find anything in User Accounts or anywhere
> >else that would let me set user rights or that even told me what
> >they were. I did not search Windows Help and Support. That sort of
> >cluelessness was meant to be implicit in the statement, "I don't
> >know how to diagnose this sort of failure," but I suppose I should
> >have been more clear.
> >
> >So how does one set that right?
>
> '/usr/share/csih/cygwin-service-installation-helper.sh' has this:
>
> editrights -u "${user}" -t SeServiceLogonRight
>
> Try that, substituting the appropriate user for your situation and
> Windows version.
I tried this:
$ editrights -u "$USER" -l
SeServiceLogonRight
SeBatchLogonRight
as well as this:
$ editrights -u "$USER" -t SeServiceLogonRight
$ echo $?
0
After executing those tests, I again ran the same "cygrunsrv
--install fetchmail ..." and "cygrunsrv -S fetchmail" commands and
again got the same "Win32 error 1069".
FWIW, my $USER name has a space in it, which occasionally causes
problems with some programs. This PC was set up a number of years
ago and at the time I didn't understand the implications of giving
Windows my full name as a user name.
Also, as I wrote elsewhere in this thread, I do have a solution to
the pop-up console window problem, so while it would be nice to
have a solution to this fetchmail-as-a-service problem as well, it's
not all that important.
If desired, I can send the output of "cygcheck -srv" to the list,
but I didn't want to impose a 32K message on everyone otherwise.
Regards,
Gary
--
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 -