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 X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: seeking crontab permissions workaround Date: Tue, 14 May 2002 13:57:48 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Harig, Mark A." To: "Jason Travis" Cc: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g4EHxBr19034 1. Is there a reason why you're not using the latest version of Cygwin (1.3.10)? 2. Have you read /usr/doc/Cygwin/cron.README? 3. What version of the Cygwin cron package do you have installed? As of 3.0.1-6 (that is, the sixth Cygwin release of 3.0.1), Cygwin includes a post-installation script (/etc/postinstall/cron.sh.done) that creates and sets the permissions of /var/cron and /var/cron/tabs to the appropriate values. 4. You shouldn't need to set the permissions via Windows Explorer. You might try the following: a. Save your crontabs in some directory other than /var/cron b. Delete the directory tree /var/cron c. Run /etc/postinstall/cron.sh.done at your shell prompt d. $ crontab -e # edit your blank crontab to make it identical to your saved crontab 5. If you are using NTFS, you'll likely want to set CYGWIN=ntsec etc... See http://cygwin.com/cygwin-ug-net/highlights.html#OV-HI-PERM http://cygwin.com/cygwin-ug-net/ntsec.html http://cygwin.com/cygwin-ug-net/using-cygwinenv.html > -----Original Message----- > From: Jason Travis [mailto:jason DOT travis AT pervigil DOT com] > Sent: Monday, May 13, 2002 5:43 PM > To: cygwin AT cygwin DOT com > Subject: Fw: seeking crontab permissions workaround > > > > Hello. I have installed Cygwin 1.3.9 onto a Win32 box and > have discovered > that > > when one used the command: > > > > cygrunsrv -I cron -d "Cygwin_CRON" -p /usr/sbin/cron -a '-D' -e > > "CYGWIN=ntsec" > > cygrunsrv -S cron > > > > to start the cron server instance we found that certain > permission issues > > arise. Specifically, the permissions for the ~/cron/tab directory > structure > > were such that even Administrators were unable to add > entries into cron. > > Our immediate solution was to perform the following > operations. However > we > > would like to know if there is a way that we could 1) not use the > > "CYGWIN=ntsec" command-line parameter which would then 2) > allow us to not > > have to perform the following operations in order to make > the directory > > structure ~/cron/tab accessable to various users. > > > > Below is our work around for making the ~/cron/tab > directory structure > > accessable to various users. > > > > Thank you in advance for your help and assistance. > > > > -Jason > > > > In Windows Explorer, change the directory (folder) to: > > ~\var\cron > > Right-click on the "Tabs" directory and go to "Properties": > > For Win2K: go to the: > > Security tab: > > > > Scroll down the list of Users and add "Administrator" > > > > Scroll down the list of Users and add "trendadm" > > > > - to add the Users > > Select the "Administrator" user under Name:, then check > "Full Control" > > [Allow] under Permissions: > > Select the "trendadm" user under Name:, then check "Full > Control" [Allow] > > under Permissions: > > > > > > For WinNT: go to the: > > Security tab: > > > > > > - to "One of more of the items selected is a > directory. Do you want > to > > replace the security information on all existing > subdirectories within: > > C\TREND\PerVigil\var\tabs?" > > > > Check both options of "Replace Permissions on > [Subdirectories | Existing > > Files] > > > > > > Scroll down the list of Users and add "Administrator" > > NOTE: Not "Administrators" > > > > Scroll down the list of Users and add "trendadm" > > > > Change Type of Access: to "Full Control" > > - to add the Users > > > > - to "Do you want to replace the security information on all > existing > > subdirectories within: C\TREND\PerVigil\var\tabs?" > > > > > > > -- > 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/ > > -- 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/