Date: Sat, 10 Nov 2001 12:49:52 -0500 From: "Alan Gerber" <agerber@unity.ncsu.edu> To: <freebsd-questions@FreeBSD.ORG> Subject: RE: Run program as different user Message-ID: <KJELJICNOFNHBNGEPFEKIEAHCDAA.agerber@unity.ncsu.edu> In-Reply-To: <010f01c169f3$79613e30$88682518@longhill1.md.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.) 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? Su, on the other hand, gives me "^G^S^B^A^P2^]^N^V5^R/^L^X^E^[: Event not found." I have no idea what this means, but I am sure that I've typed in the correct path to the program. Can anybody help me with this as well? Alan Gerber -----Original Message----- From: Kutulu [mailto:kutulu@kutulu.org] Sent: Saturday, November 10, 2001 9:25 AM To: Alan Gerber; freebsd-questions@FreeBSD.ORG Subject: Re: Run program as different user >From: "Alan Gerber" <agerber@unity.ncsu.edu> > I recently began playing with the concept of starting a daemon at startup > (from what I gather, I should put the initialization commands into > rc.local), but the tough part is that I need this program run in a non-root > environment (ie- not as root!). Is there a good way to do this? Please > respond to my email address (not the list), because I am not subscribed yet. Add a cron job for the correct user, specify "@reboot" in place of all 5 time fields. 'man 5 crontab' for more details. --K 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?KJELJICNOFNHBNGEPFEKIEAHCDAA.agerber>