Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.