From owner-freebsd-questions Sat Jun 1 12:04:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA20172 for questions-outgoing; Sat, 1 Jun 1996 12:04:57 -0700 (PDT) Received: from palmer.demon.co.uk (palmer.demon.co.uk [158.152.50.150]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA20162 for ; Sat, 1 Jun 1996 12:04:52 -0700 (PDT) Received: from palmer.demon.co.uk (localhost [127.0.0.1]) by palmer.demon.co.uk (sendmail/PALMER-1) with ESMTP id SAA04751; Sat, 1 Jun 1996 18:23:34 +0100 (BST) To: David Hedley cc: freebsd-questions@FreeBSD.ORG From: "Gary Palmer" Subject: Re: weird problem with su In-reply-to: Your message of "Sat, 01 Jun 1996 11:48:16 BST." <398.833626096@inferno.cs.bris.ac.uk> Date: Sat, 01 Jun 1996 18:23:33 +0100 Message-ID: <4749.833649813@palmer.demon.co.uk> Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk David Hedley wrote in message ID <398.833626096@inferno.cs.bris.ac.uk>: > ( > if [ -x /home/users/bbsadmin/bootup ]; then > echo -n 'BBS: ' > echo bootup | su -l bbsadmin > fi > if [ -x /home/users/mud/bootup ]; then > echo -n 'TNT: ' > echo bootup | su -l mud > fi > ) >/tmp/bootup 2>&1 & > Both 'su' commands exit on signal 11 and the following is found in > /tmp/bootup: > > BBS: Memory fault > TNT: Memory fault Try doing that without the `-l' flag to `su'. -l attempts to simulate a full login, which during /etc/rc.local could cause problems. I've certainly seen other stuff working in /etc/rc.local using `su user'. Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info