ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "evgeniy" <evgeniy@packsyst.ru>
To: "ALT Linux Community" <community@altlinux.ru>
Subject: Re: [Comm] AltMaster2.4 Apache+PHP и права на файлы
Date: Fri, 9 Sep 2005 09:20:41 +0400
Message-ID: <04d401c5b4fe$38e12820$17010a0a@upsys.local> (raw)
In-Reply-To: <200509082057.28044.dlagovna@mail.ru>


С уважением,
Лошенков Евгений Михайлович,
системный администратор компании
ЗАО "Упаковочные системы"
----- Original Message ----- 
From: "Sergey Stepanov" <dlagovna@mail.ru>
To: <Community@altlinux.ru>
Sent: Thursday, September 08, 2005 8:57 PM
Subject: [Comm] AltMaster2.4 Apache+PHP и права на файлы


>
> Господа, вот я тут в конкретных непонятках.
> На AltMaster2.4 имею Apache version 1.3.31 и PHP Version 4.3.9-dev/ALT
>
> И вот на какую ситуацию я постоянно натыкаюсь.
>
> Имеем 2 файла filemode.php и file.txt. Обратите внимание, что file.txt
> имеет права 777, то есть с этим файлом любой пользователь может
> делать все что угодно...
>
> -rwxrwxrwx  1 root webmaster 91 Сен  8 20:43 filemode.php
> -rwxrwxrwx  1 root webmaster 43 Сен  5 16:14 file.txt
>
>
> В файле filemode.php расположены следующие команды
>
> <?php
>
> echo "Try apply chmod()\n";
> chmod("file.txt",0664);
> echo "Ending chmod()\n";
>
> ?>
>
>
> При выполнении скрипта в окне браузера я вижу такие строчки
>
> Try apply chmod()
> Warning: chmod(): Operation not permitted
> in /var/www/html/work/filemode/filemode.php on line 4
> Ending chmod()
>
> И права на файл не меняются.
>
>
> Я проверил - PHP работает в обычном режиме (не SAFE MODE),
> права на текущий каталог и все верхние каталоги вплоть
> до корня - 777.
>
>
> Чего где не настроено, что PHP-скрипты не могут менять
> права на файлы, даже в своей рабочей директории?
>
> Содержимое файлов через PHP скрипты меняется без проблем.
>
ХМ... знаешь попробуй в строке echo "Try apply chmod()\n"; `chmod()\n` в 
исполняемых скобках поставь! 




  parent reply	other threads:[~2005-09-09  5:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-08 16:57 Sergey Stepanov
2005-09-08 17:46 ` [Comm] " Michael Shigorin
2005-09-08 18:52   ` Michael Shigorin
2005-09-08 18:15 ` [Comm] " Sergey Vlasov
2005-09-09  5:20 ` evgeniy [this message]
2005-09-12 19:10 ` Pavel Vainerman

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='04d401c5b4fe$38e12820$17010a0a@upsys.local' \
    --to=evgeniy@packsyst.ru \
    --cc=community@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