X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=oRPjEHMDlFqVg9GwS2uktaTCnPbZN 7G8gVsh2YW060pwG36lEtXOJukCtt07O/gwuK4mWaU1108YklMpGZpGOlYrCU2W6 y7mD93Yrv9hnPGUIXE4Adc1Dz72hSiGbTy8ykD7P02par1eq0F892NfamzBUTn0E Ujpz/X2ENmJqL4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=uT7v8/vYcmGHcLa2uFjDD1FpkgA=; b=PxC o3JFmn3S5zDF3/4ji1rFy1QxPUpq+kTKqSd3rAKNG5xpcprBgNjZydAOquPK4Crt h0fD7HvZuduUAOj3FOgvhRR8JwVaRfk8ToeHS6dEUWr/Mf6kVpRXIL27C1NSX8VB yuj/+ECYA7hXDbA91WD2gNolqndxJdtGco52uijc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_99,BAYES_999,FILL_THIS_FORM_FRAUD_PHISH,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,LOTS_OF_MONEY,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FILL_THIS_FORM_SHORT,T_MONEY_PERCENT autolearn=no version=3.3.2 spammy=msc, Temp, Intel64, intel64 X-HELO: mail-vk0-f49.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=YrzP32WCO6+Wg5pbs7b6Fj3ImfQPXUnrXRWLyBB/H9U=; b=VRlxmvGgII2L57yfz+SV65EQwLUZXgitlpYQa/lryGrKlqF8i0Np2Ve2i8vpM9Q5+T EKQNgQTtQdsvZYLrDubeXYSuDzVoRttNLSWZrOdeTgavX/vKcfpaA6TBSOxB36JHm0e/ lzCV21KV6/Jei27xL/Wz/l5cXKIZordYqdra1FO3mstBnkp6BrPBXNPWdMfX4ItcFuaB LJyDIGXJmr7OhMMMZA6RrkDAIAhUbcQp12NTkvQ1xx6Pz9BivwvmQAogf1gEVLJc9dqq giwutm7ItuLLJ65x2gbPtevEn5GPTdBUb7HvoJ6EoI1vMwEHqfo+7oMmF/xsWc0Og/BP MhYw== X-Gm-Message-State: AG10YORHEQjUQQVbWbUdIHejSh9bai3QZbMfb6geq5l8lRwxIZoEyTfElKPGYcoNBOPAIpo+cQPhU8pIb1hLEw== X-Received: by 10.31.5.9 with SMTP id 9mr23572050vkf.109.1456167425590; Mon, 22 Feb 2016 10:57:05 -0800 (PST) MIME-Version: 1.0 From: Andrew Clark Date: Mon, 22 Feb 2016 13:56:25 -0500 Message-ID: Subject: Script to initialize cron To: cygwin AT cygwin DOT com Content-Type: multipart/mixed; boundary=001a1143f272230560052c606608 X-IsSubscribed: yes --001a1143f272230560052c606608 Content-Type: text/plain; charset=UTF-8 Hi all, I created an init script for cron I run Mondays when I reboot my computer. It's just a wrapper for cron-config that calls the latter with a random password: # these privileges are missing on reboot # no luck in searching for solutions as of 8/10/2015 for priv in SeAssignPrimaryTokenPrivilege SeCreateTokenPrivilege SeServiceLogonRight; do if ! editrights -lu cyg_server | grep "$priv" > /dev/null; then echo "Adding $priv..." editrights -au cyg_server "$priv" fi done declare CYG_SERVER_PASSWD CYG_SERVER_PASSWD="$(rstring 12)" #printf "Using password: %s\n" "$(printf "*%.0s" $(seq 1 ${#CYG_SERVER_PASSWD}))" echo "Using password: $CYG_SERVER_PASSWD" cron-config <