Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <5.1.0.14.2.20010622011849.029745d8@imap.mscha.org> X-Sender: ml AT imap DOT mscha DOT org (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 22 Jun 2001 01:50:20 +0200 To: cygwin From: Michael Schaap Subject: Re: New on sources: cron-3.0.1-1 In-Reply-To: <20010621204325.B1830@cobold.toronto.redhat.com> References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20010619153026 DOT 03b7ed90 AT imap DOT mscha DOT org> <20010610120625 DOT D1144 AT cygbert DOT vinschen DOT de> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20010618121739 DOT 03a46dc0 AT imap DOT mscha DOT org> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20010619153026 DOT 03b7ed90 AT imap DOT mscha DOT org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_33005068==_" X-Virus-Scanned: at mscha.com by AMaViSd snapshot-20010407 (http://amavis.org/) --=====================_33005068==_ Content-Type: text/plain; charset="us-ascii"; format=flowed At 20:43 21-6-2001, Corinna Vinschen wrote: >Maybe, I missed something when porting. I'm currently in vacation >so that will take some time. I think you should interrupt your vacation to solve this problem RIGHT NOW! (Just kidding, of course. Enjoy your well deserved vacation.) In any case, I checked the source code, and crontab indeed tries to seteuid to ROOT_UID (= System). It looks like you added code to seteuid back to the original uid almost immediately afterwards. If you instead not seteuid at all, it seems to work fine. (Well, probably only for users with Administrator privileges, but that's better than requiring System privileges.) I've attached a patch for this change. - Michael --=====================_33005068==_ Content-Type: application/octet-stream; name="crontab_patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="crontab_patch" KioqIGNyb250YWIuYy5PUklHCVRodSBKdW4gIDcgMTk6MTI6MjggMjAwMQotLS0gY3JvbnRhYi5j CUZyaSBKdW4gMjIgMDE6Mzk6NDggMjAwMQoqKioqKioqKioqKioqKioKKioqIDEwOCwxMTQgKioq KgotLS0gMTA4LDExNiAtLS0tCiAgCXNldGxpbmVidWYoc3RkZXJyKTsKICAjZW5kaWYKICAJcGFy c2VfYXJncyhhcmdjLCBhcmd2KTsJCS8qIHNldHMgbWFueSBnbG9iYWxzLCBvcGVucyBhIGZpbGUg Ki8KKyAjaWZuZGVmIF9fQ1lHV0lOX18KICAJc2V0X2Nyb25fdWlkKCk7CisgI2VuZGlmCiAgCXNl dF9jcm9uX2N3ZCgpOwogIAlpZiAoIWFsbG93ZWQoVXNlcikpIHsKICAJCWZwcmludGYoc3RkZXJy LAoqKioqKioqKioqKioqKioKKioqIDEyMCwxMjggKioqKgogIAkJbG9nX2l0KFJlYWxVc2VyLCBQ aWQsICJBVVRIIiwgImNyb250YWIgY29tbWFuZCBub3QgYWxsb3dlZCIpOwogIAkJZXhpdChFUlJP Ul9FWElUKTsKICAJfQotICNpZmRlZiBfX0NZR1dJTl9fCi0gCXNldGV1aWQgKG9yaWdfdWlkKTsK LSAjZW5kaWYKICAJZXhpdHN0YXR1cyA9IE9LX0VYSVQ7CiAgCXN3aXRjaCAoT3B0aW9uKSB7CiAg CWNhc2Ugb3B0X2xpc3Q6CQlsaXN0X2NtZCgpOwotLS0gMTIyLDEyNyAtLS0tCg== --=====================_33005068==_ Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple --=====================_33005068==_--