|
|
|
|
![]() ![]() |
Oct 29 2007, 10:43 PM
Post
#1
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 131 Joined: 1-February 07 Member No.: 38,108 |
when i create new file using ftp or the file manger the file get the default permission of (rwx-r-r)
when any php script create file it gets the sam permission right but i cant edit any new file crated by the php script i cant even Chang the permissions for it i have to delete the file and create new one why ???? and if the new file was a folder i cant edit any thing inside of it and how can i fix this??? I'm fumler with the file permissions cause i use Linux debian i just don't know what is happening here how can i set the default umask to force the php scripts giving me the ownership of file already mine can i set spacial umask for single folder so any new files or folder created inside that folder get the default permission of (rwx-rwx-rwx) how ??? can i do this using .htaccess file how ??? thanks allot |
|
|
|
Oct 30 2007, 01:53 AM
Post
#2
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,893 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
If you are familiar with Linux, you should know that when a PHP script creates a file, although the same permissions may be attached like other files, the owner of the file is different. The owner becomes "www-data" (i believe), and not the one that gets placed upon uploading a file via FTP or the File Manager. The only way to change permissions or edit the desired file is to create another PHP that performs such actions. Same goes for deleting that file.
|
|
|
|
Oct 30 2007, 02:33 AM
Post
#3
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,997 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
More information here:
http://www.astahost.com/index.php?s=&s...st&p=112824 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 7th September 2008 - 03:15 AM |