chmod verandere wil niet

Pagina: 1
Acties:

  • jvvv
  • Registratie: November 2002
  • Laatst online: 08-05 15:37
Mijn probleem:
Een zekere php aplicatie heeft zelf een dir gemaakt en daar een .htaccess in geplaats. Nu wil(moet) ik weten wat er in die dir zit. Nu kan ik er niet in via ftp, en via ftp kan ik de CHMOD niet veranderen.
Wat heb ik geprobeerd?

PHP:
1
2
3
<?
unlink("/.users/.htaccess");
?>

geeft:
Warning: unlink(): open_basedir restriction in effect. File(/.users/.htaccess) is not within the allowed path(s): (/usr/local/psa/home/vhosts/piep.xxe/httpdocs:/tmp:/usr/local/bin:/usr/local/netpbm/bin) in /usr/local/psa/home/vhosts/piep.xxe/httpdocs/[biep]/albums/ch.php on line 2

PHP:
1
2
3
<?
chmod ("/albums/.users", 0750);
?>


geeft:
Warning: chmod(): open_basedir restriction in effect. File(/albums/.users) is not within the allowed path(s): (/usr/local/psa/home/vhosts/piep.xxe/httpdocs:/tmp:/usr/local/bin:/usr/local/netpbm/bin) in /usr/local/psa/home/vhosts/piep.xxe/httpdocs/[biep]/albums/ch.php on line 2
de dir ".users" zit dus in de map albums. Wat kan ik doen om in de dir .users te geraken? Momenteel zit ".users" op 750.

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 00:01

Janoz

Moderator Devschuur®

!litemod

De foutmelding lijkt me duidelijk genoeg. Bedenk wel dat een / aan het begin aangeeft dat je vanaf de root begint (absoluut pad dus ipv relatief). /album/.users bestaat helemaal niet, /usr/local/psa/home/vhosts/piep.xxe/httpdocs/[biep]/albums/.users daarintegen vast wel.

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'