From: Sergey Stepanov <dlagovna@mail.ru> To: Community@altlinux.ru Subject: [Comm] AltMaster2.4 Apache+PHP и права на файлы Date: Thu, 8 Sep 2005 20:57:27 +0400 Message-ID: <200509082057.28044.dlagovna@mail.ru> (raw) Господа, вот я тут в конкретных непонятках. На 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 скрипты меняется без проблем. -- Со всяческими пожеланиями, Сергей. http://xi.net.ru
next reply other threads:[~2005-09-08 16:57 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-09-08 16:57 Sergey Stepanov [this message] 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 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=200509082057.28044.dlagovna@mail.ru \ --to=dlagovna@mail.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