From owner-freebsd-hackers Sun Oct 6 12:40:25 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA06295 for hackers-outgoing; Sun, 6 Oct 1996 12:40:25 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA06290 for ; Sun, 6 Oct 1996 12:40:22 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.7.6/8.7.3) with ESMTP id MAA00312; Sun, 6 Oct 1996 12:40:01 -0700 (PDT) Message-Id: <199610061940.MAA00312@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: freebsd-hackers@freebsd.org (FreeBSD hackers) Subject: Re: su problem In-reply-to: Your message of "Sun, 06 Oct 1996 19:32:20 +0200." <199610061732.TAA09085@uriah.heep.sax.de> Date: Sun, 06 Oct 1996 12:40:00 -0700 From: Amancio Hasty Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Lets see: $ whoami $ root $ cat /usr/home/hasty/foo $!/bin/sh ls $ cd /usr/home/hasty $ sh -l hasty foo .... work-src write-file~ x xess ... So it works... Now, in /etc/rc.local su -l hasty -c /usr/home/hasty/foo su -l hasty /usr/home/hasty/foo When the system boots up , it generates : Oct 6 12:30:20 rah /kernel: pid 171 (su), uid 1000: exited on signal 11 Oct 6 12:30:21 rah /kernel: pid 172 (su), uid 1000: exited on signal 11 No coredump gets generated , I guess I have to modify su to generate a coredump when it gets a signal 11. Amancio >From The Desk Of J Wunsch : > As Amancio Hasty wrote: > > > Do you mind trying it? !! > > Try what? > > uriah # su -l j id > id: No such file or directory. > uriah # su -l j /usr/bin/id > =CC^=C6^=C0: Command not found. > ^=CB^C=A3^D1^=C08t^U^=D0^=C08/u: Event not found. > uriah # su -l j -c /usr/bin/id > uid=3D107(j) gid=3D101(other) groups=3D101(other), 0(wheel), 5(operator),= > 7(bin), 8(news), 31(guest), 40(cvs), 41(msql), 66(uucp), 117(dialer), 50= > 01(ppp) > > > So what? There's nothing that will help you than debugging your own > core. > > --=20 > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-= > RIPE > Never trust an operating system you don't have sources for. ;-) >