Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc
From: Jacques A. Vidrine (nectar@freebsd.org)
Date: 05/29/02
- Next message: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- Previous message: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- In reply to: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- Next in thread: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- Reply: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 29 May 2002 16:03:34 -0500 From: "Jacques A. Vidrine" <nectar@freebsd.org> To: "Crist J. Clark" <cjc@freebsd.org>
On Wed, May 29, 2002 at 01:38:52PM -0700, Crist J. Clark wrote:
> > /bin/sh -c 'echo -e "/.X11-unix/s/^/#/\nw\nq\n" | /bin/ed -s /etc/rc'
>
> Ick. How about,
>
> # /usr/bin/printf "/.X11-unix/s/^/#/\nw\nq\n" | /bin/ed -s /etc/rc
>
> Next time?
*shrug* One could prescribe any number of alternatives to achieve the
modification. I chose this way, because /bin/sh and /bin/ed are both
statically linked and should always be available on all systems in
single user mode. It seems unlikely that this will be an issue for
anyone, but hey - you never know.
Cheers,
-- Jacques A. Vidrine <n@nectar.cc> http://www.nectar.cc/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
- Next message: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- Previous message: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- In reply to: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- Next in thread: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- Reply: Crist J. Clark: "Re: FreeBSD Security Advisory FreeBSD-SA-02:27.rc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|