+ Post New Thread
Results 1 to 7 of 7
Virtual Learning Platforms Thread, Moodle Uploaded File Permissions Issues in Technical; We are running Moodle 1.9.8 on Windows Server 2008 R2 using a mysql db. We're having an issue where teachers ...
  1. #1
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    32

    Post Moodle Uploaded File Permissions Issues

    We are running Moodle 1.9.8 on Windows Server 2008 R2 using a mysql db. We're having an issue where teachers upload images via the html text editor and it will upload fine, however the file doesn't get the permissions it should in order for other users to view it.

    The permissions are correct on the parent directory, and the file itself says its inheriting, but it gets a completely different set of permissions until you either untick-re-tick inheritance, or tell the parent directory to reapply permissions to child files/folders...

    If you create a file in the directory via notepad or whatever, it gets the permissions properly, so it seems to be something relating to moodle applying them when it creates?

  2. #2

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,045
    Thank Post
    6
    Thanked 198 Times in 178 Posts
    Rep Power
    51
    Is it keeping the permissions the file had originally before being uploaded?

  3. #3
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    32
    None of the original file permissions match what it gets once its uploaded... and if you copy the same file from source to destination when logged in to the server, it gets the proper inherited permissions just fine...

  4. #4

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,045
    Thank Post
    6
    Thanked 198 Times in 178 Posts
    Rep Power
    51
    What permissions does it have then, just default permissions such as SYSTEM and Administrators?

    If so maybe the file is going to a temp area before being uploaded and it is from here that it is taking its permissions.
    Last edited by Achandler; 29th November 2010 at 09:42 AM. Reason: Typos

  5. Thanks to Achandler from:

    OutLawTorn (1st December 2010)

  6. #5
    frosty's Avatar
    Join Date
    May 2007
    Location
    East Sussex
    Posts
    121
    Thank Post
    13
    Thanked 10 Times in 10 Posts
    Rep Power
    17
    I had something simliar like this before. It turned out to be as Achandler said permissions on the tmp folder.

  7. Thanks to frosty from:

    OutLawTorn (1st December 2010)

  8. #6
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    32
    Just had a quick look, and it seems the perms on the temp folder match those that the file gets once its uploaded... when adding the correct perms to the temp folder it gets them on the destination as a work-around...

    In the longer run, is there a way to fix it so the file gets the proper inheritance once it gets to the destination?

  9. #7
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    32
    “...if the two folders were on separate drives, you wouldn’t have this problem...” (How to fix PHP upload file inherit permissions error using Windows IIS Server | HowYouDo.Info)

    I’ve moved the temp directory (in PHP.ini) from D:\temp (D: drive is where moodledata directory is) to C:\PHP\Temp on the server, and file uploads are now correctly getting the permissions inheriting.

    Thanks to both of you for pointing my troubleshooting in the right direction

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle (and VLEs in general) and illicit/salacious uploaded content
    By pete in forum Virtual Learning Platforms
    Replies: 5
    Last Post: 20th January 2009, 02:48 PM
  2. Transfer User Area's - Permissions Issues ??
    By mac_shinobi in forum Wireless Networks
    Replies: 24
    Last Post: 21st May 2008, 12:36 PM
  3. Moodle share uploaded content between courses
    By CyberNerd in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 11th March 2008, 10:47 PM
  4. File Permissions Help
    By _Bat_ in forum *nix
    Replies: 3
    Last Post: 19th November 2006, 01:14 AM
  5. File permissions
    By Face-Man in forum Windows
    Replies: 9
    Last Post: 28th April 2006, 12:14 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •