From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: curt Newsgroups: gmane.os.tru64.managers Subject: "su" in init script Date: Mon, 13 Sep 2004 15:37:27 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <4145F6F7.8030804@cola.iges.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095104333 22313 80.91.229.6 (13 Sep 2004 19:38:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Sep 2004 19:38:53 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Sep 13 21:38:28 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1C6weh-0003Ij-00 for ; Mon, 13 Sep 2004 21:38:28 +0200 Original-Received: (qmail 32578 invoked by uid 5); 13 Sep 2004 19:37:51 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 32563 invoked by uid 49501); 13 Sep 2004 19:37:50 -0000 Original-Received: from curt@cola.iges.org by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-4.9/5.0):. Processed in 0.445277 secs); 13 Sep 2004 19:37:50 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 13 Sep 2004 19:37:50 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I3Z00C6RVUWFG@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 13 Sep 2004 15:37:49 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I3Z00E02VUTZR@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 13 Sep 2004 15:37:43 -0400 (EDT) Original-Received: from cola.iges.org (cola.iges.org [192.239.84.10]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I3Z006MGVUSFH@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 13 Sep 2004 15:37:41 -0400 (EDT) Original-Received: from [192.239.84.224] by cola.iges.org (8.11.1/1.1.22.3/16Jan00-0454PM) id i8DJbeX0000341287; Mon, 13 Sep 2004 15:37:40 -0400 (EDT) Original-To: tru64-unix-managers@ornl.gov X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 0.7.1 (Macintosh/20040626) Xref: main.gmane.org gmane.os.tru64.managers:7569 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7569 I need to start up a job at system startup under a userid other than root. I'm running tru64 v5.1b (pk4?) on an ES45. I created a little script called /sbin/rc3.d/S96try: #/bin/sh su -f curt -c /homes/cola/curt/fort/a.out & If I run this script in multi-user mode, or from crontab it works just fine: it runs the little fortran program a.out under the userid "curt" - which is what I want. But when I start the system up the script doesn't "launch". Any suggestions? Sincerely, Curt Steinmetz