Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 11 Apr 2003 11:02:24 -0700 From: Tim Gunter To: "Pierre A. Humblet" , cygwin AT cygwin DOT com Subject: Re: cron + network share(w/ full access?) Message-ID: <20030411180224.GA1712@TGUN> Reply-To: tim DOT gunter AT bioscrypt DOT com References: <20030411014720 DOT GA4240 AT TGUN> <20030411015650 DOT GA35059733 AT hpn5170x> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030411015650.GA35059733@hpn5170x> User-Agent: Mutt/1.4i On Thu, Apr 10, 2003 at 09:56:50PM -0400, Pierre A. Humblet wrote: > On Thu, Apr 10, 2003 at 06:47:20PM -0700, Tim Gunter wrote: > > > > 3) installing the cron service as a user that has access to > > the share. when i do this, cygrunsrv accepts the password that > > i give it, but when i start the service i get a "1069" failure > > to logon error. i'm pretty sure my passwd and group files are > > setup correctly as sshing to the cygwin machine works. > > > Does it have Logon As a Service privilege? > > Pierre how do i set the Logon as a service privilege? yesterday, i tried setting the username and password with "cygrunsrv -I cron -p /usr/sbin/cron -u user -w password -a '-D' -e "CYGWIN=ntsec"", and that gave me the 1069 error. today i tried changing the username and password in the windows services control panel. i am now getting a "1062" error and not a "1069" error. according to strace, it is now failing on a "seteuid32 uid: 18 myself->gid: 10513" doesn't this mean that it has uid 18 which is the system? isn't windows supposed to be changing to the user account first and then starting the cron service? the following is more of the strace output: 46 98986 [main] cron 2872 seteuid32: uid: 18 myself->gid: 10513 69 99055 [main] cron 2872 seteuid32: Process token not verified 1290 100345 [main] cron 2872 seterrno_from_win_error: /netrel/src/cygwin-1.3.22-1/winsup/cygwin/sec_helper.cc:340 windows error 1300 112 100457 [main] cron 2872 geterrno_from_win_error: unknown windows error 1300, setting errno to 13 40 100497 [main] cron 2872 set_process_privilege: -1 = set_process_privilege (SeCreateTokenPrivilege, 1) 48 100545 [main] cron 2872 create_token: -1 = create_token () 63 100608 [main] cron 2872 seteuid32: create token failed, try subauthentication. 590 101198 [main] cron 2872 seterrno_from_win_error: /netrel/src/cygwin-1.3.22-1/winsup/cygwin/sec_helper.cc:340 windows error 1300 82 101280 [main] cron 2872 geterrno_from_win_error: unknown windows error 1300, setting errno to 13 39 101319 [main] cron 2872 set_process_privilege: -1 = set_process_privilege (SeTcbPrivilege, 1) any other ideas? also why doesn't mounting the network share as system solve my problem? and how do i give the network share "full access" so that the system account can access it(i thought giving everyone full control in the sharing permissions dialog would accomplish this)? thanks for the help --tim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/