Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member tibberous's Avatar
    Join Date
    Aug 2003
    Posts
    195
    Member #
    2535
    I made a nice little file manager for my webserver this weekend but when I moved it from my local server (Windows XP) to my real server (Linux) it started giving me permissions errors.

    Basically I need one page to have the ability to delete files and directories, and upload files anywhere on the server. The script is fully password protected so there is no security risk. Also, I tried chmod'ing from php but it gave me a permissions error, lol.

    On a related note, am I concidered the 'owner' of my files? I have an account on the webserver but it isn't mine so I am not really sure.

    Thanks a lot if you can better explain this. I've only done this once before, and that was by chmoding to 777 which may very well give global write access or somthing.

  2.  

  3. #2
    Senior Member Gemini ISP's Avatar
    Join Date
    Oct 2003
    Posts
    243
    Member #
    3510
    for a file manager you need to set it to 706 --- you need read/write/ and execute permisson-- for owner -users
    Mas
    Gemini-isp.com

  4. #3
    Senior Member tibberous's Avatar
    Join Date
    Aug 2003
    Posts
    195
    Member #
    2535
    Still no luck

    Tried that, and about half a dozen other combinations and I still can't get it to work. I think I may end up using a free 3rd part script for the basis of it. It kinda looks like I need to chmod a file to 777 before I try to delete it but I'm not really sure.

    I'll keep at it, thanks.

  5. #4
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    777 is one way, or you can change the file's group to nobody and use 770 which is a bit secure.

    However, if you are on a shared server, you won't have permission to run chown or chgrp commands to change the group.
    There and Back Again :Ogre:

  6. #5
    Senior Member [Li] Brad's Avatar
    Join Date
    Oct 2003
    Location
    Saskatoon, Canada
    Posts
    578
    Member #
    3689
    Try something similar to this:
    PHP Code:
    $perm=0777;
    chmod($createdfile$perm
    Hope that helps, I had the same problem on my server.

    [Li] Brad
    "Art strives for form, and hopes for beauty." - George Bellows


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:10 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com