Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2001 14:21:47 -0500
From:      "Kutulu" <kutulu@kutulu.org>
To:        "Alan Gerber" <agerber@unity.ncsu.edu>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Run program as different user
Message-ID:  <005201c16a1c$f4e1ecc0$88682518@longhill1.md.home.com>
References:  <KJELJICNOFNHBNGEPFEKIEAHCDAA.agerber@unity.ncsu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <agerber@unity.ncsu.edu>

> 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
c3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wD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OAwIaBQCggbowGAYJ
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005201c16a1c$f4e1ecc0$88682518>