X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Date: Tue, 13 Jan 2009 16:49:17 -0800 From: Gary Johnson To: Cygwin List Subject: Re: fetchmail pops up console windows Message-ID: <20090114004917.GC688@KCJs-Computer> Mail-Followup-To: Cygwin List References: <7zejb5f93k DOT fsf AT vzell-de DOT de DOT oracle DOT com> <20090113072308 DOT GF2424 AT KCJs-Computer> <20090113143134 DOT GA4352 AT tishler DOT net> <20090113175536 DOT GA3488 AT KCJs-Computer> <20090113190614 DOT GA7028 AT tishler DOT net> <20090113220427 DOT GA2344 AT KCJs-Computer> <496D11EB DOT 8050704 AT cygwin DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <496D11EB.8050704@cygwin.com> User-Agent: Mutt/1.4.2.2i X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam 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/