Select Moodle version:

Blocks: Windows Share access (AKA Network Drive Access, SMB Web Client)

Access windows shares via a Moodle web interface.
Maintained by: Picture of Guy Thomas Guy Thomas

Access windows shares via a Moodle web interface.

Please note. At the time of writing, version 2013101600 is the latest release and it is finally at release candidate status.

Development of version 2013101600 was sponsored by Overnet Data Ltd

Configuring shares is now done simply by adding them to a text area field (easier to edit, etc). This text area field is progressively enhanced in to a YUI3 table as per the following screen shot. Please can you provide feedback on this new configuration mechanism via the comments on this page.

admin page for windows share access block

picture of windows share access block and share folders and files being displayed




Picture of Guy Thomas
Guy Thomas (Lead maintainer): Main Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Guy Thomas
    Thu, Oct 17, 2013, 5:17 PM
    Les, the only place I can see it showing the full share path is when you log in using form authentication. I have to admit I haven't spent ages looking for it but at a quick look that's the only place I can see it. In the next version of the block 2013101600 it will check to see if the share is hidden (has a $ sign) and if it is it wont show that component. Also it wont show the start of a share so "\\fileserver\share\stuff" would result in the path being displayed as "share\stuff". A hidden share of "\\fileserver\share$\stuff" would result in a path being displayed as "stuff". I hope this meets your needs.
  • Picture of Seb Harrington
    Fri, Oct 18, 2013, 8:08 PM
    Thanks for releasing this Guy, all set up and working here!
  • Picture of Guy Thomas
    Fri, Oct 18, 2013, 10:56 PM
    No problem Seb, thanks for positive feedback.
  • Picture of Peter Carey
    Thu, Jan 23, 2014, 4:32 PM
    Hi Guy,

    The Add Shares box is broken in Moodle 2.6/2.6.1, the add button shows but doesn't do anything when clicked and the share box is not shown. Tested with standard theme.
  • Picture of Nigel Buck
    Wed, Feb 12, 2014, 11:30 PM
    I wonder if someone could point a Moodle newbie in the right direction please? I have followed the instructions to add Windows Share access to my site. I can get them to appear but they don't link to anything. My smbclient folder does not contain a smb.conf file. Can anyone point me in the direction of a sample one or some documentation on how to create on please?
  • Picture of Guy Thomas
    Wed, Feb 12, 2014, 11:41 PM
    Hi Nigel. I assume you are using a *nix OS. If so, the first step is to make sure you can access your shares via the command line using smbclient - e.g. smbclient // -U yourusername%yourpassword
  • Picture of alex johnson
    Sat, Mar 15, 2014, 3:45 AM
    I can access the home folder, and download content but unable to upload - Can anyone advise?
  • Picture of alex johnson
    Sat, Mar 15, 2014, 3:54 AM
    Unable to upload content back into home folder anyone?
  • Picture of Guy Thomas
    Tue, Mar 25, 2014, 3:34 AM
    hi Alex. Sorry for the late reply. It could be because in your settings you have clam av enabled but it is not available on your operating system.
  • Picture of Guy Thomas
    Tue, Mar 25, 2014, 3:35 AM
    Thanks for reporting Moodle 2.6 issues Peter. Moodle 2.6 version is now available.
  • Picture of alex johnson
    Tue, Mar 25, 2014, 7:45 AM
    Hi Guy, I discovered that the AV setting was the culprit and should've reported this back apologies. A little odd as Clam AV is set on a scheduled scan for the MoodleData directory. Nonetheless this works so a great plugin.
  • Picture of Phil Hemstock
    Tue, Mar 25, 2014, 8:30 PM
    Complete Moodle newbie here. I'm struggling to get this block to work using our Windows server. It just opens with a blank page no matter what settings I try. I've got shares in the form //server/share (using the Linux style forward slashes. I have SSL disabled, the username prefix is DOMAINNAME/ - can anybody help, specifically Windows users? Also, when I enable logging - WHERE does it put the logs???!!!! I've searched inside CYGWIN folder
  • Picture of Phil Hemstock
    Tue, Mar 25, 2014, 8:35 PM
    Should also mention, smbclient from the command line works and connects to the share using smbclient //server/share -U domain/username%password
  • Picture of Guy Thomas
    Wed, Mar 26, 2014, 8:30 PM
    Hi Phil. I guess that the logs go into the windows event viewer logs. If you are getting a blank page I recommend you switch debugging on to 'Developer' and then set it to display errors (site administration > developer > debugging). If you let me know the errors which show up I can maybe help.
  • Picture of Phil Hemstock
    Wed, Mar 26, 2014, 8:36 PM
    Hi Guy. I've enabled that and now at the top of my empty windows I get this:

    get_context_instance() is deprecated, please use context_xxxx::instance() instead.•line 4020 of \lib\deprecatedlib.php: call to debugging()
    •line 14 of \blocks\smb_web_client\smbwebclient_moodle.php: call to get_context_instance()
1 2 3 4 5 6
Please login to post comments