Jump to content

Recommended Posts

Hello,

 

has anyone any idea who the owner is of a folder created using mkdir.

 

I seem to have some problem, and a friend is telling me that it's because I used mkdir to create the folder, that it will not allow me to write to it.

 

Anyone heard of this before? If so is there away around it?

 

DG

 

 

Link to comment
https://forums.phpfreaks.com/topic/135641-who-owns-a-foder-created-with-mkdir/
Share on other sites

according to the php documentation mkdir creates folders using 777 permissions by default

 

Therefore if you have permissions to create the folder, and mkdir DOES create the folder you chould be able to write to it.

 

have you got safe mode on?

 

Note: When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed.

 

 

according to the php documentation mkdir creates folders using 777 permissions by default

 

Therefore if you have permissions to create the folder, and mkdir DOES create the folder you chould be able to write to it.

 

have you got safe mode on?

 

Note: When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed.

 

 

 

Hello,

 

Not running in safe mode, is there any way of finding who the owner is?

 

DG

Using your FTP client, it should tell you who the owner is.

 

Hello,

 

Tried My FTP Client and that tells me the owner in nobody? It did allow me to delete it though. will have to change my mkdir script, can anyone tell me were I put chowner in my script, before mkdir or after this function has been executed.

 

 

DG

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.