KB450084 – Setting up SMB Share in Nextcloud

Last modified: October 23, 2019
You are here:
Estimated reading time: 1 min


  • Smbclient
  • Php-smbclient


  1. From the Nextcloud main menu after you log in, type:
    1. sudo su
    2. Type in your ncadmin password.
    3. You should now be logged in as root user.
  2. Install the smbclient by typing:
    1. Sudo apt-get update
    2. sudo apt-get install smbclient
    3. Type “y” to continue.
    4. Smbclient will then be installed.
  3. If php-smbclient isn’t already installed you can do so by typing:
    1. sudo apt-get install php-smbclient
    2. It may say it’s already installed so you can go onto the next step.
    3. Type “y” to continue if it asks you to.
    4. Php-smbclient will then be installed.
  4. Open a web browser and open your Nextcloud Client by typing in https://<Nextcloud IP>
  5. Click on the Gear or “N” in the top right corner of the webpage and click on Apps.
  6. Under Your Apps on the left, scroll to the very bottom on the right side to find External Storage Support. Click Enable at the far right of the screen to enable External Storage Support.
  7. After that is enabled we can configure the External Storage. Click on the Gear or “N” in the top right corner of the webpage and click on Settings. Under Administration in the right navigation pane, click on External storages.
  8. Click on the Add storage dropdown and select SMB / CIFS. This will now add more options for us to configure.
  9. Enter a Folder name that will be displayed in the Shared files sections.
  10. For our example we are going to use the username and password for Authentication which would be the Administrator Username and password for Windows.
  11. Fill out the Host, Share, Username and Password. If you have a domain already, you can fill that in, otherwise type in the name of the workgroup which is usually WORKGROUP by default in windows. We can leave the option set to All Users for the Available for option.
  12. Click on the 3 dots to the very right of the All Users dropdown and make sure to check the option “Enable Sharing”.
  13. Click the checkmark to the right of the 3 dots and that will save your External Storage configuration. You should now see a Green circle with a white checkmark to the left of the Folder name field.
  14. Setup is complete and you should now be able to see the folder listed under your files. Click on the folder icon in the top left corner of the screen to verify.
  15. Click on your SMB share folder to view the contents of it.
Was this article helpful?
Dislike 15
Views: 3731
Unboxing Racking Storage Drives Cable Setup Power UPS Sizing Remote Access