Page 1 of 1

SAFE MODE Restriction in effect

Posted: Mon Jan 13, 2003 3:24 pm
by mvitor
Hi...
I am tring to do this:

mkdir("dir/mail/".$_SESSION[lastuserid]."/files");
$ex="chmod 777 dir/mail/".$_SESSION[lastuserid]."/files";
exec("$ex &");
mkdir("dir/mail/".$_SESSION[lastuserid]."/files/in");
$ex="chmod 777 dir/mail/".$_SESSION[lastuserid]."/files/in";
exec("$ex &");

It works fine when I run on my computer (Win) but when I try to run it from server (Lin):
SAFE MODE Restriction in effect. The script whose uid is 512 is not allowed to access pescas/mail/84 owned by uid 48 in /var/www/html/pescas/newuserjn.php on line 47.

Is there any way to create this sub-dir? Can I change the UID???

Posted: Mon Jan 13, 2003 4:02 pm
by Elmseeker
If you're root you can put bot 512 and 48 into a group in /etc/groups then chown -R :group# pescas/mail/84