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: cron + network share(w/ full access?)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]