ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Igor Homyakov" <homyakov@ramax.spb.ru>
To: <mandrake-russian@altlinux.ru>
Subject: Re: [mdk-re] ./ in PATH
Date: Wed Sep 26 18:17:05 2001
Message-ID: <00ce01c14696$92b3a510$4901040a@homyakov> (raw)
In-Reply-To: <14712579128.20010926180925@beep.ru>

----- Original Message -----
From: "Vladimir Karpinsky" <vkarpinsky@beep.ru>
To: <Mandrake-russian@altlinux.ru>
Sent: Wednesday, September 26, 2001 6:09 PM
Subject: [mdk-re] ./ in PATH


> Hello Mandrake-russian,
>
> Объясните пожалуйста мне такую штуку:
> когда-то для облегчения запуска программ из ./, я в своем(ей) .bashrc
> включил ./ в PATH. Все вроде было ничего, пока кто-то из знакомых,
> увидев это, не закричал со страшной силой: "Это делать нельзя ни в
> коем случае!" Но вот аргументировано объяснить почему это делать
> нельзя, он не смог. Я тогда-то убрал ЭТО на всякий случай, но
> неудовлетворенное любопытство гложет уже который год. Вопрос
> соответственно: можно ли ЭТО так делать или нет, если нет, то почему?

Это очень старый спор. Основная причина почему это не надо делать:
атакующий получив (или уже имея) аккоунт на вашем хосте может
записать вредоносный код в /tmp/ls (например) после чего спровоцировать
вас на cd /tmp, теперь осталось только вам выполнить ls
и "оппаньки" :)) .

В обычной жизни, достаточно не ставить . в PATH у root-а.

--
Igor Homyakov                            RAMAX International
System Administrator         Banking Technologies Department
<homyakov(at)ramax.spb.ru>              http://www.ramax.com





  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 [this message]
2001-09-26 18:40   ` Peter V. Saveliev
2001-09-26 19:03     ` [mdk-re] [JT] " Igor Homyakov
2001-09-26 18:17 ` [mdk-re] " Peter V. Saveliev
2001-09-26 18:43   ` Re[2]: " 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='00ce01c14696$92b3a510$4901040a@homyakov' \
    --to=homyakov@ramax.spb.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