Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Oct 1996 12:40:00 -0700
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
Cc:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Subject:   Re: su problem 
Message-ID:  <199610061940.MAA00312@rah.star-gate.com>
In-Reply-To: Your message of "Sun, 06 Oct 1996 19:32:20 %2B0200." <199610061732.TAA09085@uriah.heep.sax.de> 

next in thread | previous in thread | raw e-mail | index | archive | help

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. ;-)
> 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610061940.MAA00312>