Page 1 of 1

Help setting up NAS/Samba

Posted: Tue May 27, 2014 11:40 am
by zane328
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: -
http://www.youtube.com/watch?v=jr2Jz8km2BU

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.

Re: Help setting up NAS/Samba

Posted: Thu May 29, 2014 12:11 am
by oystercatcher
"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.

Re: Help setting up NAS/Samba

Posted: Fri May 30, 2014 6:40 am
by FirstTenor
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). www.noip.com 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

Re: Help setting up NAS/Samba

Posted: Sat May 31, 2014 8:48 pm
by teeth_03
its more likely a file system security issue than it is a share security issue