Nov 21, 2009

File Permissions And Umask Question ?help Pleases - file permissions and umask question ??help pleases

free web hosting
Open Discussion > MODERATED AREA > Trapper's Secret HideOut

File Permissions And Umask Question ?help Pleases - file permissions and umask question ??help pleases

zamaliphe
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

 

 

 


Comment/Reply (w/o sign-up)

truefusion
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.

Comment/Reply (w/o sign-up)

jlhaslip
More information here:
http://www.astahost.com/index.php?s=&s...st&p=112824

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : file, permissions, umask, pleases, file, permissions, umask, pleases

  1. Somebody Uploaded A File Onto My Hosting Account [resolved]
    (4)
  2. File Manager Not Working
    (2)
    When I goto upload files using the file manager(legacy mode), the files do not upload correctly.
    Every time I try to upload a file, it takes the time to upload it, but the file always comes out
    being 0kb so it does not upload the file. Why is this happening?....
  3. Issues Uploading A File [resolved]
    (3)
    Hi there. I have been trying to upload a zip file only about 2mb to my account through CPanel.
    First I tried uploading it to a new folder in public_ftp. Then i tried to put it in the main part
    of public_ftp. I also tried the same thing in public_html. It shows the file being uploaded, and i
    get 100 %, but alas, when i look in the folders nothing is there. Is there a restriction on .zip
    files? I have had no problems as of yet uploading htm and html pages. Please let me know ASAP.
    Thank you.....
  4. Unable To Replace .png File In Directory
    Can't even delete it using Cpanel (7)
    I can't delete a little file using file manager in Cpanel. I'm trying to delete a .png
    image, actually, I'm trying to replace it. The response comes back as a success, but when I
    reload my site it's still there. Then I go back to the file manager and go up a level, then back
    and WOOP! There it is! I'm beyond frustrated here. What is going on?....
  5. Ftp Problem
    zero file-length? (8)
    I'm using FileZilla right now, and trying to upload a second copy of WordPress onto the account
    to use as a comic repository. For some reason, a lot of the files are missing, and when I look into
    the folders, I see that a lot of the files have a filelength of 0. What gives? Could someone
    please help me out?....
  6. /tmp Folder In File Manager
    (4)
    I know awhile back there was a question brought up about the /TMP folder taking up space, and if
    anyone remembers that topic do you remember if TMP was an acronym for temporary, and can you safely
    delete the contents in that folder? Right now I am cleaning out my hosting account and the files in
    that folder are the only ones taking up space at the moment.....
  7. Got A Great Phpbb File With Mods Already Installed?
    If you do put it here. (3)
    As the name implies, I think it would be a good idea to giving those who aren't really "mod
    savvy" a chance to look at what phpBB's could look like with some regular mods installed. If
    this thread is innappropriate I'll be glad to delete it away or rather, I give permission to
    have it deleted if it isn't appropriate.....
  8. File Transfer From Angelfire To Trap17?
    P.S. I use my Wii. (1)
    I'm wondering, how would I do this. Also, how would I install IPB or PHPBB3. I just have those
    questions.....
  9. File Manager Problems
    (3)
    Alright, I figured out the edit html windows need to be refreshed each time opening them for them to
    show the last updates so you don't just work off the old, un-updated version and mess everything
    up (which really should get fixed). The problem that most annoys me though is when I try deleting
    files and the File Manager doesn't delete them. I try uploading updated files over them and it
    doesn't update them, but just keeps the old ones there. It's getting really annoying. And
    when I try deleting stuff from the Trash Can, it never deletes it. Sometime....
  10. New Issue
    File manager (4)
    First of all, thank you a lot for resolving the password issue. Today I encountered a new one once I
    tried to upload a file using cpanel file manager - the window refreshed, but the "upload status"
    frame remained unchanged, and the file did not appear on the list. What could be a reason for that?....
  11. Help With A .rar File In Ftp Server
    Cannot unrar the file. (4)
    I uploaded a .rar file into my FTP but I cant unrar it. I have uploaded it before in zip format but
    I think it got curropted so I reuploaded again. is theren a way to unrar this file? I am concerned
    about this because it took me quite some to manage to upload it using a very slow internet
    connection. I need help here please,.....
  12. Can't Edit Index
    in file manager (3)
    when i open my sight, www.blockwars.trap17.com i get Parse error: syntax error, unexpected T_STRING
    in /home/khalilo/public_html/index.php on line 6 I don't even have an index.php file O_o I have
    a index.html its coding is: CODE welcome but why isn't it being
    opened O_o?....
  13. Error Trying To Edit File Using Cpanel Filemanager
    Can't save any changes (8)
    Okay, I am having trouble saving changes to a .css file using the cpanel filemanager. Basically it
    worked for me a couple of times (trying to edit "compiled.css") but now it just throws this error at
    me every time I click save!! I cannot delete, move, rename or edit the file at all using an ftp
    manager or even the cpanel. I have been forced to take my site offline until I have access to update
    the css... Please help! QUOTE open compiled.css failed: Permission denied at cpanel.pl line 444
    Carp::croak('open compiled.css failed: Permission denied') called a....
  14. File Manager In Cpanel Doesn't Work With The Browser Konqueror
    (1)
    The version of Konqueror that comes with Knoppix 5.1 doesn't support the file manager in the
    cPanel. I've included a picture. However the File Manager works just fine with
    Iceweasal, the equivelant browser to Firefox. ....
  15. Wordpress Installation Error [resolved]
    Anything to change in the wp-config.php file? (4)
    I've chosen to install WordPress manually and things were going well so far...until I hit an
    installation error when I tried to run the install.php file on my browser. For the record, I
    logged into CPanel and went into MySQL Databases, created the databases, the username and added the
    user to the database - as suggested in the installation procedure. Perhaps there's a mistake in
    my wp-config.php file that might've caused the error. If there's something I should change,
    please let me know. Many thanks in advance. CODE // ** MySQL settings ** // de....
  16. File Manager
    (1)
    hey, can somebody tell me what these file are: postinfo.html, _vti_inf.html , .htaccess ?? is it
    safe to delete any of these files or? or can i move them to another folder or something, because i
    just want the fiels for my site there so i don't have too many.....
  17. File Type Utf-16 Unicode Question
    What is it and why won't it work? (0)
    QUOTE File Type: Little-endian UTF-16 Unicode C++ program character data, with CRLF line
    terminators This is the file type of a file I just uploaded to a folder on my account and the
    file doesn't work. /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif"
    /> It is supposed to be a lowly CSS file, but the page comes out with - zero - styling on it. Wrks
    fine locally on a windows laptop and an iMac, too. Also, when I view the file in the cpanel file
    manager editor, it is double spaced and there are some really weird characters in the f....
  18. License File Expired When Logging Into Cpanel
    (12)
    Well looks like the servers did come back on line, but now im unable to acess my cpanel. I go to log
    in and I get a message that the License File Expired follwed with that is a set of numbers which id
    rather not show. But do I need to log a ticket for this....
  19. Php.ini File Limit Size?
    (6)
    Is there a way to increase this size at all? And if so do we do it, or is it done by the trap17
    team?....
  20. I Can Not Create Mysql Databases In Control Panel Using Phpmyadmin
    Phpmyadmin says i don't have permissions to create databases (3)
    I went to phpmyadmin script a few minutes ago and i could not create a database. Since it says
    there on my control panel that i have unlimited mysql databases, plus i am using only a couple of
    databases, please respond and fix this, please.....
  21. Making The Files In File Manager Invisible
    (8)
    i was wondering if there was a way, any way in the world, to make the files that were allready in
    the file manager when we first signed up meaning these QUOTE _private _vti_bin _vti_cnf _vti_log
    _vti_pvt _vti_txt cgi-bin dissaper.... because on my site, we made a sitemap
    (http://hogwartsmagic.net/map/ezmap.php) and it shows those folders, and to make it less cluttered
    we want to get rid of them, or make them invisible to the public.. is this possible? Topic closed
    as requested ....
  22. My Sql Error after uploading
    Need help regarding to this sql file (1)
    Ive uploaded this sql file to my database but it seems to have an error which i cant find.please
    help me find the error.The eroor says: QUOTE SQL query: UNIQUE KEY id( id ) ) TYPE = MYISAM
    ; MySQL said: #1064 - You have an error in your SQL syntax. Check the manual that corresponds to
    your MySQL server version for the right syntax to use near 'UNIQUE KEY id (id) )
    TYPE=MyISAM' at line 1 SQL FILE CODE
    CREATE TABLE banned (   username varchar(16) NOT NULL default '',   reason varchar(10....
  23. Help With Sql File?
    please help me. (4)
    hi, im really confused, i just tried to install an sql file for a wap top list that i have used
    before on other hosts, but when i import it it says the is an error with it but its worked for me in
    the past?? Can anyone help me work out why the code is giving me an error? Here is the sql file:
    CODE -- Table structure for table `uglymonkey_toplist` -- DROP TABLE IF EXISTS
    `uglymonkey_toplist`; CREATE TABLE `uglymonkey_toplist` (   `id` int(4) NOT NULL auto_increment,
      `name` varchar(30) NOT NULL default '',   `pass` varchar(30) NOT NULL default '', ....
  24. File Name Problems
    how do I change file names (2)
    ok, so I got hosted, uploaded my files, and checked it out. it all works fine. But tere is a slight
    problem with my site. the main file is obviously index.html If I go to my website it shows
    www.mysite.trap17.com though if I hit the home button I get www.mysite,trap17.com/index.html I know
    I can change a file name in the file manager but wouldnt that ruin my links? I want to be able to
    customize the way the page is displayed in the address bar. if anyone know how to do this please let
    me know. I also have a question about the placement of files. in my code I have a link ....
  25. How To Protect Css File From Public?
    (5)
    i want to include a css file in a webpage , but i want to to keep it somewhere where people can not
    access it. for example ,if i keep a css file in, domain.com/somefolder/cssfile.css , then anyone can
    access it.. because in page dource there is that css file url.. i want that even when someone save
    the page , he can not have access to my css file.. is it possible ?? thanks....
  26. File Manager
    (6)
    Everytime I try to update my site, it won't work. Check it: www.novaterra.trap17.com It
    won't update. Am I going to the wrong place, 'cause I'm sure it's file manager. =/ I
    put in the code, save it to index.html, but it won't show. Some help please?....
  27. Cannot Delete Folder After Lost Ftp Connection
    permission not given to delete file (7)
    hello, well i had created a subdomain and was transferring files into the folder i was disconnect
    from the server many times while uploading the files via ftp once when i reconnect, i saw a file
    with an unusual name something starting with preftp... i tried deleting the file, but it said that
    permission was not granted to do that i tired deleting the complete folder and also tried deleting
    the subdomain from the cpanel but it was of no use can anyone help me with this? thx for your time
    Modified topic title. ....
  28. How Do I Make A (video) File Smaller?
    (24)
    Ok, I want to host a video that I have in my computer, but the problem is that the video is too
    big, 790MB. My host can't handle a file that huge so I was wondering if there is any way I can
    make the video file in my computer smaller? I don't want to mess up the video and make it
    smaller, I was wondering if I can keep the current 790MB video that I already have but copy only
    about 10MB of the video into a new file that I can use for hosting. Anyone know?....
  29. Error Using "move_uploaded_file()"
    Permission denied to perform this action (5)
    I, on my website, have employed a page to upload files on my website. But I'm having problems
    using it. When the file is uploaded to the 'temp' directory of my account, and when I use
    the function 'move_uploaded_file()' to move this file into the actual directory, it returns
    the error move_uploaded_file(ABD.jpg): failed to open stream: Permission denied
    move_uploaded_file(): Unable to move '/tmp/phpF5SqzC' to 'ABD.jpg' please help me
    what should now I do with this.. I also tried changing the mode of the 'temp' directory to
    7....
  30. My File Manager Is Working
    (2)
    I tried to change the html for my site in file manager but it just has the default page - the one
    when you activate your site. /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
    How do i change files?....

    1. Looking for file, permissions, umask, pleases, file, permissions, umask, pleases
Similar
Somebody Uploaded A File Onto My Hosting Account [resolved]
File Manager Not Working
Issues Uploading A File [resolved]
Unable To Replace .png File In Directory - Can't even delete it using Cpanel
Ftp Problem - zero file-length?
/tmp Folder In File Manager
Got A Great Phpbb File With Mods Already Installed? - If you do put it here.
File Transfer From Angelfire To Trap17? - P.S. I use my Wii.
File Manager Problems
New Issue - File manager
Help With A .rar File In Ftp Server - Cannot unrar the file.
Can't Edit Index - in file manager
Error Trying To Edit File Using Cpanel Filemanager - Can't save any changes
File Manager In Cpanel Doesn't Work With The Browser Konqueror
Wordpress Installation Error [resolved] - Anything to change in the wp-config.php file?
File Manager
File Type Utf-16 Unicode Question - What is it and why won't it work?
License File Expired When Logging Into Cpanel
Php.ini File Limit Size?
I Can Not Create Mysql Databases In Control Panel Using Phpmyadmin - Phpmyadmin says i don't have permissions to create databases
Making The Files In File Manager Invisible
My Sql Error after uploading - Need help regarding to this sql file
Help With Sql File? - please help me.
File Name Problems - how do I change file names
How To Protect Css File From Public?
File Manager
Cannot Delete Folder After Lost Ftp Connection - permission not given to delete file
How Do I Make A (video) File Smaller?
Error Using "move_uploaded_file()" - Permission denied to perform this action
My File Manager Is Working

Searching Video's for file, permissions, umask, pleases, file, permissions, umask, pleases
See Also,
advertisement


File Permissions And Umask Question ?help Pleases - file permissions and umask question ??help pleases

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com