Safe mode premission causing problems???

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Safe mode premission causing problems???

Post by alex.barylski »

Warning: dir(): SAFE MODE Restriction in effect. The script whose uid is 734 is not allowed to access /home/virtual/site223/fst/var/www/html/test/ owned by uid 48 in var/www/html/../core/my_classes.php on line 458

I got this error while playing with a file manager script on my dads shared host...???

WTF does this mean?

I was trying to create a directory...the script works perfectly on my server which is through the same company...

Why would they have SAFE MODE enabled???

Can I turn it off via a script or is it an admin feature???

I can create files with the file manager - but when I try and edit files using my editor I also get some STOR failed due to permissions???

I tried CHMODing the files and folders, but nothing sticks...

Is this hosting company a joke??? Me and my dad are both on shared hosts...same company, but slightly different plans...he got a 2 year deal a while back... :?

Another thing which I didn't like about this company...

The other day I asked them to send me my password...cuz I forgot it...

So they did...but I later found the password written down...and they were the same damn password...

Meaning...they obviously don't hash the passwords...they use crazy cryptic passwords like Xc63Hfdn5, but obviously not encrypted using one way hash anways...

Isn't this kinda stupid practice???

I gotta start reading up on *nix admin stuff...cuz I swear these guys are a joke...

Pure hardware no actual talent behind the scense :(

Thanks for any ideas on the above...

Cheers :)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

I got CHMOD to finally stick on the directories which my script in working in, in this case php's DIR function...

I CHMOD everything to 777 and I still get this error?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

safemode disallows variances by owner, in addition to permissions (which are normally applied anyways) .. The error you are getting applies to the owner id.

chown() may be of interest..
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

When I create a file with a script...it's automatically being CHMODed to 644...

I then have tried to use my windows FTP app and change the CHMOD to 777...

It works on one file, but not on the other??? :?

I think the other file was uploaded via FTP though...

So my FTP cannot change the permissions because...PHP is a different UID than the FTP???

Is the permissions set for a file created with fopen() determine by a setting in PHP???

What about when a file is uploaded via an FTP app?

Cheers :)
Post Reply