Date: Sat, 01 Jun 1996 11:48:16 +0100 From: David Hedley <David.Hedley@bristol.ac.uk> To: freebsd-questions@freebsd.org Subject: weird problem with su Message-ID: <398.833626096@inferno.cs.bris.ac.uk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?398.833626096>