Permission denied error when importing a .csv file with quiz results

Permission denied error when importing a .csv file with quiz results

by Pedro Martins Da Torre -
Number of replies: 1

I'm getting an error when I import a .csv file containing quiz results into the a course. See attached screenshot.

Moodle shows a message saying: "Grade import success" but then it also gives me this warning:

Warning: unlink(D:\MoodleData/temp/gradeimport/cvs/2/1223556950) [function.unlink]: Permission denied in D:\Moodle\grade\import\csv\index.php on line 481

If I do a select on the mdl_grade_grades table the record is not in the database - or in mdl_grade_grades_history.

I've given both the moodle installation folder and the moodledata folders the following rights:

IUSR_myserver : modify, read, write, read & execute
IWAM_myserver : modify, read, write, read & execute
NETWORK SERVICE : modify, read, write, read & execute

Is this correct? What other permissions do I need to set? What am I doing wrong with the permissions?

Moodle is installed in the D:\Moodle folder on my test box and my data folder is: D:\MoodleData. I'm running Moodle 1.9.2+ (build 20081008) on IIS6, Windows Server 2003 and MSSQL.

The .csv file contains this info:
First name,Surname,ID number,Institution,Department,Email address,Quiz: CF101
Jon,Doe,4506256272089,ABC Dot Com,Training,jondoe@mymail.com,62.00

I am working on a test server, but I'd like to get the security right.

Attachment GradeImport.JPG
In reply to Pedro Martins Da Torre

Re: Permission denied error when importing a .csv file with quiz results

by Pedro Martins Da Torre -

I noticed that there are forward AND back slashes in the path:

Warning: unlink(D:\MoodleData/temp/gradeimport/cvs/2/1223556950)

Does this have any meaning?