From owner-freebsd-questions Sat Jun 1 03:49:05 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA14956 for questions-outgoing; Sat, 1 Jun 1996 03:49:05 -0700 (PDT) Received: from dira.bris.ac.uk (dira.bris.ac.uk [137.222.10.41]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA14931 for ; Sat, 1 Jun 1996 03:48:56 -0700 (PDT) Received: from kukini.cs.bris.ac.uk by dira.bris.ac.uk with SMTP (PP); Sat, 1 Jun 1996 11:48:33 +0100 Received: from inferno by kukini.compsci.bristol.ac.uk id aa16828; 1 Jun 96 10:50 GMT From: David Hedley To: freebsd-questions@freebsd.org Subject: weird problem with su X-Address: Computer Science Dept., University of Bristol, Bristol, U.K. X-Work-Phone: +44 (117) 954 5119 X-Attribution: Dave Date: Sat, 01 Jun 1996 11:48:16 +0100 Message-ID: <398.833626096@inferno.cs.bris.ac.uk> Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The computer: ------------- Pentium 90, Intel Premier M/B, 32MB RAM, 2940 SCSI, FreeBSD 2.1R No known hardware problems. My requirements: ---------------- I have a couple of user's programs that I wish to be run at boot time. My Solution: ------------ I put the following at the end of /etc/rc.local ( 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 & What happens: ------------- Both 'su' commands exit on signal 11 and the following is found in /tmp/bootup: BBS: Memory fault TNT: Memory fault This happens everytime the machine is rebooted. However, if I log in as root and run the above snippet, everything works fine and the requested programs get started, running under the correct UID. Does anybody know what I'm doing wrong or why 'su' is crashing? Is there a better way of starting a user's program on bootup? Thanks for any help, David -- David Hedley (David.Hedley@bris.ac.uk) finger hedley@cs.bris.ac.uk for PGP key Computer Graphics Group | University of Bristol | UK