[OpenAFS] Cron jobs with access to AFS

Lukas Kubin kubin@opf.slu.cz
Wed, 18 Feb 2004 17:23:07 +0100


This is a cryptographically signed message in MIME format.

--------------ms080103000809050604000004
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

About two weeks ago I asked here for help with enabling long-running 
processes (web servers) with access to AFS space. Thanks to a great help 
of especially Russ Allbery we are now using Stanford's "k5start" utility 
to keep K5 tickets and AFS tokens.
Now I can't succeed doing the same with cron jobs. Ie. I need cron jobs 
to have access to folders with user like "cron.hostname" on their ACLs. 
I tried to do it the same way like I did with Apache -- it was runing 
Apache's init script with /usr/bin/pagsh and starting k5start before 
starting apache binary. I'm doing it same way with cron's system init 
script. Unsuccessfully. It doesn't propagate the access rights to its 
children.
I found, cron is using pam libraries. It may cause the troubles -- the 
difference from Apache-like solution. However, I have pam libraries for 
cron configured the same way I have them for eg. SSH, and it doesn't work.
Are you successful running cron jobs with AFS rights?
What way do you use?
How do you enable common users to run their own cron jobs with access to 
their AFS homes?

Thank you.

lukas

-- 
Lukas Kubin

phone: +420596398275
email: kubin@opf.slu.cz

Information centre
The School of Business Administration in Karvina
Silesian University in Opava
Czech Republic
http://www.opf.slu.cz

--------------ms080103000809050604000004
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGbDCC
AzIwggIaoAMCAQICAgDmMA0GCSqGSIb3DQEBBAUAMDIxCzAJBgNVBAYTAkNaMQ8wDQYDVQQK
EwZDRVNORVQxEjAQBgNVBAMTCUNFU05FVCBDQTAeFw0wMzExMTkxNDM4NTdaFw0wNDExMTgx
NDM4NTdaMEUxDzANBgNVBAoTBkNFU05FVDEcMBoGA1UEChMTU2lsZXNpYW4gVW5pdmVyc2l0
eTEUMBIGA1UEAxM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