From owner-freebsd-questions Sat Nov 10 9:50: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from uni03mr.unity.ncsu.edu (uni03mr.unity.ncsu.edu [152.1.1.166]) by hub.freebsd.org (Postfix) with ESMTP id B72AB37B405 for ; Sat, 10 Nov 2001 09:50:00 -0800 (PST) Received: from unlateral (Bowe-08-249.rh.ncsu.edu [152.7.20.249]) by uni03mr.unity.ncsu.edu (8.8.8/8.8.8/UR01Feb99) with SMTP id MAA26664 for ; Sat, 10 Nov 2001 12:49:58 -0500 (EST) From: "Alan Gerber" To: Subject: RE: Run program as different user Date: Sat, 10 Nov 2001 12:49:52 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <010f01c169f3$79613e30$88682518@longhill1.md.home.com> 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 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" > 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