Posts: 1
Joined: Tue May 27, 2014 11:19 am

Help setting up NAS/Samba

Tue May 27, 2014 11:40 am

I am looking for some help in setting up this.

What I want to achieve from my RPI is to set up a network file share where I can store data that I can access from any machine as well as storing duplicate files I.E photos as a backup in case my HDD on my PC fails.

I have set up Samba as per the guide on you tube: -

I am able to access the media file on my network but I cannot store any data there as it said access denied.

I have not done any programming for about 12 years and that was cmd on dos so my knowledge is not really the best.

The only thing I have not done is connect a USB Drive to the RPI as I just wanted to write to the SD card for now. Would this have something to do with it? if I plugged in a USB would it then work? as based on the coding he has used I cannot see what tells the system to write the files put on the system to a external HDD?

Once I have got the above working I then want to make some of the folders accessible from outside of my home network....I originally set-up PTTP which would work fine if I am using my own computers however I would like to access the files at work and I would not be allowed to set-up a VPN connection to the RPI and would prefer a way I can obtain the files by using a web browser. what would be my best option to do this? I was thinking own clowd but would there be another way?

You help would be much appreciated.

Posts: 8
Joined: Wed Nov 16, 2011 10:32 am

Re: Help setting up NAS/Samba

Thu May 29, 2014 12:11 am

"I am able to access the media file on my network but I cannot store any data there as it said access denied."

if you can copy files from the pi but not write files to the pi then it is just a problem with security.

You need write access to the directories on the rpi , not sure if samba or the os takes care of that part.
Also check some of the threads on the forum about filezilla as a windows ftp client.

To get access to the pi filesystem from outside your home network would normally require configuring
the isp router to allow port forwarding. I dont know enough about samba to say if such access would
be even marginally secure.

Posts: 18
Joined: Sun Apr 27, 2014 8:01 pm

Re: Help setting up NAS/Samba

Fri May 30, 2014 6:40 am

There are several projects in the project section of this site that describe in detail how to create a NAS server (or 'home server'). You might also like to look for projects on the 'instructables' website. Watch out that some of them may be fairly old now and quote older versions of the necessary programs.

To connect from outside - you will need to know your ip address (which your service provider may change). provides a free service to link a dns address to your ip address and many routers will automatically keep that in sync.

I have setup something similar - but use proftpd as a service on the RPi to allow me to upload / download to the PC using filezilla as I still cant get windows to authenticate with Samba.

Good luck
RPi model B 512Mb rev 2 board
16Gb Class 10 SD card running NOOBS / Raspbian
Powered from 7 port powered USB hub. 500Gb USB HDD off same hub

Posts: 284
Joined: Sat Sep 08, 2012 12:02 am

Re: Help setting up NAS/Samba

Sat May 31, 2014 8:48 pm

its more likely a file system security issue than it is a share security issue

Return to “Networking and servers”