Jump to content

Permissions problem


yungbloodreborn

Recommended Posts

I'm having a permissions problem that I don't quite understand.

I have a dir called "games" on my web server owned by kevin:apache. with 0775 permissions.

I have a php script create a dir called "games/kaboom".

It gains the owner of apache:apache, and permissions of 0755.

And I can't seem to create anything inside of "games/kaboom".

 

I've tried explicitly setting owner & permissions, but it seems to be ignored.

Is there anything I can do to create stuff deeper in "games/kaboom" ??

Link to comment
https://forums.phpfreaks.com/topic/227611-permissions-problem/
Share on other sites

  • 3 weeks later...

try chown -R kevin:apache games

 

-R Descends directories recursively, changing the ownership for each

file. When a symbolic link is encountered and the link points to a

directory, the ownership of that directory is changed but the directory

is not further transversed.

for more information abut chown http://nersp.nerdc.ufl.edu/~dicke3/nerspcs/chown.html

Link to comment
https://forums.phpfreaks.com/topic/227611-permissions-problem/#findComment-1182709
Share on other sites

I would still like an answer on this...

 

But for this project I've decided to use another method. Since my purpose was just to unzip a file that I've uploaded to the server, I've decided to just use a cron job search for .zip files in the games folder, and have the cron job do the unzipping.

Link to comment
https://forums.phpfreaks.com/topic/227611-permissions-problem/#findComment-1182945
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.