Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> File Permissions And Umask Question ?help Pleases, file permissions and umask question ??help pleases
zamaliphe
post 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 biggrin.gif
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 biggrin.gif biggrin.gif x:D
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
Go to the top of the page
 
+Quote Post
truefusion
post Oct 30 2007, 01:53 AM
Post #2


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,893
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528
T17 GFX Crew



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.
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

Group: [MODERATOR]
Posts: 3,997
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



More information here:
http://www.astahost.com/index.php?s=&s...st&p=112824
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. My File Manager Is Working(2)
  2. How Do I Make A (video) File Smaller? (11)
  3. Cannot Delete Folder After Lost Ftp Connection(7)
  4. File Manager(6)
  5. How To Protect Css File From Public?(5)
  6. File Name Problems(2)
  7. Help With Sql File?(4)
  8. My Sql Error after uploading(1)
  9. Making The Files In File Manager Invisible(8)
  10. I Can Not Create Mysql Databases In Control Panel Using Phpmyadmin(3)
  11. Php.ini File Limit Size?(6)
  12. License File Expired When Logging Into Cpanel(11)
  13. File Type Utf-16 Unicode Question(0)
  14. File Manager(1)
  15. Wordpress Installation Error [resolved](3)
  1. File Manager In Cpanel Doesn't Work With The Browser Konqueror(1)
  2. Error Trying To Edit File Using Cpanel Filemanager(8)
  3. Can't Edit Index(3)
  4. Help With A .rar File In Ftp Server(4)
  5. New Issue(4)
  6. File Manager Problems(3)
  7. File Transfer From Angelfire To Trap17?(1)
  8. Got A Great Phpbb File With Mods Already Installed?(3)
  9. /tmp Folder In File Manager(4)
  10. Ftp Problem(8)
  11. Unable To Replace .png File In Directory(7)
  12. Issues Uploading A File [resolved](3)
  13. File Manager Not Working(2)


 



- Lo-Fi Version Time is now: 7th September 2008 - 03:15 AM