From owner-freebsd-questions Sat Nov 10 11:27: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pr0n.kutulu.org (pr0n.kutulu.org [151.196.107.157]) by hub.freebsd.org (Postfix) with ESMTP id 2EB4237B405 for ; Sat, 10 Nov 2001 11:27:01 -0800 (PST) Received: from cc191573g (kutulu@cc191573-g.longhill1.md.home.com [24.37.104.136]) by pr0n.kutulu.org (8.11.6/8.11.6) with SMTP id fAAJQZk25603; Sat, 10 Nov 2001 14:26:35 -0500 (EST) (envelope-from kutulu@kutulu.org) Message-ID: <005201c16a1c$f4e1ecc0$88682518@longhill1.md.home.com> From: "Kutulu" To: "Alan Gerber" , References: Subject: Re: Run program as different user Date: Sat, 10 Nov 2001 14:21:47 -0500 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=SHA1; protocol="application/x-pkcs7-signature"; boundary="----=_NextPart_000_004E_01C169F3.084ABE10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_004E_01C169F3.084ABE10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit From: "Alan Gerber" > I've tried both methods given to me so far (cron job and su). sudo, from > what I have heard about it, does not apply here because I do not want to run > the program as root. (If sudo does allow you to run programs as non-root > users, then please correct me and I'll look into it.) It does.. from 'man sudo' sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. The man page for sudoers(5) goes into (a lot of) detail on configuring sudo to allow users to run programs as other users, without prompting for passwords, etc. > The cron job mails an > "Abort trap" error to the user I am running the job as. Anybody know what > this error means/how to correct it? The error message means the process received an ABRT signal from somewhere. It is more likely the fault of the application, not the cron daemon. Can you, from an interactive shell, su to the user in question and run the exact command line you entered into the crontab? What program are you trying to run? Does anything odd show up in the syslogs at the time the cron is scheduled to run your job? --K ------=_NextPart_000_004E_01C169F3.084ABE10 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII3jCCAnww ggHloAMCAQICAwW08DANBgkqhkiG9w0BAQIFADCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdl c3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsT FENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAw MC44LjMwMB4XDTAxMDkyMjE0MDAxOFoXDTAyMDkyMjE0MDAxOFowQzEfMB0GA1UEAxMWVGhhd3Rl IEZyZWVtYWlsIE1lbWJlcjEgMB4GCSqGSIb3DQEJARYRa3V0dWx1QGt1dHVsdS5vcmcwgZ8wDQYJ KoZIhvcNAQEBBQADgY0AMIGJAoGBALuDdLgCHJxCJguCs8IK+K4Fic2MZAbW1CVoIPV1qU/ez9TI z5Yv4XRDskBUZxFogDSDdYPEGCbNB8Tp7TjwD+n2zAuIuapRMySbs7zQYef/fBd01rqRBmi/A9/v bPOuKHqOAvbMqWMH2D9hjCH2d3R8cJIoCglhEtyyxm9rOee5AgMBAAGjLjAsMBwGA1UdEQQVMBOB EWt1dHVsdUBrdXR1bHUub3JnMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQECBQADgYEAlJ1wNCdT DYnUEQV9rBeSbJ8lJ1yxSHxwosdb8UzkD3H6AfRJBQQQ/qAIWh9ODW2UjMH5el3RgaZAbPUheG56 bPcKEdb+pGInFz8Rf0Baent6D3OLrvVT1wrJ+qeYuf61DHIAuorD/ZFeN8v3wLty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6AKd5Jr9E/Sm2Xyx +NxfIyYJkYBz0BQb3kOpgyXy5pwvFcr+pquKB3WLDN1RhGvk+NHOd6KBMYIB/jCCAfoCAQEwgZow gZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93 bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UE AxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMAIDBbTwMAkGBSsOAwIaBQCggbowGAYJ KoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDExMTEwMTkyMTQ3WjAjBgkq hkiG9w0BCQQxFgQUrz0yRld+gdS+vQdUUnZqK8ERzo8wWwYJKoZIhvcNAQkPMU4wTDAKBggqhkiG 9w0DBzAOBggqhkiG9w0DAgICAIAwDQYIKoZIhvcNAwICAUAwBwYFKw4DAgcwDQYIKoZIhvcNAwIC ASgwBwYFKw4DAh0wDQYJKoZIhvcNAQEBBQAEgYAb4FkDNfDDbzftXocSIn+wkfqkPrRz9hZYMiKc hw22kP1VUGk8Sv0vShwB+6e+Ont22Z2dvj42DipqOzHH1BL5gBweIQKuJqi02acka2kcPuxcgcy+ AKMPFMhqXQbKJnmrzuYbif1qo+KFzDjZNx1w1F0++PzJZSRUbOXUnCMihgAAAAAAAA== ------=_NextPart_000_004E_01C169F3.084ABE10-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message