+ Post New Thread
Results 1 to 7 of 7
*nix Thread, Moodle 2.0 and mapped network drives in Technical; Hi All. I'm setting up a moodle 2.0 server for sept 2011 and have some questions about how best to ...
  1. #1


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Moodle 2.0 and mapped network drives

    Hi All.
    I'm setting up a moodle 2.0 server for sept 2011 and have some questions about how best to use the filesystem repository so that Moodle can use our mapped network drives.

    Our Moodle 2.0 will be on an RHEL6 machine that is in a DMZ. The drives are on an FC SAN.
    Our shared mapped network drive is on an internal RHEL5.5 machine, the drives are also provided from a FC SAN (on a different LUN than the new Moodle webserver).
    The samba shares on the fileserver provide a 'staff' folder which is confidential and one folder for each yeargroup. The yeargroup directories are writable by staff, but not by students.

    The goal is to get the yeargroup directories as repositories for Moodle, so that staff can just use the mapped drives to upload files.

    I have several options, but not sure which to do.

    Ideally I (think) I should rebuild the internal samba server using a clustered filesystem (GFS2) then map the LUN onto the webserver and the samba server simultaneously, but this could this then expose the confidential staff folder to the webserver if it was compromised? Also a lot more effort.

    I could make the webserver a samba server, and do away with the internal fileserver. Again a security issue? easier to do as I can just remap the LUN without changing the filesystem.

    I could open the firewall and map the student drives via NFS (or SMB) seems simple enough in theory, what would happen when the fileserver reboots? Which would be better NFS/SMB? the filesystem only needs to be read only.

    Whats your thoughts on my best options? any other ideas?

  2. #2


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,681
    Thank Post
    279
    Thanked 783 Times in 610 Posts
    Rep Power
    224
    Would a scheduled one-way sync from fileserver storage > webserver storage fill all your requirements? Have you / do you want to use the storage required to do that?

    From a security perspective, I'd initiate rsync over ssh from the fileserver on the internal lan to the webserver in the DMZ. That way compromising the webserver gets you nothing internally.
    However it really depends how much storage you're prepared to spend to do that.

  3. Thanks to pete from:

    CyberNerd (9th February 2011)

  4. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Hadn't thought of that. Agree it would be the most secure method. Not too keen on doubling up on storage, I like the idea of having everything in one place. Teachers might get frustrated over sync time. hmm maybe I could get samba to initiate a sync when a file is saved.....

  5. #4


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,681
    Thank Post
    279
    Thanked 783 Times in 610 Posts
    Rep Power
    224
    Had another thought. Look at incron to watch for file changes and then do something.

    inotify - get your file system supervised
    Linux.com :: Scheduling jobs based on filesystem activity with incron

  6. Thanks to pete from:

    CyberNerd (14th February 2011)

  7. #5

    Join Date
    Mar 2010
    Location
    Dover
    Posts
    11
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    10
    An NFS share sounds like the best option.

  8. #6

    Join Date
    Oct 2008
    Location
    Hedge End, Southampton
    Posts
    56
    Thank Post
    1
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    A NFS or SMB mounted share is definitely the way to do this, duplicating the storage seems unnecessary. The problem I suspect you will run into is permissions on the mounted share, whether you've copied the data across or not. Since you will be accessing the data via the web server the permissions applied will be those of the web server, not the user logged into Moodle (in this case). This will make it difficult to enforce access permissions on the data you're trying to keep private between different sets of users.

    In Moodle 1.9 there is a module called smbwebclient which creates a SMB connection using the credentials of the logged in Moodle user, getting round this problem but as far as I know nothing like that exists for Moodle 2 yet.

  9. #7


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,681
    Thank Post
    279
    Thanked 783 Times in 610 Posts
    Rep Power
    224
    Quote Originally Posted by james_yale View Post
    In Moodle 1.9 there is a module called smbwebclient which creates a SMB connection using the credentials of the logged in Moodle user, getting round this problem but as far as I know nothing like that exists for Moodle 2 yet.
    IIRC the PFY here has fixed the 1.9 module to work with Moodle 2. And I think he did/was going to submit a patch.

SHARE:
+ Post New Thread

Similar Threads

  1. Hide mapped network drives
    By timbo343 in forum Windows
    Replies: 11
    Last Post: 2nd April 2012, 09:06 AM
  2. losing connection to mapped network drives
    By aaltaf in forum Windows
    Replies: 4
    Last Post: 3rd February 2011, 01:14 PM
  3. Mapped Network Drives
    By spider6986 in forum Windows 7
    Replies: 7
    Last Post: 1st July 2009, 03:26 PM
  4. Replies: 10
    Last Post: 29th June 2008, 05:22 PM
  5. Replies: 4
    Last Post: 7th December 2005, 08:09 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
  •