From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 5339 invoked from network); 6 Sep 2021 08:37:35 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 6 Sep 2021 08:37:35 -0000 Received: from mail-oi1-f170.google.com ([209.85.167.170]) by 4ess; Mon Sep 6 04:13:38 -0400 2021 Received: by mail-oi1-f170.google.com with SMTP id bi4so7938899oib.9 for <9front@9front.org>; Mon, 06 Sep 2021 01:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=NzHprglQQqvln1ix60oa8D3G9qXZnPjGNoycQlPtLTo=; b=YthetEU4cLd3u6ZaodNjwMjCweD++RX10fPqSlDNq429ziZhFec5QykbuMp+jv57YG DQdiFpOtyVJeIDo5hgvP+JFbxDCvwDvOHfx7xClWxH7azsXu905ZgUoejDcUxJCNFyQ9 SqsvdjFvwVdCfbsD+MT+C54zrGjuEiezJw6kFxJm3urOrcLBtjKhdr9zyPCAXuh1v3dl /yNqAht/ydgycbTljwNWVWq7jcd/4F7RnJJ+kDLHGf4Z4Ilj/5nPliYtrq59gy82he/S HGEOgr1BPIT8zoGk7Z2wZl2N/yCBxZqygojHAuemg7fEQSktL3tqMrIqPCh2GiLjRYD0 Gyfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=NzHprglQQqvln1ix60oa8D3G9qXZnPjGNoycQlPtLTo=; b=tF4YWVxa19eBW/dG416B3r2EIy6xi1ZACDWzy+lF60jJS9wS31yXYEsyYc9grL8SUh YZ8wC/883eh1ytfKh3ktaYKW3tuDPP2SieFQwtIQELuW5I2izOMJT7uf0wK2+j/KkL9O fpa7zBY3XzBZHIGnUN7JYJSBtgZsx85AH6z5Trf17BYJVYdS28B0vWrsbvB6dxKjlViB 2EXbRgUHHvbNOG6VDDy5oW3AZuMMKZKKdQQm8S8TQDM75oWGXCnNtJY+K84q68YcCcKW 0wZocaOiwn8978oI3QETTc906fs7eucjp4nLpQXsOfICCh0/29IKuCNu+1HHZyE96E+x E6sg== X-Gm-Message-State: AOAM531Q8gVd+CJ6LqCHaelTSZvffA0dNpKL7sJdXIMiKhGABpLKZrh+ e/g3l6wVC+moVbrXlO3SMdaKVz2cGRQ= X-Google-Smtp-Source: ABdhPJz9GO+Tft2bU8fnsspkxvj//5jRVdDVN45gOjHWkIa/PPqOJIziqYLJgN1FrQJYs4f++c6Y4w== X-Received: by 2002:a17:90a:19da:: with SMTP id 26mr12921375pjj.198.1630915514879; Mon, 06 Sep 2021 01:05:14 -0700 (PDT) Return-Path: Received: from mbook.local ([2402:6b00:7e7a:6200:40ad:b5f5:cca6:3c7f]) by smtp.gmail.com with ESMTPSA id g37sm8089500pgl.94.2021.09.06.01.05.13 for <9front@9front.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Sep 2021 01:05:14 -0700 (PDT) To: 9front@9front.org From: =?UTF-8?B?5pyJ5r6kIOWBpeayuw==?= Message-ID: <10cda02f-3e78-d8cd-6598-58e1cc2a9801@gmail.com> Date: Mon, 6 Sep 2021 17:05:15 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------D2792AC87E0C43084C009C5A" Content-Language: en-US List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: self-healing realtime storage rich-client method Subject: [9front] cron job Reply-To: 9front@9front.org Precedence: bulk This is a multi-part message in MIME format. --------------D2792AC87E0C43084C009C5A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hello all, I noticed what I donn't understand. Let alice be a user of a system hebe, and try an experiment on cron job. STEP 1. make /usr/alice/tmp/T that looks like: hebe# ls -dl /usr/alice/tmp/T d-rwxrwxrwx M 24 alice alice 0 Sep  3 01:00 /usr/alice/tmp/T hebe# STEP 2. make a rc script /usr/alice/bin/rc/touchtest: #!/bin/rc rfork e d=/usr/alice/tmp/T t=`{date -n} touch $d/$t STEP 3. make a cron job for alice on /cron/alice/cron such that: 0,10,20,30,40,50 * * * * local /usr/alice/bin/rc/touchtest STEP 4. observe files in /usr/alice/tmp/T and you can confirm, owner of created files is host owner, not alice. my case: hebe% cd /usr/alice/tmp hebe% ls -l T --rw-rw-rw- M 195329 arisawa alice 0 Sep  3 00:40 T/1630597201 --rw-rw-rw- M 195329 arisawa alice 0 Sep  3 00:50 T/1630597801 --rw-rw-rw- M 195329 arisawa alice 0 Sep  3 01:00 T/1630598401 hebe% where "arisawa" is the host owner of "hebe". Is this reasonable ? additional info: hebe# ps | grep cron arisawa         366    0:00   0:00      128K Sleep    cron hebe# Kenji Arisawa --------------D2792AC87E0C43084C009C5A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Hello all,

I noticed what I donn't understand.


Let alice be a user of a system hebe,
and try an experiment on cron job.

STEP 1.
make /usr/alice/tmp/T that looks like:
hebe# ls -dl /usr/alice/tmp/T
d-rwxrwxrwx M 24 alice alice 0 Sep  3 01:00 /usr/alice/tmp/T
hebe#

STEP 2.
make a rc script /usr/alice/bin/rc/touchtest:
#!/bin/rc
rfork e
d=/usr/alice/tmp/T
t=`{date -n}
touch $d/$t

STEP 3.
make a cron job for alice on /cron/alice/cron such that:
0,10,20,30,40,50 * * * * local /usr/alice/bin/rc/touchtest

STEP 4.
observe files in /usr/alice/tmp/T
and you can confirm, owner of created files is host owner, not alice.
my case:
hebe% cd /usr/alice/tmp
hebe% ls -l T
--rw-rw-rw- M 195329 arisawa alice 0 Sep  3 00:40 T/1630597201
--rw-rw-rw- M 195329 arisawa alice 0 Sep  3 00:50 T/1630597801
--rw-rw-rw- M 195329 arisawa alice 0 Sep  3 01:00 T/1630598401
hebe%

where "arisawa" is the host owner of "hebe".
Is this reasonable ?

additional info:
hebe# ps | grep cron
arisawa         366    0:00   0:00      128K Sleep    cron
hebe#

Kenji Arisawa

--------------D2792AC87E0C43084C009C5A--